ListallerDependency

ListallerDependency — Definition of a dependency of an application

Functions

Properties

gchar * architecture Read / Write
gint dbid Read / Write
gchar * environment Read / Write
gchar * feed-url Read / Write
gint64 install-time Read / Write
gboolean installed Read / Write
GeeHashSet * installed-items Read
AsComponent * metainfo Read / Write
gchar * origin Read / Write
gchar * unique-name Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── ListallerDependency

Description

Contains a AsComponent which holds the actual information about the referenced component-dependency.

Functions

LISTALLER_TYPE_DEPENDENCY

#define LISTALLER_TYPE_DEPENDENCY (listaller_dependency_get_type ())

The type for ListallerDependency.


listaller_dependency_load_xml_data ()

gboolean
listaller_dependency_load_xml_data (ListallerDependency *self,
                                    const gchar *xmld,
                                    GError **error);

Parameters

self

the ListallerDependency instance

 

xmld

 

 

error

location to store the error occuring, or NULL to ignore

 

listaller_dependency_load_from_file ()

gboolean
listaller_dependency_load_from_file (ListallerDependency *self,
                                     const gchar *fname,
                                     gboolean include_optional);

Parameters

self

the ListallerDependency instance

 

fname

 

 

include_optional

 

 

listaller_dependency_contains_directive ()

gboolean
listaller_dependency_contains_directive
                               (ListallerDependency *self,
                                const gchar *str);

Parameters

self

the ListallerDependency instance

 

str

 

 

listaller_dependency_process_directives ()

gchar *
listaller_dependency_process_directives
                               (ListallerDependency *self,
                                const gchar *directive_str,
                                GError **error);

Parameters

self

the ListallerDependency instance

 

directive_str

 

 

error

location to store the error occuring, or NULL to ignore.

[error-domains ListallerDepComponentError]

Returns

Value of the directives found


listaller_dependency_get_version ()

gchar *
listaller_dependency_get_version (ListallerDependency *self,
                                  GError **error);

Parameters

self

the ListallerDependency instance

 

error

location to store the error occuring, or NULL to ignore.

[error-domains ListallerDepComponentError]

listaller_dependency_set_version ()

void
listaller_dependency_set_version (ListallerDependency *self,
                                  const gchar *new_version);

Parameters

self

the ListallerDependency instance

 

new_version

 

 

listaller_dependency_has_item ()

gboolean
listaller_dependency_has_item (ListallerDependency *self,
                               AsProvidesKind kind,
                               const gchar *val);

Parameters

self

the ListallerDependency instance

 

kind

 

 

val

 

 

listaller_dependency_has_matching_item ()

gboolean
listaller_dependency_has_matching_item
                               (ListallerDependency *self,
                                AsProvidesKind kind,
                                const gchar *val);

Parameters

self

the ListallerDependency instance

 

kind

 

 

val

 

 

listaller_dependency_has_items ()

gboolean
listaller_dependency_has_items (ListallerDependency *self);

Parameters

self

the ListallerDependency instance

 

listaller_dependency_get_installed_items_as_string ()

gchar *
listaller_dependency_get_installed_items_as_string
                               (ListallerDependency *self);

Parameters

self

the ListallerDependency instance

 

listaller_dependency_has_installed_items ()

gboolean
listaller_dependency_has_installed_items
                               (ListallerDependency *self);

Parameters

self

the ListallerDependency instance

 

listaller_dependency_has_feed ()

gboolean
listaller_dependency_has_feed (ListallerDependency *self);

Parameters

self

the ListallerDependency instance

 

listaller_dependency_get_install_dir_for_setting ()

gchar *
listaller_dependency_get_install_dir_for_setting
                               (ListallerDependency *self,
                                ListallerSetupSettings *setup_setting);

Get installation directory for this module, using the SettupSettings taken as argument

Parameters

self

the ListallerDependency instance

 

setup_setting

 

 

listaller_dependency_get_metadata_xml ()

gchar *
listaller_dependency_get_metadata_xml (ListallerDependency *self);

Parameters

self

the ListallerDependency instance

 

listaller_dependency_build_pk_package_id ()

gchar *
listaller_dependency_build_pk_package_id
                               (ListallerDependency *self);

Generate a PackageKit package-id for this dependency information

Parameters

self

the ListallerDependency instance

 

listaller_dependency_is_valid ()

