![]() |
![]() |
![]() |
Listaller Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#define LISTALLER_TYPE_APP_ITEM void listaller_app_item_set_origin_local (ListallerAppItem *self
); gchar * listaller_app_item_to_string (ListallerAppItem *self
); void listaller_app_item_set_license_name (ListallerAppItem *self
,const gchar *lName
); void listaller_app_item_set_license_text (ListallerAppItem *self
,const gchar *lText
); void listaller_app_item_set_license_from_doap_name (ListallerAppItem *self
,const gchar *name
); void listaller_app_item_fast_check (ListallerAppItem *self
); void listaller_app_item_update_with_appid (ListallerAppItem *self
,gboolean fast
); gchar * listaller_app_item_build_pk_package_id (ListallerAppItem *self
); void listaller_app_item_update_with_desktop_file (ListallerAppItem *self
); gchar * listaller_app_item_get_raw_cmd (ListallerAppItem *self
,gboolean subst_cmd
); gint listaller_app_item_compare_version_with (ListallerAppItem *self
,const gchar *bversion
); ListallerAppItem * listaller_app_item_new_blank (void
); ListallerAppItem * listaller_app_item_new (const gchar *afullname
,const gchar *aversion
,const gchar *desktop_filename
); ListallerAppItem * listaller_app_item_new_from_id (const gchar *application_id
); ListallerAppItem * listaller_app_item_new_from_desktopfile (const gchar *desktop_filename
); const gchar * listaller_app_item_get_idname (ListallerAppItem *self
); const gchar * listaller_app_item_get_full_name (ListallerAppItem *self
); void listaller_app_item_set_full_name (ListallerAppItem *self
,const gchar *value
); const gchar * listaller_app_item_get_version (ListallerAppItem *self
); void listaller_app_item_set_version (ListallerAppItem *self
,const gchar *value
); const gchar * listaller_app_item_get_summary (ListallerAppItem *self
); void listaller_app_item_set_summary (ListallerAppItem *self
,const gchar *value
); const gchar * listaller_app_item_get_description (ListallerAppItem *self
); void listaller_app_item_set_description (ListallerAppItem *self
,const gchar *value
); const gchar * listaller_app_item_get_author (ListallerAppItem *self
); void listaller_app_item_set_author (ListallerAppItem *self
,const gchar *value
); const gchar * listaller_app_item_get_publisher (ListallerAppItem *self
); void listaller_app_item_set_publisher (ListallerAppItem *self
,const gchar *value
); void listaller_app_item_get_license (ListallerAppItem *self
,ListallerAppLicense *result
); void listaller_app_item_set_license (ListallerAppItem *self
,ListallerAppLicense *value
); const gchar * listaller_app_item_get_categories (ListallerAppItem *self
); void listaller_app_item_set_categories (ListallerAppItem *self
,const gchar *value
); gint listaller_app_item_get_size_installed (ListallerAppItem *self
); void listaller_app_item_set_size_installed (ListallerAppItem *self
,gint value
); const gchar * listaller_app_item_get_desktop_file (ListallerAppItem *self
); void listaller_app_item_set_desktop_file (ListallerAppItem *self
,const gchar *value
); ListallerAppState listaller_app_item_get_state (ListallerAppItem *self
); void listaller_app_item_set_state (ListallerAppItem *self
,ListallerAppState value
); const gchar * listaller_app_item_get_icon_name (ListallerAppItem *self
); void listaller_app_item_set_icon_name (ListallerAppItem *self
,const gchar *value
); const gchar * listaller_app_item_get_website (ListallerAppItem *self
); void listaller_app_item_set_website (ListallerAppItem *self
,const gchar *value
); gint64 listaller_app_item_get_install_time (ListallerAppItem *self
); void listaller_app_item_set_install_time (ListallerAppItem *self
,gint64 value
); const gchar * listaller_app_item_get_replaces (ListallerAppItem *self
); void listaller_app_item_set_replaces (ListallerAppItem *self
,const gchar *value
); const gchar * listaller_app_item_get_origin (ListallerAppItem *self
); void listaller_app_item_set_origin (ListallerAppItem *self
,const gchar *value
); const gchar * listaller_app_item_get_dependencies_str (ListallerAppItem *self
); void listaller_app_item_set_dependencies_str (ListallerAppItem *self
,const gchar *value
); const gchar * listaller_app_item_get_appid (ListallerAppItem *self
); gboolean listaller_app_item_validate_appid (const gchar *application_id
); struct ListallerAppItem; struct ListallerAppItemClass; gchar * listaller_app_state_to_string (ListallerAppState self
); 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
); enum ListallerAppState; struct ListallerAppLicense; ListallerAppLicense * listaller_app_license_dup (const ListallerAppLicense *self
); void listaller_app_license_free (ListallerAppLicense *self
); void listaller_app_license_copy (const ListallerAppLicense *self
,ListallerAppLicense *dest
); void listaller_app_license_destroy (ListallerAppLicense *self
);
GObject +----ListallerAppItem
GFlags +----ListallerAppState
GBoxed +----ListallerAppLicense
"appid" gchar* : Read "author" gchar* : Read / Write "categories" gchar* : Read / Write "dependencies-str" gchar* : Read / Write "description" gchar* : Read / Write "desktop-file" gchar* : Read / Write "full-name" gchar* : Read / Write "icon-name" gchar* : Read / Write "idname" gchar* : Read / Write "install-time" gint64 : Read / Write "license" ListallerAppLicense* : Read / Write "origin" gchar* : Read / Write "publisher" gchar* : Read / Write "replaces" gchar* : Read / Write "size-installed" gint : Read / Write "state" ListallerAppState : Read / Write "summary" gchar* : Read / Write "version" gchar* : Read / Write "website" gchar* : Read / Write
#define LISTALLER_TYPE_APP_ITEM (listaller_app_item_get_type ())
The type for ListallerAppItem.
void listaller_app_item_set_origin_local (ListallerAppItem *self
);
|
the ListallerAppItem instance |
gchar * listaller_app_item_to_string (ListallerAppItem *self
);
|
the ListallerAppItem instance |
void listaller_app_item_set_license_name (ListallerAppItem *self
,const gchar *lName
);
|
the ListallerAppItem instance |
|
void listaller_app_item_set_license_text (ListallerAppItem *self
,const gchar *lText
);
|
the ListallerAppItem instance |
|
void listaller_app_item_set_license_from_doap_name (ListallerAppItem *self
,const gchar *name
);
|
the ListallerAppItem instance |
|
void listaller_app_item_fast_check (ListallerAppItem *self
);
|
the ListallerAppItem instance |
void listaller_app_item_update_with_appid (ListallerAppItem *self
,gboolean fast
);
|
the ListallerAppItem instance |
|
gchar * listaller_app_item_build_pk_package_id
(ListallerAppItem *self
);
Generate a PackageKit package-id for this application
|
the ListallerAppItem instance |
void listaller_app_item_update_with_desktop_file
(ListallerAppItem *self
);
|
the ListallerAppItem instance |
gchar * listaller_app_item_get_raw_cmd (ListallerAppItem *self
,gboolean subst_cmd
);
|
the ListallerAppItem instance |
|
gint listaller_app_item_compare_version_with (ListallerAppItem *self
,const gchar *bversion
);
|
the ListallerAppItem instance |
|
ListallerAppItem * listaller_app_item_new (const gchar *afullname
,const gchar *aversion
,const gchar *desktop_filename
);
|
|
|
|
|
ListallerAppItem * listaller_app_item_new_from_id (const gchar *application_id
);
|
ListallerAppItem * listaller_app_item_new_from_desktopfile
(const gchar *desktop_filename
);
|
const gchar * listaller_app_item_get_idname (ListallerAppItem *self
);
Get and return the current value of the "idname" property.
Application identifier
|
the ListallerAppItem instance to query |
Returns : |
the value of the "idname" property |
const gchar * listaller_app_item_get_full_name (ListallerAppItem *self
);
Get and return the current value of the "full-name" property.
|
the ListallerAppItem instance to query |
Returns : |
the value of the "full-name" property |
void listaller_app_item_set_full_name (ListallerAppItem *self
,const gchar *value
);
Set the value of the "full-name" property to value
.
|
the ListallerAppItem instance to modify |
|
the new value of the "full-name" property |
const gchar * listaller_app_item_get_version (ListallerAppItem *self
);
Get and return the current value of the "version" property.
|
the ListallerAppItem instance to query |
Returns : |
the 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
.
|
the ListallerAppItem instance to modify |
|
the new value of the "version" property |
const gchar * listaller_app_item_get_summary (ListallerAppItem *self
);
Get and return the current value of the "summary" property.
|
the ListallerAppItem instance to query |
Returns : |
the value of the "summary" property |
void listaller_app_item_set_summary (ListallerAppItem *self
,const gchar *value
);
Set the value of the "summary" property to value
.
|
the ListallerAppItem instance to modify |
|
the new value of the "summary" property |
const gchar * listaller_app_item_get_description (ListallerAppItem *self
);
Get and return the current value of the "description" property.
|
the ListallerAppItem instance to query |
Returns : |
the value of the "description" property |
void listaller_app_item_set_description (ListallerAppItem *self
,const gchar *value
);
Set the value of the "description" property to value
.
|
the ListallerAppItem instance to modify |
|
the new value of the "description" property |
const gchar * listaller_app_item_get_author (ListallerAppItem *self
);
Get and return the current value of the "author" property.
|
the ListallerAppItem instance to query |
Returns : |
the value of the "author" property |
void listaller_app_item_set_author (ListallerAppItem *self
,const gchar *value
);
Set the value of the "author" property to value
.
|
the ListallerAppItem instance to modify |
|
the new value of the "author" property |
const gchar * listaller_app_item_get_publisher (ListallerAppItem *self
);
Get and return the current value of the "publisher" property.
|
the ListallerAppItem instance to query |
Returns : |
the value of the "publisher" property |
void listaller_app_item_set_publisher (ListallerAppItem *self
,const gchar *value
);
Set the value of the "publisher" property to value
.
|
the ListallerAppItem instance to modify |
|
the new value of the "publisher" property |
void listaller_app_item_get_license (ListallerAppItem *self
,ListallerAppLicense *result
);
Get and return the current value of the "license" property.
|
the ListallerAppItem instance to query |
Returns : |
the value of the "license" property |
void listaller_app_item_set_license (ListallerAppItem *self
,ListallerAppLicense *value
);
Set the value of the "license" property to value
.
|
the ListallerAppItem instance to modify |
|
the new value of the "license" property |
const gchar * listaller_app_item_get_categories (ListallerAppItem *self
);
Get and return the current value of the "categories" property.
|
the ListallerAppItem instance to query |
Returns : |
the value of the "categories" property |
void listaller_app_item_set_categories (ListallerAppItem *self
,const gchar *value
);
Set the value of the "categories" property to value
.
|
the ListallerAppItem instance to modify |
|
the new value of the "categories" property |
gint listaller_app_item_get_size_installed
(ListallerAppItem *self
);
Get and return the current value of the "size-installed" property.
|
the ListallerAppItem instance to query |
Returns : |
the 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
.
|
the ListallerAppItem instance to modify |
|
the new value of the "size-installed" property |
const gchar * listaller_app_item_get_desktop_file (ListallerAppItem *self
);
Get and return the current value of the "desktop-file" property.
|
the ListallerAppItem instance to query |
Returns : |
the 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
.
|
the ListallerAppItem instance to modify |
|
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.
|
the ListallerAppItem instance to query |
Returns : |
the value of the "state" property |
void listaller_app_item_set_state (ListallerAppItem *self
,ListallerAppState value
);
Set the value of the "state" property to value
.
|
the ListallerAppItem instance to modify |
|
the new value of the "state" property |
const gchar * listaller_app_item_get_icon_name (ListallerAppItem *self
);
Get and return the current value of the "icon-name" property.
|
the ListallerAppItem instance to query |
Returns : |
the value of the "icon-name" property |
void listaller_app_item_set_icon_name (ListallerAppItem *self
,const gchar *value
);
Set the value of the "icon-name" property to value
.
|
the ListallerAppItem instance to modify |
|
the new value of the "icon-name" property |
const gchar * listaller_app_item_get_website (ListallerAppItem *self
);
Get and return the current value of the "website" property.
|
the ListallerAppItem instance to query |
Returns : |
the value of the "website" property |
void listaller_app_item_set_website (ListallerAppItem *self
,const gchar *value
);
Set the value of the "website" property to value
.
|
the ListallerAppItem instance to modify |
|
the new value of the "website" property |
gint64 listaller_app_item_get_install_time (ListallerAppItem *self
);
Get and return the current value of the "install-time" property.
|
the ListallerAppItem instance to query |
Returns : |
the 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
.
|
the ListallerAppItem instance to modify |
|
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.
|
the ListallerAppItem instance to query |
Returns : |
the 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
.
|
the ListallerAppItem instance to modify |
|
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.
|
the ListallerAppItem instance to query |
Returns : |
the 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
.
|
the ListallerAppItem instance to modify |
|
the new value of the "origin" property |
const gchar * listaller_app_item_get_dependencies_str
(ListallerAppItem *self
);
Get and return the current value of the "dependencies-str" property.
|
the ListallerAppItem instance to query |
Returns : |
the value of the "dependencies-str" property |
void listaller_app_item_set_dependencies_str (ListallerAppItem *self
,const gchar *value
);
Set the value of the "dependencies-str" property to value
.
|
the ListallerAppItem instance to modify |
|
the new value of the "dependencies-str" property |
const gchar * listaller_app_item_get_appid (ListallerAppItem *self
);
Get and return the current value of the "appid" property.
|
the ListallerAppItem instance to query |
Returns : |
the value of the "appid" property |
gboolean listaller_app_item_validate_appid (const gchar *application_id
);
|
struct ListallerAppItem;
Application entry
Objects of this class contain information about an application
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.
GObjectClass |
the parent class structure |
gchar * listaller_app_state_to_string (ListallerAppState self
);
|
the ListallerAppState instance |
gboolean listaller_app_state_is_all_set (ListallerAppState self
,ListallerAppState flags
);
|
the ListallerAppState instance |
|
gboolean listaller_app_state_is_any_set (ListallerAppState self
,ListallerAppState flags
);
|
the ListallerAppState instance |
|
ListallerAppState listaller_app_state_set (ListallerAppState self
,ListallerAppState mode
);
|
the ListallerAppState instance |
|
ListallerAppState listaller_app_state_unset (ListallerAppState self
,ListallerAppState mode
);
|
the ListallerAppState instance |
|
typedef enum { LISTALLER_APP_STATE_UNKNOWN = 1 << 0, LISTALLER_APP_STATE_INSTALLED_SHARED = 1 << 1, LISTALLER_APP_STATE_INSTALLED_PRIVATE = 1 << 2, LISTALLER_APP_STATE_AVAILABLE = 1 << 3 } ListallerAppState;
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.
struct ListallerAppLicense { gchar* name; gchar* text; };
License name and text pair
Describes a software license
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()
|
the instance to duplicate |
Returns : |
a copy of self , free with 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()
|
the struct to free |
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()
|
the struct to copy |
|
a unused struct. Use listaller_app_license_destroy() to free the content. |
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()
|
the struct to destroy |
"dependencies-str"
property"dependencies-str" gchar* : Read / Write
dependencies-str.
Default value: NULL