ZifPackageRemote

ZifPackageRemote — Remote package object

Synopsis

                    ZifPackageRemote;
                    ZifPackageRemotePrivate;
                    ZifPackageRemoteClass;
ZifPackageRemote *  zif_package_remote_new              (void);
gboolean            zif_package_remote_set_from_repo    (ZifPackageRemote *pkg,
                                                         guint length,
                                                         gchar **type,
                                                         gchar **data,
                                                         const gchar *repo_id,
                                                         GError **error);
const gchar *       zif_package_remote_get_pkgid        (ZifPackageRemote *pkg);
void                zif_package_remote_set_pkgid        (ZifPackageRemote *pkg,
                                                         const gchar *pkgid);
void                zif_package_remote_set_store_remote (ZifPackageRemote *pkg,
                                                         ZifStoreRemote *store);

Object Hierarchy

  GObject
   +----ZifPackage
         +----ZifPackageRemote

Description

This object is a subclass of ZifPackage

Details

ZifPackageRemote

typedef struct _ZifPackageRemote ZifPackageRemote;


ZifPackageRemotePrivate

typedef struct _ZifPackageRemotePrivate ZifPackageRemotePrivate;

Private ZifPackageRemote data


ZifPackageRemoteClass

typedef struct {
	ZifPackageClass		 parent_class;
} ZifPackageRemoteClass;


zif_package_remote_new ()

ZifPackageRemote *  zif_package_remote_new              (void);

Returns :

A new ZifPackageRemote class instance.

Since 0.1.0


zif_package_remote_set_from_repo ()

gboolean            zif_package_remote_set_from_repo    (ZifPackageRemote *pkg,
                                                         guint length,
                                                         gchar **type,
                                                         gchar **data,
                                                         const gchar *repo_id,
                                                         GError **error);

Sets details on a remote package from repo data derived from the metadata xml.

pkg :

the ZifPackageRemote object

length :

length of data and type arrays

type :

data type array

data :

data value array

repo_id :

the repository id

error :

a GError which is used on failure, or NULL

Returns :

TRUE for success, FALSE for failure

Since 0.1.0


zif_package_remote_get_pkgid ()

const gchar *       zif_package_remote_get_pkgid        (ZifPackageRemote *pkg);

Gets the pkgid used internally to track the package item.

pkg :

the ZifPackageRemote object

Returns :

the pkgid hash.

Since 0.1.0


zif_package_remote_set_pkgid ()

void                zif_package_remote_set_pkgid        (ZifPackageRemote *pkg,
                                                         const gchar *pkgid);

Sets the pkgid used internally to track the package item.

pkg :

the ZifPackageRemote object

pkgid :

the pkgid hash.

Since 0.1.0


zif_package_remote_set_store_remote ()

void                zif_package_remote_set_store_remote (ZifPackageRemote *pkg,
                                                         ZifStoreRemote *store);

Sets the store used to create this package, which we may need of we ever need to ensure() data at runtime.

pkg :

the ZifPackageRemote object

store :

the ZifStoreRemote that created this package

Since 0.1.0