PkNotify

PkNotify — GObject class for PackageKit notifications

Synopsis




#define             PK_NOTIFY_ERROR
                    PkNotifyPrivate;
                    PkNotify;
PkNotify*           pk_notify_new                       (void);

Object Hierarchy


  GObject
   +----PkNotify

Signals


  "repo-list-changed"                              : Run Last
  "restart-schedule"                               : Run Last
  "updates-changed"                                : Run Last

Description

A nice GObject to use for detecting system wide changes in PackageKit

Details

PK_NOTIFY_ERROR

#define PK_NOTIFY_ERROR	 	(pk_notify_error_quark ())


PkNotifyPrivate

typedef struct _PkNotifyPrivate PkNotifyPrivate;

Private PkNotify data


PkNotify

typedef struct _PkNotify PkNotify;


pk_notify_new ()

PkNotify*           pk_notify_new                       (void);

PkNotify is a nice GObject wrapper for PackageKit and makes writing frontends easy.

Returns :

A new PkNotify instance

Signal Details

The "repo-list-changed" signal

void                user_function                      (PkNotify *notify,
                                                        gpointer  user_data)      : Run Last

The ::repo-list-changed signal is emitted when the repo list may have changed and the notify program may have to update some UI.

notify :

the PkNotify instance that emitted the signal

user_data :

user data set when the signal handler was connected.

The "restart-schedule" signal

void                user_function                      (PkNotify *pknotify,
                                                        gpointer  user_data)      : Run Last

pknotify :

the object which received the signal.

user_data :

user data set when the signal handler was connected.

The "updates-changed" signal

void                user_function                      (PkNotify *notify,
                                                        gpointer  user_data)      : Run Last

The ::updates-changed signal is emitted when the update list may have changed and the notify program may have to update some UI.

notify :

the PkNotify instance that emitted the signal

user_data :

user data set when the signal handler was connected.