8 #include <boost/signals2.hpp> 11 #include "uptane/fetcher.h" 12 #include "uptane/tuf.h" 26 BaseEvent(std::string variant_in) : variant(std::move(variant_in)) {}
31 return variant == T::TypeName;
42 static constexpr
const char* TypeName{
"SendDeviceDataComplete"};
52 static constexpr
const char* TypeName{
"PutManifestComplete"};
62 static constexpr
const char* TypeName{
"UpdateCheckComplete"};
73 static constexpr
const char* TypeName{
"DownloadProgressReport"};
76 return (report.progress == DownloadProgressReport::ProgressCompletedValue);
81 : target{std::move(target_in)}, description{std::move(description_in)}, progress{progress_in} {
86 std::string description;
87 unsigned int progress;
90 static const unsigned int ProgressCompletedValue{100};
98 static constexpr
const char* TypeName{
"DownloadTargetComplete"};
101 : update(std::move(update_in)), success(success_in) {
114 static constexpr
const char* TypeName{
"AllDownloadsComplete"};
126 static constexpr
const char* TypeName{
"InstallStarted"};
137 static constexpr
const char* TypeName{
"InstallTargetComplete"};
140 : serial(std::move(serial_in)), success(success_in) {
153 static constexpr
const char* TypeName{
"AllInstallsComplete"};
165 static constexpr
const char* TypeName{
"CampaignCheckComplete"};
177 static constexpr
const char* TypeName{
"CampaignAcceptComplete"};
184 static constexpr
const char* TypeName{
"CampaignDeclineComplete"};
191 static constexpr
const char* TypeName{
"CampaignPostponeComplete"};
196 using Channel = boost::signals2::signal<void(std::shared_ptr<event::BaseEvent>)>;
Device data has been sent to the server.
A campaign has been accepted.
All ECU installation attempts for an update have completed.
An update is available for download from the server.
Container for information about downloading an update.
A manifest has been sent to the server.
The server has been queried for available campaigns.
A report for a download in progress.
Container for information about available campaigns.
An ECU has begun installation of an update.
All targets for an update have been downloaded.
An installation attempt on an ECU has completed.
Container for information about installing an update.
Container for information about available updates.
Results of libaktualizr API calls.
Base class for all event objects.
A target has been downloaded.