gboolean
listaller_dependency_is_valid (ListallerDependency *self);

Parameters

self

the ListallerDependency instance

 

Returns

TRUE if the dependency is valid (= contains sane data)


listaller_dependency_new ()

ListallerDependency *
listaller_dependency_new (void);

listaller_dependency_get_metainfo ()

AsComponent *
listaller_dependency_get_metainfo (ListallerDependency *self);

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

Parameters

self

the ListallerDependency instance to query

 

Returns

the value of the "metainfo" property


listaller_dependency_get_unique_name ()

const gchar *
listaller_dependency_get_unique_name (ListallerDependency *self);

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

Parameters

self

the ListallerDependency instance to query

 

Returns

the value of the "unique-name" property


listaller_dependency_get_architecture ()

const gchar *
listaller_dependency_get_architecture (ListallerDependency *self);

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

Parameters

self

the ListallerDependency instance to query

 

Returns

the value of the "architecture" property


listaller_dependency_get_installed ()

gboolean
listaller_dependency_get_installed (ListallerDependency *self);

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

Parameters

self

the ListallerDependency instance to query

 

Returns

the value of the "installed" property


listaller_dependency_set_installed ()

void
listaller_dependency_set_installed (ListallerDependency *self,
                                    gboolean value);

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

Parameters

self

the ListallerDependency instance to modify

 

value

the new value of the "installed" property

 

listaller_dependency_get_origin ()

const gchar *
listaller_dependency_get_origin (ListallerDependency *self);

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

Parameters

self

the ListallerDependency instance to query

 

Returns

the value of the "origin" property


listaller_dependency_get_install_time ()

gint64
listaller_dependency_get_install_time (ListallerDependency *self);

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

Parameters

self

the ListallerDependency instance to query

 

Returns

the value of the "install-time" property


listaller_dependency_get_environment ()

const gchar *
listaller_dependency_get_environment (ListallerDependency *self);

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

Parameters

self

the ListallerDependency instance to query

 

Returns

the value of the "environment" property


listaller_dependency_get_feed_url ()

const gchar *
listaller_dependency_get_feed_url (ListallerDependency *self);

Get and return the current value of the "feed-url" property.

Parameters

self

the ListallerDependency instance to query

 

Returns

the value of the "feed-url" property


listaller_dependency_get_installed_items ()

GeeHashSet *
listaller_dependency_get_installed_items
                               (ListallerDependency *self);

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

Parameters

self

the ListallerDependency instance to query

 

Returns

the value of the "installed-items" property

Types and Values

struct ListallerDependency

struct ListallerDependency;

Definition of a dependency of an application

Contains a AsComponent which holds the actual information about the referenced component-dependency.


struct ListallerDependencyClass

struct ListallerDependencyClass {
	GObjectClass parent_class;
};

The class structure for LISTALLER_TYPE_DEPENDENCY. All the fields in this structure are private and should never be accessed directly.

Members

GObjectClass parent_class;

the parent class structure

 

enum ListallerDepComponentError

Members

LISTALLER_DEP_COMPONENT_ERROR_VERSION_NOT_FOUND

   

LISTALLER_DEP_COMPONENT_ERROR_DIRECTIVES_RESOLVE_FAILED

   

LISTALLER_DEP_COMPONENT_ERROR_DIRECTIVES_INVALID

   

Property Details

The “architecture” property

  “architecture”             gchar *

architecture.

Flags: Read / Write

Default value: NULL


The “dbid” property

  “dbid”                     gint

dbid.

Flags: Read / Write

Default value: 0


The “environment” property

  “environment”              gchar *

environment.

Flags: Read / Write

Default value: NULL


The “feed-url” property

  “feed-url”                 gchar *

feed-url.

Flags: Read / Write

Default value: NULL


The “install-time” property

  “install-time”             gint64

install-time.

Flags: Read / Write

Default value: 0


The “installed” property

  “installed”                gboolean

installed.

Flags: Read / Write

Default value: FALSE


The “installed-items” property

  “installed-items”          GeeHashSet *

installed-items.

Flags: Read


The “metainfo” property

  “metainfo”                 AsComponent *

metainfo.

Flags: Read / Write


The “origin” property

  “origin”                   gchar *

origin.

Flags: Read / Write

Default value: NULL


The “unique-name” property

  “unique-name”              gchar *

unique-name.

Flags: Read / Write

Default value: NULL