AccountEditContext

AccountEditContext — context data and methods for account editing.

Synopsis




            AccountEditContext;
AccountItem* account_edit_context_get_account
                                            (AccountEditContext *context);
AccountPlugin* account_edit_context_get_plugin
                                            (AccountEditContext *context);
gboolean    account_edit_context_get_editing
                                            (AccountEditContext *context);

Object Hierarchy


  GObject
   +----AccountEditContext

Properties


  "account"              AccountItem           : Read / Write / Construct Only
  "editing"              gboolean              : Read / Write / Construct Only
  "plugin"               AccountPlugin         : Read / Write / Construct Only

Description

An AccountEditContext is an object created by the AccountPlugin for editing or creating an AccountItem. The base class only provides methods for getting the context data, so account plugins should provide a subclass of it implementing also some interface for performing the actual editing (such as the AccountWizardContext interface, which is currently the only one available).

Details

AccountEditContext

typedef struct _AccountEditContext AccountEditContext;


account_edit_context_get_account ()

AccountItem* account_edit_context_get_account
                                            (AccountEditContext *context);

Gets the account item bound to this context.

context : the AccountEditContext.
Returns : the AccountItem, reference count is NOT incremented.

account_edit_context_get_plugin ()

AccountPlugin* account_edit_context_get_plugin
                                            (AccountEditContext *context);

Gets the account plugin bound to this context.

context : the AccountEditContext.
Returns : the AccountPlugin, reference count is NOT incremented.

account_edit_context_get_editing ()

gboolean    account_edit_context_get_editing
                                            (AccountEditContext *context);

context : The AccountEditContext
Returns : TRUE if the account is an existing account being edited; FALSE in case it is a newly created one.

Property Details

The "account" property

  "account"              AccountItem           : Read / Write / Construct Only

Account item.


The "editing" property

  "editing"              gboolean              : Read / Write / Construct Only

Editing an existing account.

Default value: FALSE


The "plugin" property

  "plugin"               AccountPlugin         : Read / Write / Construct Only

Account plugin.