ListallerAppItem

ListallerAppItem — Application entry

Synopsis

#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 (ListallerAppItem *self);
void                listaller_app_item_set_dependencies (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);

Object Hierarchy

  GObject
   +----ListallerAppItem
  GFlags
   +----ListallerAppState
  GBoxed
   +----ListallerAppLicense

Properties

  "appid"                    gchar*                : Read
  "author"                   gchar*                : Read / Write
  "categories"               gchar*                : Read / Write
  "dependencies"             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

Description

Objects of this class contain information about an application

Details

LISTALLER_TYPE_APP_ITEM

#define LISTALLER_TYPE_APP_ITEM (listaller_app_item_get_type ())

The type for ListallerAppItem.


listaller_app_item_set_origin_local ()

void                listaller_app_item_set_origin_local (ListallerAppItem *self);

self :

the ListallerAppItem instance

listaller_app_item_to_string ()

gchar *             listaller_app_item_to_string        (ListallerAppItem *self);

self :

the ListallerAppItem instance

listaller_app_item_set_license_name ()

void                listaller_app_item_set_license_name (ListallerAppItem *self,
                                                         const gchar *lName);

self :

the ListallerAppItem instance

listaller_app_item_set_license_text ()

void                listaller_app_item_set_license_text (ListallerAppItem *self,
                                                         const gchar *lText);

self :

the ListallerAppItem instance

listaller_app_item_set_license_from_doap_name ()

void                listaller_app_item_set_license_from_doap_name
                                                        (ListallerAppItem *self,
                                                         const gchar *name);

self :

the ListallerAppItem instance

listaller_app_item_fast_check ()

void                listaller_app_item_fast_check       (ListallerAppItem *self);

self :

the ListallerAppItem instance

listaller_app_item_update_with_appid ()

void                listaller_app_item_update_with_appid
                                                        (ListallerAppItem *self,
                                                         gboolean fast);

self :

the ListallerAppItem instance

listaller_app_item_build_pk_package_id ()

gchar *             listaller_app_item_build_pk_package_id
                                                        (ListallerAppItem *self);

Generate a PackageKit package-id for this application

self :

the ListallerAppItem instance

listaller_app_item_update_with_desktop_file ()

void                listaller_app_item_update_with_desktop_file
                                                        (ListallerAppItem *self);

self :

the ListallerAppItem instance

listaller_app_item_get_raw_cmd ()

gchar *             listaller_app_item_get_raw_cmd      (ListallerAppItem *self,
                                                         gboolean subst_cmd);

self :

the ListallerAppItem instance

listaller_app_item_compare_version_with ()

gint                listaller_app_item_compare_version_with
                                                        (ListallerAppItem *self,
                                                         const gchar *bversion);

self :

the ListallerAppItem instance

listaller_app_item_new_blank ()

ListallerAppItem *  listaller_app_item_new_blank        (void);

listaller_app_item_new ()

ListallerAppItem *  listaller_app_item_new              (const gchar *afullname,
                                                         const gchar *aversion,
                                                         const gchar *desktop_filename);

listaller_app_item_new_from_id ()

ListallerAppItem *  listaller_app_item_new_from_id      (const gchar *application_id);

listaller_app_item_new_from_desktopfile ()

ListallerAppItem *  listaller_app_item_new_from_desktopfile
                                                        (const gchar *desktop_filename);

listaller_app_item_get_idname ()

const gchar *       listaller_app_item_get_idname       (ListallerAppItem *self);

Get and return the current value of the "idname" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "idname" property

listaller_app_item_get_full_name ()

const gchar *       listaller_app_item_get_full_name    (ListallerAppItem *self);

Get and return the current value of the "full-name" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "full-name" property

listaller_app_item_set_full_name ()

void                listaller_app_item_set_full_name    (ListallerAppItem *self,
                                                         const gchar *value);

Set the value of the "full-name" property to value.

self :

the ListallerAppItem instance to modify

value :

the new value of the "full-name" property

listaller_app_item_get_version ()

const gchar *       listaller_app_item_get_version      (ListallerAppItem *self);

Get and return the current value of the "version" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "version" property

listaller_app_item_set_version ()

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

listaller_app_item_get_summary ()

const gchar *       listaller_app_item_get_summary      (ListallerAppItem *self);

Get and return the current value of the "summary" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "summary" property

