Molybden API
Loading...
Searching...
No Matches
app_update_events.hpp
1// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_APP_UPDATE_EVENTS_HPP
6#define MOLYBDEN_APP_UPDATE_EVENTS_HPP
7
8#include <string>
9
10#include "molybden/base/event.hpp"
11
12namespace molybden {
13
14class AppUpdate;
15
23 std::shared_ptr<AppUpdate> app_update;
24};
25
33 std::shared_ptr<AppUpdate> app_update;
34
38 uint16_t progress;
39};
40
48 std::shared_ptr<AppUpdate> app_update;
49
53 std::string message;
54};
55
94
95} // namespace molybden
96
97#endif // MOLYBDEN_APP_UPDATE_EVENTS_HPP
A class that contains all application update events.
Definition app_update_events.hpp:59
Event< AppUpdateInstalled > onAppUpdateInstalled
Invoked when the application update has been installed.
Definition app_update_events.hpp:70
Event< AppUpdateFailed > onAppUpdateFailed
Invoked when the application update has failed to be installed.
Definition app_update_events.hpp:81
Event< AppUpdateProgressChanged > onAppUpdateProgressChanged
Invoked when the progress of the application update has been changed.
Definition app_update_events.hpp:92
Events allow you to be notified when something happens in Molybden.
Definition event.hpp:25
The AppUpdateEvents::onAppUpdateFailed event arguments.
Definition app_update_events.hpp:44
std::string message
An error message during the application update.
Definition app_update_events.hpp:53
std::shared_ptr< AppUpdate > app_update
The application update instance initiated this event.
Definition app_update_events.hpp:48
The AppUpdateEvents::onAppUpdateInstalled event arguments.
Definition app_update_events.hpp:19
std::shared_ptr< AppUpdate > app_update
The application update instance initiated this event.
Definition app_update_events.hpp:23
The AppUpdateEvents::onAppUpdateProgressChanged event arguments.
Definition app_update_events.hpp:29
std::shared_ptr< AppUpdate > app_update
The application update instance initiated this event.
Definition app_update_events.hpp:33
uint16_t progress
The progress of the application update in the range 0-100.
Definition app_update_events.hpp:38