InstallMonitor
InstallMonitor
#include <icy/pacm/installmonitor.h>class InstallMonitorDefined in src/pacm/include/icy/pacm/installmonitor.h:27
Aggregates multiple install tasks and reports overall progress.
List of all members
| Name | Kind | Owner |
|---|---|---|
InstallStateChange | variable | Declared here |
InstallComplete | variable | Declared here |
Progress | variable | Declared here |
Complete | variable | Declared here |
InstallMonitor | function | Declared here |
~InstallMonitor | function | Declared here |
InstallMonitor | function | Declared here |
operator= | function | Declared here |
InstallMonitor | function | Declared here |
operator= | function | Declared here |
addTask | function | Declared here |
startAll | function | Declared here |
cancelAll | function | Declared here |
isComplete | function | Declared here |
tasks | function | Declared here |
packages | function | Declared here |
_mutex | variable | Declared here |
_tasks | variable | Declared here |
_packages | variable | Declared here |
_progress | variable | Declared here |
onInstallStateChange | function | Declared here |
onInstallComplete | function | Declared here |
setProgress | function | Declared here |
Public Attributes
| Return | Name | Description |
|---|---|---|
ThreadSignal< void(InstallTask &, const InstallationState &, const InstallationState &)> | InstallStateChange | Proxies state change events from managed packages. |
ThreadSignal< void(LocalPackage &)> | InstallComplete | Signals when a managed install task completes. |
ThreadSignal< void(int &)> | Progress | Signals on overall progress update [0-100]. |
ThreadSignal< void(LocalPackageVec &)> | Complete | Signals on all tasks complete. |
InstallStateChange
ThreadSignal< void(InstallTask &, const InstallationState &, const InstallationState &)> InstallStateChangeDefined in src/pacm/include/icy/pacm/installmonitor.h:60
Proxies state change events from managed packages.
InstallComplete
ThreadSignal< void(LocalPackage &)> InstallCompleteDefined in src/pacm/include/icy/pacm/installmonitor.h:63
Signals when a managed install task completes.
Progress
ThreadSignal< void(int &)> ProgressDefined in src/pacm/include/icy/pacm/installmonitor.h:66
Signals on overall progress update [0-100].
Complete
ThreadSignal< void(LocalPackageVec &)> CompleteDefined in src/pacm/include/icy/pacm/installmonitor.h:69
Signals on all tasks complete.
Public Methods
| Return | Name | Description |
|---|---|---|
InstallMonitor | ||
InstallMonitor | Deleted constructor. | |
InstallMonitor | Deleted constructor. | |
void | addTask virtual | Adds a task to monitor. |
void | startAll virtual | Starts all monitored tasks. |
void | cancelAll virtual | Cancels all monitored tasks. |
bool | isComplete virtual const | Returns true if all install tasks have completed, either successfully or unsuccessfully. |
InstallTaskPtrVec | tasks virtual const | Returns the list of monitored package tasks. |
LocalPackageVec | packages virtual const | Returns the list of monitored packages. |
InstallMonitor
InstallMonitor()Defined in src/pacm/include/icy/pacm/installmonitor.h:30
InstallMonitor
InstallMonitor(const InstallMonitor &) = deleteDefined in src/pacm/include/icy/pacm/installmonitor.h:33
Deleted constructor.
InstallMonitor
InstallMonitor(InstallMonitor &&) = deleteDefined in src/pacm/include/icy/pacm/installmonitor.h:35
Deleted constructor.
addTask
virtual
virtual void addTask(InstallTask::Ptr task)Defined in src/pacm/include/icy/pacm/installmonitor.h:39
Adds a task to monitor.
startAll
virtual
virtual void startAll()Defined in src/pacm/include/icy/pacm/installmonitor.h:42
Starts all monitored tasks.
cancelAll
virtual
virtual void cancelAll()Defined in src/pacm/include/icy/pacm/installmonitor.h:45
Cancels all monitored tasks.
isComplete
virtual const
virtual bool isComplete() constDefined in src/pacm/include/icy/pacm/installmonitor.h:49
Returns true if all install tasks have completed, either successfully or unsuccessfully.
tasks
virtual const
virtual InstallTaskPtrVec tasks() constDefined in src/pacm/include/icy/pacm/installmonitor.h:52
Returns the list of monitored package tasks.
packages
virtual const
virtual LocalPackageVec packages() constDefined in src/pacm/include/icy/pacm/installmonitor.h:55
Returns the list of monitored packages.
Protected Attributes
_mutex
std::mutex _mutexDefined in src/pacm/include/icy/pacm/installmonitor.h:81
_tasks
InstallTaskPtrVec _tasksDefined in src/pacm/include/icy/pacm/installmonitor.h:82
_packages
LocalPackageVec _packagesDefined in src/pacm/include/icy/pacm/installmonitor.h:83
_progress
int _progressDefined in src/pacm/include/icy/pacm/installmonitor.h:84
Protected Methods
| Return | Name | Description |
|---|---|---|
void | onInstallStateChange virtual | |
void | onInstallComplete virtual | |
void | setProgress virtual |
onInstallStateChange
virtual
virtual void onInstallStateChange(void * sender, InstallationState & state, const InstallationState & oldState)Defined in src/pacm/include/icy/pacm/installmonitor.h:72
onInstallComplete
virtual
virtual void onInstallComplete(InstallTask & task)Defined in src/pacm/include/icy/pacm/installmonitor.h:76
setProgress
virtual
virtual void setProgress(int value)