Aktualizr
C++ SOTA Client
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
All
Enumerations
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
+
Functions
a
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Variables
Enumerations
+
Files
File List
+
File Members
All
Functions
Enumerations
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Pages
src
aktualizr_secondary
update_agent_file.h
1
#ifndef AKTUALIZR_SECONDARY_UPDATE_AGENT_FILE_H
2
#define AKTUALIZR_SECONDARY_UPDATE_AGENT_FILE_H
3
4
#include "update_agent.h"
5
6
class
FileUpdateAgent
:
public
UpdateAgent
{
7
public
:
8
FileUpdateAgent
(boost::filesystem::path target_filepath, std::string target_name)
9
: target_filepath_{std::move(target_filepath)}, current_target_name_{std::move(target_name)} {}
10
11
public
:
12
bool
isTargetSupported(
const
Uptane::Target
& target)
const override
;
13
bool
getInstalledImageInfo(
Uptane::InstalledImageInfo
& installed_image_info)
const override
;
14
bool
download(
const
Uptane::Target
& target,
const
std::string&
data
)
override
;
15
data::ResultCode::Numeric
install(
const
Uptane::Target
& target)
override
;
16
void
completeInstall()
override
;
17
data::InstallationResult
applyPendingInstall(
const
Uptane::Target
& target)
override
;
18
19
private
:
20
const
boost::filesystem::path target_filepath_;
21
std::string current_target_name_;
22
};
23
24
#endif // AKTUALIZR_SECONDARY_UPDATE_AGENT_FILE_H
UpdateAgent
Definition:
update_agent.h:6
data
General data structures.
Definition:
types.cc:55
data::ResultCode::Numeric
Numeric
Definition:
types.h:128
Uptane::InstalledImageInfo
Definition:
tuf.h:135
data::InstallationResult
Definition:
types.h:182
Uptane::Target
Definition:
tuf.h:210
FileUpdateAgent
Definition:
update_agent_file.h:6
Generated by
1.8.13