Pacm module
InstallationState
State machine states for package installation.
InstallationState
#include <icy/pacm/installtask.h>struct InstallationStateDefined in src/pacm/include/icy/pacm/installtask.h:31
Inherits:
State
State machine states for package installation.
List of all members
| Name | Kind | Owner |
|---|---|---|
str | function | Declared here |
Type | enum | Declared here |
operator<< | friend | Inherited from State |
State | function | Inherited from State |
State | function | Inherited from State |
operator= | function | Inherited from State |
~State | function | Inherited from State |
id | function | Inherited from State |
set | function | Inherited from State |
str | function | Inherited from State |
toString | function | Inherited from State |
equals | function | Inherited from State |
between | function | Inherited from State |
operator== | function | Inherited from State |
operator== | function | Inherited from State |
_id | variable | Inherited from State |
ID | typedef | Inherited from State |
Inherited from State
| Kind | Name | Description |
|---|---|---|
friend | operator<< inline | |
function | State | |
function | State | Copy constructor. |
function | operator= | Copy assignment. |
function | ~State virtual | Defaulted destructor. |
function | id const | Returns the current state ID. |
function | set | Sets the state ID. |
function | str virtual const | Returns a human-readable string for the given state ID. Override in derived classes to provide meaningful names. |
function | toString virtual const | Returns a human-readable string for the current state ID. |
function | equals const | Returns true if the current state ID equals the given ID. |
function | between const | Returns true if the current state ID is in the inclusive range [lid, rid]. |
function | operator== const inline | |
function | operator== const inline | |
variable | _id | |
typedef | ID |
Public Methods
| Return | Name | Description |
|---|---|---|
std::string | str const inline | Converts a state ID to its string representation. |
str
const inline
inline std::string str(unsigned int id) constDefined in src/pacm/include/icy/pacm/installtask.h:47
Converts a state ID to its string representation.
Parameters
idOne of the Type enum values.
Returns
Human-readable state name, or "undefined" for unknown values.
Public Types
| Name | Description |
|---|---|
Type |
Type
enum TypeDefined in src/pacm/include/icy/pacm/installtask.h:33
| Value | Description |
|---|---|
None | |
Downloading | |
Extracting | |
Finalizing | |
Installed | |
Cancelled | |
Failed |
