Top |
PkEnumMatch | |
enum | PkRoleEnum |
enum | PkStatusEnum |
enum | PkExitEnum |
enum | PkNetworkEnum |
enum | PkFilterEnum |
enum | PkRestartEnum |
enum | PkErrorEnum |
enum | PkGroupEnum |
enum | PkUpdateStateEnum |
enum | PkInfoEnum |
enum | PkDistroUpgradeEnum |
enum | PkSigTypeEnum |
enum | PkMediaTypeEnum |
enum | PkAuthorizeEnum |
enum | PkUpgradeKindEnum |
enum | PkTransactionFlagEnum |
guint pk_enum_find_value (const PkEnumMatch *table
,const gchar *string
);
Search for a string value in a table of constants.
table |
A PkEnumMatch enum table of values |
|
string |
the string constant to search for, e.g. "desktop-gnome" |
const gchar * pk_enum_find_string (const PkEnumMatch *table
,guint value
);
Search for a enum value in a table of constants.
table |
A PkEnumMatch enum table of values |
|
value |
the enumerated constant value, e.g. PK_SIGTYPE_ENUM_GPG |
PkSigTypeEnum
pk_sig_type_enum_from_string (const gchar *sig_type
);
Converts a text enumerated type to its unsigned integer representation
const gchar *
pk_sig_type_enum_to_string (PkSigTypeEnum sig_type
);
Converts a enumerated type to its text representation
Since: 0.5.0
PkInfoEnum
pk_info_enum_from_string (const gchar *info
);
Converts a text enumerated type to its unsigned integer representation
Since: 0.5.0
const gchar *
pk_info_enum_to_string (PkInfoEnum info
);
Converts a enumerated type to its text representation
Since: 0.5.0
PkUpdateStateEnum
pk_update_state_enum_from_string (const gchar *update_state
);
Converts a text enumerated type to its unsigned integer representation
Since: 0.5.0
const gchar *
pk_update_state_enum_to_string (PkUpdateStateEnum update_state
);
Converts a enumerated type to its text representation
Since: 0.5.0
PkExitEnum
pk_exit_enum_from_string (const gchar *exit
);
Converts a text enumerated type to its unsigned integer representation
Since: 0.5.0
const gchar *
pk_exit_enum_to_string (PkExitEnum exit
);
Converts a enumerated type to its text representation
Since: 0.5.0
PkNetworkEnum
pk_network_enum_from_string (const gchar *network
);
Converts a text enumerated type to its unsigned integer representation
Since: 0.5.0
const gchar *
pk_network_enum_to_string (PkNetworkEnum network
);
Converts a enumerated type to its text representation
Since: 0.5.0
PkStatusEnum
pk_status_enum_from_string (const gchar *status
);
Converts a text enumerated type to its unsigned integer representation
Since: 0.5.0
const gchar *
pk_status_enum_to_string (PkStatusEnum status
);
Converts a enumerated type to its text representation
Since: 0.5.0
PkRoleEnum
pk_role_enum_from_string (const gchar *role
);
Converts a text enumerated type to its unsigned integer representation
Since: 0.5.0
const gchar *
pk_role_enum_to_string (PkRoleEnum role
);
Converts a enumerated type to its text representation
Since: 0.5.0
PkErrorEnum
pk_error_enum_from_string (const gchar *code
);
Converts a text enumerated type to its unsigned integer representation
Since: 0.5.0
const gchar *
pk_error_enum_to_string (PkErrorEnum code
);
Converts a enumerated type to its text representation
Since: 0.5.0
PkRestartEnum
pk_restart_enum_from_string (const gchar *restart
);
Converts a text enumerated type to its unsigned integer representation
Since: 0.5.0
const gchar *
pk_restart_enum_to_string (PkRestartEnum restart
);
Converts a enumerated type to its text representation
Since: 0.5.0
PkGroupEnum
pk_group_enum_from_string (const gchar *group
);
Converts a text enumerated type to its unsigned integer representation
Since: 0.5.0
const gchar *
pk_group_enum_to_string (PkGroupEnum group
);
Converts a enumerated type to its text representation
Since: 0.5.0
PkFilterEnum
pk_filter_enum_from_string (const gchar *filter
);
Converts a text enumerated type to its unsigned integer representation
Since: 0.5.0
const gchar *
pk_filter_enum_to_string (PkFilterEnum filter
);
Converts a enumerated type to its text representation
Since: 0.5.0
PkDistroUpgradeEnum
pk_distro_upgrade_enum_from_string (const gchar *upgrade
);
Converts a text enumerated type to its unsigned integer representation
Since: 0.5.0
const gchar *
pk_distro_upgrade_enum_to_string (PkDistroUpgradeEnum upgrade
);
Converts a enumerated type to its text representation
Since: 0.5.0
PkMediaTypeEnum
pk_media_type_enum_from_string (const gchar *media_type
);
Converts a text enumerated type to its unsigned integer representation
Since: 0.5.0
const gchar *
pk_media_type_enum_to_string (PkMediaTypeEnum media_type
);
Converts a enumerated type to its text representation
Since: 0.5.0
PkAuthorizeEnum
pk_authorize_type_enum_from_string (const gchar *authorize_type
);
Converts a text enumerated type to its unsigned integer representation
Since: 0.5.0
const gchar *
pk_authorize_type_enum_to_string (PkAuthorizeEnum authorize_type
);
Converts a enumerated type to its text representation
Since: 0.5.0
PkUpgradeKindEnum
pk_upgrade_kind_enum_from_string (const gchar *upgrade_kind
);
Converts a text enumerated type to its unsigned integer representation
Since: 0.6.11
const gchar *
pk_upgrade_kind_enum_to_string (PkUpgradeKindEnum upgrade_kind
);
Converts a enumerated type to its text representation
Since: 0.6.11
PkTransactionFlagEnum
pk_transaction_flag_enum_from_string (const gchar *transaction_flag
);
Converts a text enumerated type to its unsigned integer representation
Since: 0.8.1
const gchar *
pk_transaction_flag_enum_to_string (PkTransactionFlagEnum transaction_flag
);
Converts a enumerated type to its text representation
Since: 0.8.1
const gchar *
pk_status_enum_to_localised_text (PkStatusEnum status
);
Convert a PkStatusEnum to a localized string suitable for showing to a user.
const gchar *
pk_info_enum_to_localised_past (PkInfoEnum info
);
Converts a enumerated type to its localized description
Since: 0.7.2
const gchar *
pk_info_enum_to_localised_present (PkInfoEnum info
);
Converts a enumerated type to its localized description
Since: 0.7.2
const gchar *
pk_role_enum_to_localised_present (PkRoleEnum role
);
Converts a enumerated type to its localized description
Since: 0.7.2
typedef struct { guint value; const gchar *string; } PkEnumMatch;
Matching an enumerated type to a string
What we were asked to do, this never changes for the lifetime of the transaction. Icons that have to represent the whole "aim" of the transaction will use these constants
Unknow request |
||
Cancel transaction |
||
Get package dependencies |
||
Get package details |
||
Get available packages |
||
Get repository list |
||
Get packages required by given package |
||
Get update details |
||
Get available updates |
||
Install package files |
||
Install packages |
||
Install signature |
||
Refresh cache |
||
Remove packages |
||
Enable repository |
||
Resolve depdencies |
||
Search for details |
||
Search for file |
||
Search for group |
||
Search for package name |
||
Update packages |
||
Get what a package provides |
||
Accept an EULA |
||
Download packages |
||
Get available distribution upgrades |
||
Get available categories |
||
Get old transation information |
||
Repair system |
||
Get details on local package |
||
Get files provided by local package |
||
Remove repository |
||
Upgrade system |
||
What status we are now; this can change for each transaction giving a status of what sort of thing is happening Icons that change to represent the current status of the transaction will use these constants If you add to these, make sure you add filenames in gpk-watch.c also
A typical transaction will do:
schedule task WAIT
run task SETUP
wait for lock RUNNING
This means that backends should run pk_backend_set_status (backend, PK_STATUS_ENUM_RUNNING) when they are ready to start running the transaction and after a lock has been got.
Unknown status |
||
Waiting |
||
Setting up |
||
Running |
||
Removing |
||
Refreshing cache |
||
Downloading |
||
Installing |
||
Updating |
||
Cleaning up |
||
Resolving dependencies |
||
Checking signatures |
||
Testing commit |
||
Committing |
||
Finished |
||
Cancelling |
||
Downloading respository |
||
Donwloading package list |
||
Downloading file list |
||
Downloading changelog information |
||
Downloading group information |
||
Downloading update information |
||
Repackaging |
||
Loading cache |
||
Scanning for applications |
||
Generating package list |
||
Waiting for lock |
||
Waiting for authentication/authorization |
||
Scanning running processes |
||
Checking executable files |
||
Checking libraries |
||
Copying files |
||
Running package hook |
||
How the backend exited
The filter types
Unknown filter |
||
No filter |
||
Filter for installed packages |
||
Filter for not installed packages |
||
Filter for development packages |
||
Filter for non-development packages |
||
Filter for GUI packages |
||
Filter for non-GUI packages |
||
Filter for free packages |
||
Filter for non-free packages |
||
Filter for visible packages |
||
Filter for invisible packages |
||
Filter for supported packages |
||
Filter for not supported packages |
||
Filter for packages that match basename |
||
Filter for packages that don't match basename |
||
Filter for newest packages |
||
Filter for not newest packages |
||
Filter for packages that match architecture |
||
Filter for packages that don't match architecture |
||
Filter for source packages |
||
Filter for non-source packages |
||
Filter for collections |
||
Filter for not collections |
||
Filter for application packages |
||
Filter for non-application packages |
||
Filter for downloaded packages |
||
Filter for not downloaded packages |
||
What restart we need to after a transaction, ordered by severity
The error type
Out of memory |
||
No network access available |
||
Request not supported |
||
Undefined internal error |
||
GPG encryption failure |
||
Invalid package ID provided |
||
Requested package not installed |
||
Requested package not found |
||
Requested package already installed |
||
Failed to download package |
||
Requested group not gound |
||
Invalid group list provided |
||
Failed to resolve dependencies |
||
Invalid filter provides |
||
Failed to create thread |
||
Error occurred during transaction |
||
Transaction was cancelled |
||
No cache available |
||
Requested repository not found |
||
Not allowed to remove system package |
||
Process killed |
||
Configuration is not valid |
||
Cannot get lock |
||
No packages to update |
||
Cannot write repository configuration |
||
Bad GPG signature found |
||
Required GPG signature not found |
||
Cannot install source package |
||
File conflicts detected |
||
Package conflict |
||
Repository not available |
||
Package installation blocked |
||
Package corruption occurred |
||
All packages already installed |
||
Required file not found |
||
Out of repository mirrors to try |
||
No distribution upgrade path found |
||
Incompatible architecture found |
||
Out of required disk space |
||
Need to change media |
||
Authorization failed |
||
Update not found |
||
Installation repository missing signature |
||
Update repository missing signature |
||
Cannot get file list |
||
Cannot get package requirements |
||
Cannot disable reposoitory |
||
Package failed to configure |
||
Package failed to build |
||
Package failed to install |
||
Package failed to remove |
||
Installtion root not suitable |
||
Cannot fetch sources |
||
Cancelled due to higher priority task |
||
Transaction unfinished |
||
Required lock not available |
||
The group type
Unknown group |
||
Accessibility related packages |
||
Accessory packages |
||
Administration tools packages |
||
Communication packages |
||
GNOME packages |
||
KDE packages |
||
Other desktop packages |
||
XFCE packages |
||
Education packages |
||
Fonts |
||
Games |
||
Graphics related packages |
||
Internet related packages |
||
Legacy packages |
||
Localization related packages |
||
Map related packages |
||
Multimedia packages |
||
Network related packages |
||
Office packages |
||
Power-management related packages |
||
Programming packages |
||
Publishing related packages |
||
Security packages |
||
Server related packages |
||
System packages |
||
Virtualization packages |
||
Science related packages |
||
Documentation |
||
Electronics package |
||
Vendor defined group |
||
Special group for recently updated packages |
||
The enumerated types used in Package()
- these have to refer to a specific
package action, rather than a general state
Package status is unknown |
||
Package is installed |
||
Package is available to be installed |
||
Package is blocked |
||
Package is downloading |
||
Package is updating |
||
Package is being installed |
||
Package is being removed |
||
Package is running cleanup |
||
Package is being reinstalled |
||
Package is being downgraded |
||
Package is preparing for installation/removal |
||
Package is decompressing |
||
Package is unavailable |
||
Update severity is critical; Since: 1.2.4 |
||