RtcomAccountPlugin

RtcomAccountPlugin — A base class for plugins handling McAccount accounts.

Synopsis




            RtcomAccountPlugin;
guint       rtcom_account_plugin_get_mc_account_status
                                            (RtcomAccountPlugin *plugin,
                                             McAccount *account);
void        rtcom_account_plugin_add_service
                                            (RtcomAccountPlugin *plugin,
                                             const gchar *name);

Object Hierarchy


  GObject
   +----AccountPlugin
         +----RtcomAccountPlugin

Description

This is a subclass of the AccountPlugin class in libaccounts which implements all the virtual methods in it. Plugins need to derive from this class to perform a few things in their instance init method:

Example:

static void
jabber_plugin_init (JabberPlugin *self)
{
    RtcomAccountPlugin *rtcom_plugin = RTCOM_ACCOUNT_PLUGIN (self);
    rtcom_plugin->name = "jabber";
    rtcom_account_plugin_add_service (rtcom_plugin, "jabber");
    ...

Also, implementations will probably need to implement the context_init method, in which they'll create the pages to be displayed in the wizard, and add them to the context by calling the rtcom_context_append_page() method.

Other methods of this class are probably of use only to the library itself.

Details

RtcomAccountPlugin

typedef struct _RtcomAccountPlugin RtcomAccountPlugin;


rtcom_account_plugin_get_mc_account_status ()

guint       rtcom_account_plugin_get_mc_account_status
                                            (RtcomAccountPlugin *plugin,
                                             McAccount *account);

Retrieve the connection status for account.

plugin : the RtcomAccountPlugin.
account : a McAccount.
Returns : a TelepathyConnectionStatus.

rtcom_account_plugin_add_service ()

void        rtcom_account_plugin_add_service
                                            (RtcomAccountPlugin *plugin,
                                             const gchar *name);

Add name to the list of services provided by plugin. Call this function in the plugin instance init() method.

plugin : the RtcomAccountPlugin.
name : the name of the service.