|
|
|
|
PackageKit Reference Manual |
|
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | Signals | ||||
#define
PK_PACKAGE_TYPE_ERROR
struct
PkPackage
;struct
PkPackageClass
;
gboolean
pk_package_equal
(
PkPackage
*package1
,
PkPackage
*package2
);
gboolean
pk_package_equal_id
(
PkPackage
*package1
,
PkPackage
*package2
);const
gchar
*
pk_package_get_arch
(
PkPackage
*package
);const
gchar
*
pk_package_get_data
(
PkPackage
*package
);const
gchar
*
pk_package_get_id
(
PkPackage
*package
);
PkInfoEnum
pk_package_get_info
(
PkPackage
*package
);const
gchar
*
pk_package_get_name
(
PkPackage
*package
);const
gchar
*
pk_package_get_summary
(
PkPackage
*package
);const
gchar
*
pk_package_get_version
(
PkPackage
*package
);
PkPackage
*
pk_package_new
(
void
);
void
pk_package_print
(
PkPackage
*package
);
gboolean
pk_package_set_id
(
PkPackage
*package
,
const
gchar
*package_id
,
GError
**error
);
void
pk_package_test
(
gpointer
user_data
);
"
description
"
gchar
* : Read / Write "
group
"
guint
: Read / Write "
info
"
guint
: Read / Write "
license
"
gchar
* : Read / Write "
package-id
"
gchar
* : Read "
size
"
guint64
: Read / Write "
summary
"
gchar
* : Read / Write "
update-bugzilla-urls
"
GStrv
: Read / Write "
update-changelog
"
gchar
* : Read / Write "
update-cve-urls
"
GStrv
: Read / Write "
update-issued
"
gchar
* : Read / Write "
update-obsoletes
"
gchar
* : Read / Write "
update-restart
"
guint
: Read / Write "
update-state
"
guint
: Read / Write "
update-text
"
gchar
* : Read / Write "
update-updated
"
gchar
* : Read / Write "
update-updates
"
gchar
* : Read / Write "
update-vendor-urls
"
GStrv
: Read / Write "
url
"
gchar
* : Read / Write
This GObject represents a package from a transaction.These objects represent single items of data from the transaction, and areoften present in lists ( PkResults ) or just refcounted in client programs.
struct PkPackageClass {PkSourceClass parent_class;/* signals */void(* changed)(PkPackage *package);/* padding for future expansion */void (*_pk_reserved1) (void);void (*_pk_reserved2) (void);void (*_pk_reserved3) (void);void (*_pk_reserved4) (void);void (*_pk_reserved5) (void);};
gboolean
pk_package_equal (
PkPackage
*package1
,
PkPackage
*package2
);
Do the PkPackage 's have the same ID.
|
|
a valid PkPackage instance |
|
|
a valid PkPackage instance |
|
Returns : |
TRUE
if the packages have the same package_id, info and summary.
|
Since 0.5.4
gboolean
pk_package_equal_id (
PkPackage
*package1
,
PkPackage
*package2
);
Do the PkPackage 's have the same ID.
|
|
a valid PkPackage instance |
|
|
a valid PkPackage instance |
|
Returns : |
TRUE
if the packages have the same package_id.
|
Since 0.5.4
const
gchar
* pk_package_get_arch (
PkPackage
*package
);
Gets the package arch.
|
|
a valid PkPackage instance |
|
Returns : |
the arch, or
NULL
if unset
|
Since 0.6.4
const
gchar
* pk_package_get_data (
PkPackage
*package
);
Gets the package data, which is usually the repository ID that contains thepackage. Special ID's include "installed" for installed packages, and "local"for local packages that exist on disk but not in a repoitory.
|
|
a valid PkPackage instance |
|
Returns : |
the data, or
NULL
if unset
|
Since 0.6.4
const
gchar
* pk_package_get_id (
PkPackage
*package
);
Gets the package object ID
|
|
a valid PkPackage instance |
|
Returns : |
the ID, or
NULL
if unset
|
Since 0.5.4
PkInfoEnum
pk_package_get_info (
PkPackage
*package
);
Gets the package object ID
|
|
a valid PkPackage instance |
|
Returns : |
the
PkInfoEnum
|
Since 0.5.4
const
gchar
* pk_package_get_name (
PkPackage
*package
);
Gets the package name.
|
|
a valid PkPackage instance |
|
Returns : |
the name, or
NULL
if unset
|
Since 0.6.4
const
gchar
* pk_package_get_summary (
PkPackage
*package
);
Gets the package object ID
|
|
a valid PkPackage instance |
|
Returns : |
the summary, or
NULL
if unset
|
Since 0.5.4
const
gchar
* pk_package_get_version (
PkPackage
*package
);
Gets the package version.
|
|
a valid PkPackage instance |
|
Returns : |
the version, or
NULL
if unset
|
Since 0.6.4
PkPackage
* pk_package_new (
void
);
|
Returns : |
a new PkPackage object. |
Since 0.5.4
void
pk_package_print (
PkPackage
*package
);
Prints details about the package to standard out.
|
|
a valid PkPackage instance |
Since 0.5.4
gboolean
pk_package_set_id (
PkPackage
*package
,
const
gchar
*package_id
,
GError
**error
);
Sets the package object to have the given ID
|
|
a valid PkPackage instance |
|
|
the valid package_id |
|
|
a
GError
to put the error code and message in, or
NULL
|
|
Returns : |
TRUE
if the package_id was set
|
Since 0.5.4
"description"
property
"description"
gchar
* : Read / Write
The package description.
Default value: NULL
Since 0.5.4
"group"
property
"group"
guint
: Read / Write
The package group.
Allowed values: <= 35
Default value: 0
Since 0.5.4
"info"
property
"info"
guint
: Read / Write
The PkInfoEnum package type, e.g. PK_INFO_ENUM_NORMAL.
Default value: 0
Since 0.5.4
"license"
property
"license"
gchar
* : Read / Write
The package license.
Default value: NULL
Since 0.5.4
"package-id"
property
"package-id"
gchar
* : Read
The full package_id, e.g. 'gnome-power-manager;0.1.2;i386;fedora'.
Default value: NULL
Since 0.5.4
"summary"
property
"summary"
gchar
* : Read / Write
The package summary.
Default value: NULL
Since 0.5.4
"update-bugzilla-urls"
property
"update-bugzilla-urls"
GStrv
: Read / Write
The update bugzilla URLs.
Since 0.8.1
"update-changelog"
property
"update-changelog"
gchar
* : Read / Write
The update ChangeLog.
Default value: NULL
Since 0.5.4
"update-cve-urls"
property
"update-cve-urls"
GStrv
: Read / Write
The update CVE URLs.
Since 0.8.1
"update-issued"
property
"update-issued"
gchar
* : Read / Write
When the update was issued.
Default value: NULL
Since 0.5.4
"update-obsoletes"
property
"update-obsoletes"
gchar
* : Read / Write
The update packages that are obsoleted.
Default value: NULL
Since 0.5.4
"update-restart"
property
"update-restart"
guint
: Read / Write
The update restart type.
Allowed values: <= 7
Default value: 0
Since 0.5.4
"update-state"
property
"update-state"
guint
: Read / Write
The update state.
Allowed values: <= 4
Default value: 0
Since 0.5.4
"update-text"
property
"update-text"
gchar
* : Read / Write
The update description.
Default value: NULL
Since 0.5.4
"update-updated"
property
"update-updated"
gchar
* : Read / Write
When the update was last updated.
Default value: NULL
Since 0.5.4
"update-updates"
property
"update-updates"
gchar
* : Read / Write
The update packages.
Default value: NULL
Since 0.5.4
"update-vendor-urls"
property
"update-vendor-urls"
GStrv
: Read / Write
The update vendor URLs.
Since 0.8.1