![]() |
![]() |
![]() |
ZIF Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#define ZIF_UPDATE_ERROR ZifUpdate; ZifUpdatePrivate; ZifUpdateClass; enum ZifUpdateState; enum ZifUpdateKind; ZifUpdate * zif_update_new (void
); ZifUpdateState zif_update_state_from_string (const gchar *state
); ZifUpdateKind zif_update_kind_from_string (const gchar *kind
); const gchar * zif_update_state_to_string (ZifUpdateState state
); const gchar * zif_update_kind_to_string (ZifUpdateKind kind
); ZifUpdateState zif_update_get_state (ZifUpdate *update
); ZifUpdateKind zif_update_get_kind (ZifUpdate *update
); const gchar * zif_update_get_id (ZifUpdate *update
); const gchar * zif_update_get_title (ZifUpdate *update
); const gchar * zif_update_get_description (ZifUpdate *update
); const gchar * zif_update_get_issued (ZifUpdate *update
); gboolean zif_update_get_reboot (ZifUpdate *update
); GPtrArray * zif_update_get_update_infos (ZifUpdate *update
); GPtrArray * zif_update_get_packages (ZifUpdate *update
); GPtrArray * zif_update_get_changelog (ZifUpdate *update
); void zif_update_set_state (ZifUpdate *update
,ZifUpdateState state
); void zif_update_set_kind (ZifUpdate *update
,ZifUpdateKind kind
); void zif_update_set_id (ZifUpdate *update
,const gchar *id
); void zif_update_set_title (ZifUpdate *update
,const gchar *title
); void zif_update_set_description (ZifUpdate *update
,const gchar *description
); void zif_update_set_issued (ZifUpdate *update
,const gchar *issued
); void zif_update_set_reboot (ZifUpdate *update
,gboolean reboot
); void zif_update_add_update_info (ZifUpdate *update
,ZifUpdateInfo *update_info
); void zif_update_add_package (ZifUpdate *update
,ZifPackage *package
); void zif_update_add_changeset (ZifUpdate *update
,ZifChangeset *changeset
);
"description" gchar* : Read "id" gchar* : Read "issued" gchar* : Read "kind" guint : Read "reboot" gboolean : Read "state" guint : Read "title" gchar* : Read
typedef enum { ZIF_UPDATE_STATE_STABLE, ZIF_UPDATE_STATE_TESTING, ZIF_UPDATE_STATE_UNKNOWN } ZifUpdateState;
typedef enum { ZIF_UPDATE_KIND_BUGFIX, ZIF_UPDATE_KIND_SECURITY, ZIF_UPDATE_KIND_ENHANCEMENT, ZIF_UPDATE_KIND_NEWPACKAGE, ZIF_UPDATE_KIND_UNKNOWN } ZifUpdateKind;
ZifUpdate * zif_update_new (void
);
Returns : |
A new ZifUpdate class instance. |
Since 0.1.0
ZifUpdateState zif_update_state_from_string (const gchar *state
);
|
|
Returns : |
ZifUpdateKind zif_update_kind_from_string (const gchar *kind
);
|
|
Returns : |
const gchar * zif_update_state_to_string (ZifUpdateState state
);
|
|
Returns : |
const gchar * zif_update_kind_to_string (ZifUpdateKind kind
);
|
|
Returns : |
ZifUpdateState zif_update_get_state (ZifUpdate *update
);
Gets the update state.
|
the ZifUpdate object |
Returns : |
the state of update, e.g. PK_UPDATE_STATE_ENUM_STABLE .
|
Since 0.1.0
ZifUpdateKind zif_update_get_kind (ZifUpdate *update
);
Gets the update kind.
|
the ZifUpdate object |
Returns : |
the state of update, e.g. PK_INFO_ENUM_SECURITY .
|
Since 0.1.0
const gchar * zif_update_get_id (ZifUpdate *update
);
Gets the ID for this update.
Since 0.1.0
const gchar * zif_update_get_title (ZifUpdate *update
);
Gets the title for this update.
Since 0.1.0
const gchar * zif_update_get_description (ZifUpdate *update
);
Gets the description for this update.
Since 0.1.0
const gchar * zif_update_get_issued (ZifUpdate *update
);
Gets the time this update was issued.
Since 0.1.0
gboolean zif_update_get_reboot (ZifUpdate *update
);
Gets if the update requires a reboot.
Since 0.1.0
GPtrArray * zif_update_get_update_infos (ZifUpdate *update
);
Gets the update info for this update.
|
the ZifUpdate object |
Returns : |
A refcounted GPtrArray of ZifUpdateInfo, or NULL . Free with g_ptr_array_unref() .
|
Since 0.1.0
GPtrArray * zif_update_get_packages (ZifUpdate *update
);
Gets the packages for this update.
|
the ZifUpdate object |
Returns : |
A refcounted GPtrArray of ZifPackage, or NULL . Free with g_ptr_array_unref() .
|
Since 0.1.0
GPtrArray * zif_update_get_changelog (ZifUpdate *update
);
Gets the changelog for this update.
|
the ZifUpdate object |
Returns : |
A refcounted GPtrArray of ZifChangeset's, or NULL . Free with g_ptr_array_unref() .
|
Since 0.1.0
void zif_update_set_state (ZifUpdate *update
,ZifUpdateState state
);
Sets the update state status.
|
the ZifUpdate object |
|
If the update is state |
Since 0.1.0
void zif_update_set_kind (ZifUpdate *update
,ZifUpdateKind kind
);
Sets the kind of update.
|
the ZifUpdate object |
|
the update kind, e.g. PK_INFO_ENUM_SECURITY .
|
Since 0.1.0
void zif_update_set_id (ZifUpdate *update
,const gchar *id
);
Sets the update ID.
|
the ZifUpdate object |
|
the update ID |
Since 0.1.0
void zif_update_set_title (ZifUpdate *update
,const gchar *title
);
Sets the update title.
|
the ZifUpdate object |
|
the update title |
Since 0.1.0
void zif_update_set_description (ZifUpdate *update
,const gchar *description
);
Sets the update description.
|
the ZifUpdate object |
|
the update description |
Since 0.1.0
void zif_update_set_issued (ZifUpdate *update
,const gchar *issued
);
Sets the time the update was issued.
|
the ZifUpdate object |
|
the update issued time |
Since 0.1.0
void zif_update_set_reboot (ZifUpdate *update
,gboolean reboot
);
Sets the update reboot status
|
the ZifUpdate object |
|
if the update requires a reboot |
Since 0.1.0
void zif_update_add_update_info (ZifUpdate *update
,ZifUpdateInfo *update_info
);
Adds some update info to the update.
|
the ZifUpdate object |
|
the ZifUpdateInfo |
Since 0.1.0
void zif_update_add_package (ZifUpdate *update
,ZifPackage *package
);
Adds some update info to the update.
|
the ZifUpdate object |
|
the ZifPackage |
Since 0.1.0
void zif_update_add_changeset (ZifUpdate *update
,ZifChangeset *changeset
);
Adds a changeset to the update.
|
the ZifUpdate object |
|
the ZifChangeset |
Since 0.1.0