libaccounts Reference Manual | ||||
---|---|---|---|---|
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);
"account" AccountItem* : Read / Write / Construct Only "editing" gboolean : Read / Write / Construct Only "plugin" AccountPlugin* : Read / Write / Construct Only
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).
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. |
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. |
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.
|