DnfState

DnfState

Functions

Types and Values

Description

Functions

dnf_state_done()

#define dnf_state_done(state, error)                    dnf_state_done_real(state, error, G_STRLOC)

dnf_state_finished()

#define dnf_state_finished(state, error)                dnf_state_finished_real(state, error, G_STRLOC)

dnf_state_set_number_steps()

#define dnf_state_set_number_steps(state, steps)        dnf_state_set_number_steps_real(state, steps, G_STRLOC)

dnf_state_set_steps()

#define dnf_state_set_steps(state, error, value, args...)       dnf_state_set_steps_real(state, error, G_STRLOC, value, ## args)

DnfStateErrorHandlerCb ()

gboolean
(*DnfStateErrorHandlerCb) (const GError *error,
                           gpointer user_data);

dnf_state_new ()

DnfState *
dnf_state_new (void);

dnf_state_get_percentage ()

guint
dnf_state_get_percentage (DnfState *state);

dnf_state_get_action ()

DnfStateAction
dnf_state_get_action (DnfState *state);

dnf_state_get_action_hint ()

const gchar *
dnf_state_get_action_hint (DnfState *state);

dnf_state_get_cancellable ()

GCancellable *
dnf_state_get_cancellable (DnfState *state);

dnf_state_get_allow_cancel ()

gboolean
dnf_state_get_allow_cancel (DnfState *state);

dnf_state_get_speed ()

guint64
dnf_state_get_speed (DnfState *state);

dnf_state_set_cancellable ()

void
dnf_state_set_cancellable (DnfState *state,
                           GCancellable *cancellable);

dnf_state_set_allow_cancel ()

void
dnf_state_set_allow_cancel (DnfState *state,
                            gboolean allow_cancel);

dnf_state_set_speed ()

void
dnf_state_set_speed (DnfState *state,
                     guint64 speed);

dnf_state_set_report_progress ()

void
dnf_state_set_report_progress (DnfState *state,
                               gboolean report_progress);

dnf_state_set_number_steps_real ()

gboolean
dnf_state_set_number_steps_real (DnfState *state,
                                 guint steps,
                                 const gchar *strloc);

dnf_state_set_steps_real ()

gboolean
dnf_state_set_steps_real (DnfState *state,
                          GError **error,
                          const gchar *strloc,
                          gint value,
                          ...);

dnf_state_set_percentage ()

gboolean
dnf_state_set_percentage (DnfState *state,
                          guint percentage);

dnf_state_set_package_progress ()

void
dnf_state_set_package_progress (DnfState *state,
                                const gchar *dnf_package_get_id,
                                DnfStateAction action,
                                guint percentage);

dnf_state_get_child ()

DnfState *
dnf_state_get_child (DnfState *state);

dnf_state_action_start ()

gboolean
dnf_state_action_start (DnfState *state,
                        DnfStateAction action,
                        const gchar *action_hint);

dnf_state_action_stop ()

gboolean
dnf_state_action_stop (DnfState *state);

dnf_state_check ()

gboolean
dnf_state_check (DnfState *state,
                 GError **error);

dnf_state_done_real ()

gboolean
dnf_state_done_real (DnfState *state,
                     GError **error,
                     const gchar *strloc);

dnf_state_finished_real ()

gboolean
dnf_state_finished_real (DnfState *state,
                         GError **error,
                         const gchar *strloc);

dnf_state_reset ()

gboolean
dnf_state_reset (DnfState *state);

dnf_state_set_enable_profile ()

void
dnf_state_set_enable_profile (DnfState *state,
                              gboolean enable_profile);

dnf_state_take_lock ()

gboolean
dnf_state_take_lock (DnfState *state,
                     DnfLockType lock_type,
                     DnfLockMode lock_mode,
                     GError **error);

dnf_state_release_locks ()

gboolean
dnf_state_release_locks (DnfState *state);

Types and Values

DNF_TYPE_STATE

#define DNF_TYPE_STATE (dnf_state_get_type ())

enum DnfStateAction

The action enum code.

Members

DNF_STATE_ACTION_UNKNOWN

Unknown status

 

DNF_STATE_ACTION_DOWNLOAD_PACKAGES

Downloading packages

 

DNF_STATE_ACTION_DOWNLOAD_METADATA

Downloading metadata

 

DNF_STATE_ACTION_LOADING_CACHE

Loading cache

 

DNF_STATE_ACTION_TEST_COMMIT

Testing transaction

 

DNF_STATE_ACTION_REQUEST

Requesting data

 

DNF_STATE_ACTION_REMOVE

Removing packages

 

DNF_STATE_ACTION_INSTALL

Installing packages

 

DNF_STATE_ACTION_UPDATE

Updating packages

 

DNF_STATE_ACTION_CLEANUP

Cleaning packages

 

DNF_STATE_ACTION_OBSOLETE

Obsoleting packages

 

DNF_STATE_ACTION_REINSTALL

Reinstall packages

 

DNF_STATE_ACTION_DOWNGRADE

Downgrading packages

 

DNF_STATE_ACTION_QUERY

Querying for results

 

struct DnfStateClass

struct DnfStateClass {
        GObjectClass    parent_class;
        void            (* percentage_changed)          (DnfState       *state,
                                                         guint           value);
        void            (* allow_cancel_changed)        (DnfState       *state,
                                                         gboolean        allow_cancel);
        void            (* action_changed)              (DnfState       *state,
                                                         DnfStateAction  action,
                                                         const gchar    *action_hint);
        void            (* package_progress_changed)    (DnfState       *state,
                                                         const gchar    *dnf_package_get_id,
                                                         DnfStateAction  action,
                                                         guint           percentage);
};

DnfState

typedef struct _DnfState DnfState;