Top |
PkPackage * | pk_package_new () |
void | pk_package_test () |
gboolean | pk_package_set_id () |
gboolean | pk_package_parse () |
void | pk_package_print () |
gboolean | pk_package_equal () |
gboolean | pk_package_equal_id () |
const gchar * | pk_package_get_id () |
PkInfoEnum | pk_package_get_info () |
void | pk_package_set_info () |
const gchar * | pk_package_get_summary () |
void | pk_package_set_summary () |
const gchar * | pk_package_get_name () |
const gchar * | pk_package_get_version () |
const gchar * | pk_package_get_arch () |
const gchar * | pk_package_get_data () |
gchar * | description | Read / Write |
PkGroupEnum | group | Read / Write |
PkInfoEnum | info | Read / Write |
gchar * | license | Read / Write |
gchar * | package-id | Read |
guint64 | size | Read / Write |
gchar * | summary | Read / Write |
GStrv | update-bugzilla-urls | Read / Write |
gchar * | update-changelog | Read / Write |
GStrv | update-cve-urls | Read / Write |
gchar * | update-issued | Read / Write |
gchar * | update-obsoletes | Read / Write |
PkRestartEnum | update-restart | Read / Write |
PkUpdateStateEnum | update-state | Read / Write |
gchar * | update-text | Read / Write |
gchar * | update-updated | Read / Write |
gchar * | update-updates | Read / Write |
GStrv | update-vendor-urls | Read / Write |
gchar * | url | Read / Write |
This GObject represents a package from a transaction. These objects represent single items of data from the transaction, and are often present in lists (PkResults) or just refcounted in client programs.
gboolean pk_package_set_id (PkPackage *package
,const gchar *package_id
,GError **error
);
Sets the package object to have the given ID
Since: 0.5.4
gboolean pk_package_parse (PkPackage *package
,const gchar *data
,GError **error
);
Parses the data to populate the PkPackage.
Since: 0.8.11
void
pk_package_print (PkPackage *package
);
Prints details about the package to standard out.
Since: 0.5.4
gboolean pk_package_equal (PkPackage *package1
,PkPackage *package2
);
Do the PkPackage's have the same ID.
Since: 0.5.4
gboolean pk_package_equal_id (PkPackage *package1
,PkPackage *package2
);
Do the PkPackage's have the same ID.
Since: 0.5.4
const gchar *
pk_package_get_id (PkPackage *package
);
Gets the package object ID
Since: 0.5.4
PkInfoEnum
pk_package_get_info (PkPackage *package
);
Gets the package object ID
Since: 0.5.4
void pk_package_set_info (PkPackage *package
,PkInfoEnum info
);
Sets the package info enum.
Since: 0.8.14
const gchar *
pk_package_get_summary (PkPackage *package
);
Gets the package object ID
Since: 0.5.4
void pk_package_set_summary (PkPackage *package
,const gchar *summary
);
Sets the package summary.
Since: 0.8.14
const gchar *
pk_package_get_name (PkPackage *package
);
Gets the package name.
Since: 0.6.4
const gchar *
pk_package_get_version (PkPackage *package
);
Gets the package version.
Since: 0.6.4
const gchar *
pk_package_get_arch (PkPackage *package
);
Gets the package arch.
Since: 0.6.4
const gchar *
pk_package_get_data (PkPackage *package
);
Gets the package data, which is usually the repository ID that contains the package. Special ID's include "installed" for installed packages, and "local" for local packages that exist on disk but not in a repository.
Since: 0.6.4
“description”
property“description” gchar *
The package description.
Flags: Read / Write
Default value: NULL
Since: 0.5.4
“group”
property“group” PkGroupEnum
The package group.
Flags: Read / Write
Default value: PK_GROUP_ENUM_UNKNOWN
Since: 0.5.4
“info”
property“info” PkInfoEnum
The PkInfoEnum package type, e.g. PK_INFO_ENUM_NORMAL.
Flags: Read / Write
Default value: PK_INFO_ENUM_UNKNOWN
Since: 0.5.4
“license”
property“license” gchar *
The package license.
Flags: Read / Write
Default value: NULL
Since: 0.5.4
“package-id”
property“package-id” gchar *
The full package_id, e.g. 'gnome-power-manager;0.1.2;i386;fedora'.
Flags: Read
Default value: NULL
Since: 0.5.4
“size”
property“size” guint64
The package size.
Flags: Read / Write
Default value: 0
Since: 0.5.4
“summary”
property“summary” gchar *
The package summary.
Flags: Read / Write
Default value: NULL
Since: 0.5.4
“update-bugzilla-urls”
property“update-bugzilla-urls” GStrv
The update bugzilla URLs.
Flags: Read / Write
Since: 0.8.1
“update-changelog”
property“update-changelog” gchar *
The update ChangeLog.
Flags: Read / Write
Default value: NULL
Since: 0.5.4
“update-cve-urls”
property“update-cve-urls” GStrv
The update CVE URLs.
Flags: Read / Write
Since: 0.8.1
“update-issued”
property“update-issued” gchar *
When the update was issued.
Flags: Read / Write
Default value: NULL
Since: 0.5.4
“update-obsoletes”
property“update-obsoletes” gchar *
The update packages that are obsoleted.
Flags: Read / Write
Default value: NULL
Since: 0.5.4
“update-restart”
property“update-restart” PkRestartEnum
The update restart type.
Flags: Read / Write
Default value: PK_RESTART_ENUM_UNKNOWN
Since: 0.5.4
“update-state”
property“update-state” PkUpdateStateEnum
The update state.
Flags: Read / Write
Default value: PK_UPDATE_STATE_ENUM_UNKNOWN
Since: 0.5.4
“update-text”
property“update-text” gchar *
The update description.
Flags: Read / Write
Default value: NULL
Since: 0.5.4
“update-updated”
property“update-updated” gchar *
When the update was last updated.
Flags: Read / Write
Default value: NULL
Since: 0.5.4
“update-updates”
property“update-updates” gchar *
The update packages.
Flags: Read / Write
Default value: NULL
Since: 0.5.4
“update-vendor-urls”
property“update-vendor-urls” GStrv
The update vendor URLs.
Flags: Read / Write
Since: 0.8.1
“url”
property“url” gchar *
The package homepage URL.
Flags: Read / Write
Default value: NULL
Since: 0.5.4