listaller_app_item_set_summary ()

void                listaller_app_item_set_summary      (ListallerAppItem *self,
                                                         const gchar *value);

Set the value of the "summary" property to value.

self :

the ListallerAppItem instance to modify

value :

the new value of the "summary" property

listaller_app_item_get_description ()

const gchar *       listaller_app_item_get_description  (ListallerAppItem *self);

Get and return the current value of the "description" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "description" property

listaller_app_item_set_description ()

void                listaller_app_item_set_description  (ListallerAppItem *self,
                                                         const gchar *value);

Set the value of the "description" property to value.

self :

the ListallerAppItem instance to modify

value :

the new value of the "description" property

listaller_app_item_get_author ()

const gchar *       listaller_app_item_get_author       (ListallerAppItem *self);

Get and return the current value of the "author" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "author" property

listaller_app_item_set_author ()

void                listaller_app_item_set_author       (ListallerAppItem *self,
                                                         const gchar *value);

Set the value of the "author" property to value.

self :

the ListallerAppItem instance to modify

value :

the new value of the "author" property

listaller_app_item_get_publisher ()

const gchar *       listaller_app_item_get_publisher    (ListallerAppItem *self);

Get and return the current value of the "publisher" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "publisher" property

listaller_app_item_set_publisher ()

void                listaller_app_item_set_publisher    (ListallerAppItem *self,
                                                         const gchar *value);

Set the value of the "publisher" property to value.

self :

the ListallerAppItem instance to modify

value :

the new value of the "publisher" property

listaller_app_item_get_license ()

void                listaller_app_item_get_license      (ListallerAppItem *self,
                                                         ListallerAppLicense *result);

Get and return the current value of the "license" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "license" property

listaller_app_item_set_license ()

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

listaller_app_item_get_categories ()

const gchar *       listaller_app_item_get_categories   (ListallerAppItem *self);

Get and return the current value of the "categories" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "categories" property

listaller_app_item_set_categories ()

void                listaller_app_item_set_categories   (ListallerAppItem *self,
                                                         const gchar *value);

Set the value of the "categories" property to value.

self :

the ListallerAppItem instance to modify

value :

the new value of the "categories" property

listaller_app_item_get_size_installed ()

gint                listaller_app_item_get_size_installed
                                                        (ListallerAppItem *self);

Get and return the current value of the "size-installed" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "size-installed" property

listaller_app_item_set_size_installed ()

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

listaller_app_item_get_desktop_file ()

const gchar *       listaller_app_item_get_desktop_file (ListallerAppItem *self);

Get and return the current value of the "desktop-file" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "desktop-file" property

listaller_app_item_set_desktop_file ()

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

listaller_app_item_get_state ()

ListallerAppState   listaller_app_item_get_state        (ListallerAppItem *self);

Get and return the current value of the "state" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "state" property

listaller_app_item_set_state ()

void                listaller_app_item_set_state        (ListallerAppItem *self,
                                                         ListallerAppState value);

Set the value of the "state" property to value.

self :

the ListallerAppItem instance to modify

value :

the new value of the "state" property

listaller_app_item_get_icon_name ()

const gchar *       listaller_app_item_get_icon_name    (ListallerAppItem *self);

Get and return the current value of the "icon-name" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "icon-name" property

listaller_app_item_set_icon_name ()

void                listaller_app_item_set_icon_name    (ListallerAppItem *self,
                                                         const gchar *value);

Set the value of the "icon-name" property to value.

self :

the ListallerAppItem instance to modify

value :

the new value of the "icon-name" property

listaller_app_item_get_website ()

const gchar *       listaller_app_item_get_website      (ListallerAppItem *self);

Get and return the current value of the "website" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "website" property

listaller_app_item_set_website ()

void                listaller_app_item_set_website      (ListallerAppItem *self,
                                                         const gchar *value);

Set the value of the "website" property to value.

self :

the ListallerAppItem instance to modify

value :

the new value of the "website" property

listaller_app_item_get_install_time ()

gint64              listaller_app_item_get_install_time (ListallerAppItem *self);

Get and return the current value of the "install-time" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "install-time" property

listaller_app_item_set_install_time ()

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

listaller_app_item_get_replaces ()

const gchar *       listaller_app_item_get_replaces     (ListallerAppItem *self);

Get and return the current value of the "replaces" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "replaces" property

