AccountService

AccountService — A service accessible by accounts.

Synopsis

                    AccountService;
AccountEditContext* account_service_begin_new           (AccountService *service);
AccountPlugin*      account_service_get_plugin          (AccountService *service);
const gchar*        account_service_get_name            (AccountService *service);
const gchar*        account_service_get_display_name    (AccountService *service);

Object Hierarchy

  GObject
   +----AccountService

Properties

  "display-name"             gchar*                : Read / Write
  "icon"                     GdkPixbuf*            : Read / Write
  "name"                     gchar*                : Read / Write / Construct
  "plugin"                   AccountPlugin*        : Read / Write / Construct Only
  "supports-avatar"          gboolean              : Read / Write

Description

An AccountService represents a service which accounts can access. Services are created by AccountPlugin objects and are means by which the same plugin could provide support for different types of accounts.

Details

AccountService

typedef struct _AccountService AccountService;


account_service_begin_new ()

AccountEditContext* account_service_begin_new           (AccountService *service);

Start the creation of a new account for accessing this service.

service : The AccountService.
Returns : an AccountEditContext for editing the account.

account_service_get_plugin ()

AccountPlugin*      account_service_get_plugin          (AccountService *service);

Gets the plugin which manages this account service.

service : the AccountService.
Returns : a AccountPlugin; its reference count is not incremented.

account_service_get_name ()

const gchar*        account_service_get_name            (AccountService *service);

Gets the name of this service.

service : the AccountService.
Returns : a const string representing the service's name.

account_service_get_display_name ()

const gchar*        account_service_get_display_name    (AccountService *service);

Gets the display name of this service.

service : the AccountService.
Returns : a const string representing the service's display name.

Property Details

The "display-name" property

  "display-name"             gchar*                : Read / Write

Display name.

Default value: NULL


The "icon" property

  "icon"                     GdkPixbuf*            : Read / Write

Icon.


The "name" property

  "name"                     gchar*                : Read / Write / Construct

Account name.

Default value: NULL


The "plugin" property

  "plugin"                   AccountPlugin*        : Read / Write / Construct Only

Plugin.


The "supports-avatar" property

  "supports-avatar"          gboolean              : Read / Write

Supports avatar.

Default value: FALSE