Top | ![]() |
![]() |
![]() |
![]() |
gchar * | appid | Read |
gint | dbid | Read / Write |
GPtrArray * | dependencies | Read / Write |
gchar * | desktop-file | Read / Write |
gint64 | install-time | Read / Write |
ListallerAppLicense * | license | Read / Write |
gchar * | metadata-file | Read / Write |
AsComponent * | metainfo | Read / Write |
gchar * | origin | Read / Write |
gchar * | replaces | Read / Write |
gint | size-installed | Read / Write |
ListallerAppState | state | Read / Write |
gchar * | unique-name | Read / Write |
gchar * | version | Read / Write |
struct | ListallerAppItem |
struct | ListallerAppItemClass |
enum | ListallerAppState |
struct | ListallerAppLicense |
GBoxed ╰── ListallerAppLicense GFlags ╰── ListallerAppState GObject ╰── ListallerAppItem
Objects of this class contain information about an application (installed or not installed) and associated Listaller state data.
#define LISTALLER_TYPE_APP_ITEM (listaller_app_item_get_type ())
The type for ListallerAppItem.
gboolean listaller_app_item_load_xml_file (ListallerAppItem *self
,const gchar *asdata_fname
,GError **error
);
self |
the ListallerAppItem instance |
|
asdata_fname |
|
|
error |
location to store the error occuring, or |
gboolean listaller_app_item_load_xml_data (ListallerAppItem *self
,const gchar *xmld
,GError **error
);
self |
the ListallerAppItem instance |
|
xmld |
|
|
error |
location to store the error occuring, or |
void
listaller_app_item_set_origin_local (ListallerAppItem *self
);
void listaller_app_item_set_license_name (ListallerAppItem *self
,const gchar *name
);
void listaller_app_item_set_license_text (ListallerAppItem *self
,const gchar *lText
);
void listaller_app_item_update_with_appid (ListallerAppItem *self
,gboolean fast
);
gchar *
listaller_app_item_build_pk_package_id
(ListallerAppItem *self
);
Generate a PackageKit package-id for this application
void
listaller_app_item_update_with_metadata_file
(ListallerAppItem *self
);
gchar * listaller_app_item_get_raw_cmd (ListallerAppItem *self
,gboolean subst_cmd
);
gchar *
listaller_app_item_get_metadata_xml (ListallerAppItem *self
);
gint listaller_app_item_compare_version_with (ListallerAppItem *self
,const gchar *bversion
);
ListallerAppItem *
listaller_app_item_new_from_id (const gchar *application_id
);
const gchar *
listaller_app_item_get_unique_name (ListallerAppItem *self
);
Get and return the current value of the "unique-name" property.
Application identifier
const gchar *
listaller_app_item_get_version (ListallerAppItem *self
);
Get and return the current value of the "version" property.
void listaller_app_item_set_version (ListallerAppItem *self
,const gchar *value
);
Set the value of the "version" property to value
.
self |
the ListallerAppItem instance to modify |
|
value |
the new value of the "version" property |
void listaller_app_item_get_license (ListallerAppItem *self
,ListallerAppLicense *result
);
Get and return the current value of the "license" property.
void listaller_app_item_set_license (ListallerAppItem *self
,ListallerAppLicense *value
);
Set the value of the "license" property to value
.
self |
the ListallerAppItem instance to modify |
|
value |
the new value of the "license" property |
AsComponent *
listaller_app_item_get_metainfo (ListallerAppItem *self
);
Get and return the current value of the "metainfo" property.
void listaller_app_item_set_metainfo (ListallerAppItem *self
,AsComponent *value
);
Set the value of the "metainfo" property to value
.
self |
the ListallerAppItem instance to modify |
|
value |
the new value of the "metainfo" property |
gint
listaller_app_item_get_size_installed (ListallerAppItem *self
);
Get and return the current value of the "size-installed" property.
void listaller_app_item_set_size_installed (ListallerAppItem *self
,gint value
);
Set the value of the "size-installed" property to value
.
self |
the ListallerAppItem instance to modify |
|
value |
the new value of the "size-installed" property |
const gchar *
listaller_app_item_get_metadata_file (ListallerAppItem *self
);
Get and return the current value of the "metadata-file" property.
void listaller_app_item_set_metadata_file (ListallerAppItem *self
,const gchar *value
);
Set the value of the "metadata-file" property to value
.
self |
the ListallerAppItem instance to modify |
|
value |
the new value of the "metadata-file" property |
const gchar *
listaller_app_item_get_desktop_file (ListallerAppItem *self
);
Get and return the current value of the "desktop-file" property.
void listaller_app_item_set_desktop_file (ListallerAppItem *self
,const gchar *value
);
Set the value of the "desktop-file" property to value
.
self |
the ListallerAppItem instance to modify |
|
value |
the new value of the "desktop-file" property |
ListallerAppState
listaller_app_item_get_state (ListallerAppItem *self
);
Get and return the current value of the "state" property.
void listaller_app_item_set_state (ListallerAppItem *self
,ListallerAppState value
);
Set the value of the "state" property to value
.
gint64
listaller_app_item_get_install_time (ListallerAppItem *self
);
Get and return the current value of the "install-time" property.
void listaller_app_item_set_install_time (ListallerAppItem *self
,gint64 value
);
Set the value of the "install-time" property to value
.
self |
the ListallerAppItem instance to modify |
|
value |
the new value of the "install-time" property |
const gchar *
listaller_app_item_get_replaces (ListallerAppItem *self
);
Get and return the current value of the "replaces" property.
void listaller_app_item_set_replaces (ListallerAppItem *self
,const gchar *value
);
Set the value of the "replaces" property to value
.
self |
the ListallerAppItem instance to modify |
|
value |
the new value of the "replaces" property |
const gchar *
listaller_app_item_get_origin (ListallerAppItem *self
);
Get and return the current value of the "origin" property.
void listaller_app_item_set_origin (ListallerAppItem *self
,const gchar *value
);
Set the value of the "origin" property to value
.
self |
the ListallerAppItem instance to modify |
|
value |
the new value of the "origin" property |
const gchar *
listaller_app_item_get_appid (ListallerAppItem *self
);
Get and return the current value of the "appid" property.
GPtrArray *
listaller_app_item_get_dependencies (ListallerAppItem *self
);
Get and return the current value of the "dependencies" property.
void listaller_app_item_set_dependencies (ListallerAppItem *self
,GPtrArray *value
);
Set the value of the "dependencies" property to value
.
self |
the ListallerAppItem instance to modify |
|
value |
the new value of the "dependencies" property |
gboolean
listaller_app_item_validate_appid (const gchar *application_id
);
gboolean listaller_app_state_is_all_set (ListallerAppState self
,ListallerAppState flags
);
gboolean listaller_app_state_is_any_set (ListallerAppState self
,ListallerAppState flags
);
ListallerAppState listaller_app_state_set (ListallerAppState self
,ListallerAppState mode
);
ListallerAppState listaller_app_state_unset (ListallerAppState self
,ListallerAppState mode
);
ListallerAppLicense *
listaller_app_license_dup (const ListallerAppLicense *self
);
Creates a copy of self.
See also: listaller_app_license_copy()
, listaller_app_license_destroy()
, listaller_app_license_free()
void
listaller_app_license_free (ListallerAppLicense *self
);
Frees the heap-allocated struct.
See also: listaller_app_license_dup()
, listaller_app_license_copy()
, listaller_app_license_destroy()
void listaller_app_license_copy (const ListallerAppLicense *self
,ListallerAppLicense *dest
);
Creates a copy of self.
See also: listaller_app_license_dup()
, listaller_app_license_destroy()
, listaller_app_license_free()
self |
the struct to copy |
|
dest |
a unused struct. Use |
void
listaller_app_license_destroy (ListallerAppLicense *self
);
Frees the content of the struct pointed by self
.
See also: listaller_app_license_dup()
, listaller_app_license_copy()
, listaller_app_license_free()
struct ListallerAppItem;
Application entry
Objects of this class contain information about an application (installed or not installed) and associated Listaller state data.
struct ListallerAppItemClass { GObjectClass parent_class; };
The class structure for LISTALLER_TYPE_APP_ITEM
. All the fields in this structure are private and should never be accessed directly.
Status of an application
Indicates if an application is installed (and in which mode it was installed), or if it is in any other, different state.
“desktop-file”
property“desktop-file” gchar *
desktop-file.
Flags: Read / Write
Default value: NULL
“install-time”
property “install-time” gint64
install-time.
Flags: Read / Write
Default value: 0
“metadata-file”
property“metadata-file” gchar *
metadata-file.
Flags: Read / Write
Default value: NULL
“size-installed”
property“size-installed” gint
size-installed.
Flags: Read / Write
Default value: 0
“unique-name”
property“unique-name” gchar *
Application identifier
Flags: Read / Write
Default value: NULL