listaller_app_item_set_replaces ()

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

listaller_app_item_get_origin ()

const gchar *       listaller_app_item_get_origin       (ListallerAppItem *self);

Get and return the current value of the "origin" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "origin" property

listaller_app_item_set_origin ()

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

listaller_app_item_get_dependencies ()

const gchar *       listaller_app_item_get_dependencies (ListallerAppItem *self);

Get and return the current value of the "dependencies" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "dependencies" property

listaller_app_item_set_dependencies ()

void                listaller_app_item_set_dependencies (ListallerAppItem *self,
                                                         const gchar *value);

Set the value of the "dependencies" property to value.

self :

the ListallerAppItem instance to modify

value :

the new value of the "dependencies" property

listaller_app_item_get_appid ()

const gchar *       listaller_app_item_get_appid        (ListallerAppItem *self);

Get and return the current value of the "appid" property.

self :

the ListallerAppItem instance to query

Returns :

the value of the "appid" property

listaller_app_item_validate_appid ()

gboolean            listaller_app_item_validate_appid   (const gchar *application_id);

struct ListallerAppItem

struct ListallerAppItem;

Application entry

Objects of this class contain information about an application


struct ListallerAppItemClass

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 parent_class;

the parent class structure

listaller_app_state_to_string ()

gchar *             listaller_app_state_to_string       (ListallerAppState self);

self :

the ListallerAppState instance

listaller_app_state_is_all_set ()

gboolean            listaller_app_state_is_all_set      (ListallerAppState self,
                                                         ListallerAppState flags);

self :

the ListallerAppState instance

listaller_app_state_is_any_set ()

gboolean            listaller_app_state_is_any_set      (ListallerAppState self,
                                                         ListallerAppState flags);

self :

the ListallerAppState instance

listaller_app_state_set ()

ListallerAppState   listaller_app_state_set             (ListallerAppState self,
                                                         ListallerAppState mode);

self :

the ListallerAppState instance

listaller_app_state_unset ()

ListallerAppState   listaller_app_state_unset           (ListallerAppState self,
                                                         ListallerAppState mode);

self :

the ListallerAppState instance

enum ListallerAppState

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

struct ListallerAppLicense {
	gchar* name;
	gchar* text;
};

License name and text pair

Describes a software license


listaller_app_license_dup ()

ListallerAppLicense * listaller_app_license_dup         (const ListallerAppLicense *self);

listaller_app_license_free ()

void                listaller_app_license_free          (ListallerAppLicense *self);

Property Details

The "appid" property

  "appid"                    gchar*                : Read

appid.

Default value: NULL


The "author" property

  "author"                   gchar*                : Read / Write

author.

Default value: NULL


The "categories" property

  "categories"               gchar*                : Read / Write

categories.

Default value: NULL


The "dependencies" property

  "dependencies"             gchar*                : Read / Write

dependencies.

Default value: NULL


The "description" property

  "description"              gchar*                : Read / Write

description.

Default value: NULL


The "desktop-file" property

  "desktop-file"             gchar*                : Read / Write

desktop-file.

Default value: NULL


The "full-name" property

  "full-name"                gchar*                : Read / Write

full-name.

Default value: NULL


The "icon-name" property

  "icon-name"                gchar*                : Read / Write

icon-name.

Default value: NULL


The "idname" property

  "idname"                   gchar*                : Read / Write

Application identifier

Default value: NULL


The "install-time" property

  "install-time"             gint64                : Read / Write

install-time.

Default value: 0


The "license" property

  "license"                  ListallerAppLicense*  : Read / Write

license.


The "origin" property

  "origin"                   gchar*                : Read / Write

origin.

Default value: NULL


The "publisher" property

  "publisher"                gchar*                : Read / Write

publisher.

Default value: NULL


The "replaces" property

  "replaces"                 gchar*                : Read / Write

replaces.

Default value: NULL


The "size-installed" property

  "size-installed"           gint                  : Read / Write

size-installed.

Default value: 0


The "state" property

  "state"                    ListallerAppState     : Read / Write

state.


The "summary" property

  "summary"                  gchar*                : Read / Write

summary.

Default value: NULL


The "version" property

  "version"                  gchar*                : Read / Write

version.

Default value: NULL


The "website" property

  "website"                  gchar*                : Read / Write

website.

Default value: NULL