## McAccountMonitor

McAccountMonitor — Monitor the accounts' status.

## Synopsis

                        McAccountMonitor;
    McAccountMonitor*   mc_account_monitor_new              (void);

## Object Hierarchy

      GObject
       +----McAccountMonitor

## Signals

      "account-changed"                                : Run Last
      "account-created"                                : Run Last
      "account-deleted"                                : Run Last
      "account-disabled"                               : Run Last
      "account-enabled"                                : Run Last
      "param-changed"                                  : Run Last

## Description

The McAccountMonitor is an object that raises signals when some changes have been made to one account. There are signals for account creation/deletion/change, and enabling/disabling.

## Details

### McAccountMonitor

    typedef struct _McAccountMonitor McAccountMonitor;

### mc_account_monitor_new ()

    McAccountMonitor*   mc_account_monitor_new              (void);

Get a McAccountMonitor object. The object is a singleton: it is created only if another instance of itself is not alive, otherwise the same instance is returned.

Returns : | the McAccountMonitor object.

## Signal Details

### The `"account-changed"` signal

    void                user_function                      (McAccountMonitor *self,
                                                            gchar            *name,
                                                            gpointer          user_data)      : Run Last

Emitted when an account is changed.

`self` : | The McAccountMonitor.
`name` : | The name of the account being changed (use `mc_account_lookup()` to retrieve the account object).
`user_data` : | user data set when the signal handler was connected.

### The `"account-created"` signal

    void                user_function                      (McAccountMonitor *self,
                                                            gchar            *name,
                                                            gpointer          user_data)      : Run Last

Emitted when a new account is created.

`self` : | The McAccountMonitor.
`name` : | The name of the account being created (use `mc_account_lookup()` to retrieve the account object).
`user_data` : | user data set when the signal handler was connected.

### The `"account-deleted"` signal

    void                user_function                      (McAccountMonitor *self,
                                                            gchar            *name,
                                                            gpointer          user_data)      : Run Last

Emitted when an account is deleted.

`self` : | The McAccountMonitor.
`name` : | The name of the account being deleted (use `mc_account_lookup()` to retrieve the account object).
`user_data` : | user data set when the signal handler was connected.

### The `"account-disabled"` signal

    void                user_function                      (McAccountMonitor *self,
                                                            gchar            *name,
                                                            gpointer          user_data)      : Run Last

Emitted when an account is disabled.

`self` : | The McAccountMonitor.
`name` : | The name of the account being disabled (use `mc_account_lookup()` to retrieve the account object).
`user_data` : | user data set when the signal handler was connected.

### The `"account-enabled"` signal

    void                user_function                      (McAccountMonitor *self,
                                                            gchar            *name,
                                                            gpointer          user_data)      : Run Last

Emitted when an account is enabled.

`self` : | The McAccountMonitor.
`name` : | The name of the account being enabled (use `mc_account_lookup()` to retrieve the account object).
`user_data` : | user data set when the signal handler was connected.

### The `"param-changed"` signal

    void                user_function                      (McAccountMonitor *self,
                                                            gchar            *name,
                                                            gchar            *param,
                                                            gpointer          user_data)      : Run Last

Emitted when an account parameter is changed.

`self` : | The McAccountMonitor.
`name` : | The name of the account being changed (use `mc_account_lookup()` to retrieve the account object).
`param` : | The name of the parameter which changed.
`user_data` : | user data set when the signal handler was connected.