RtcomContext

RtcomContext — context data for editing McAccount accounts.

Synopsis




            RtcomContext;
RtcomContext* rtcom_context_new             (RtcomAccountPlugin *plugin,
                                             RtcomAccountItem *item,
                                             gboolean editing_existing);
void        rtcom_context_take_obj          (RtcomContext *context,
                                             GObject *object);
void        rtcom_context_remove_obj        (RtcomContext *context,
                                             GObject *object);
void        rtcom_context_append_page       (RtcomContext *context,
                                             RtcomPage *page);
void        rtcom_context_truncate          (RtcomContext *context);
gboolean    rtcom_context_current_is_last   (RtcomContext *context);
RtcomPage*  rtcom_context_get_current_page  (RtcomContext *context);

Object Hierarchy


  GObject
   +----AccountEditContext
         +----RtcomContext

Implemented Interfaces

RtcomContext implements AccountWizardContext.

Description

The RtcomContext is a subclass of AccountEditContext implementing the AccountWizardContext interface.

Details

RtcomContext

typedef struct _RtcomContext RtcomContext;


rtcom_context_new ()

RtcomContext* rtcom_context_new             (RtcomAccountPlugin *plugin,
                                             RtcomAccountItem *item,
                                             gboolean editing_existing);

plugin :
item :
editing_existing :
Returns :

rtcom_context_take_obj ()

void        rtcom_context_take_obj          (RtcomContext *context,
                                             GObject *object);

Tell the context to take ownership of the given object. In practice, this is used to ensure that the object will be destroyed when the context is disposed.

context : the RtcomContext.
object : the GObject to reference.

rtcom_context_remove_obj ()

void        rtcom_context_remove_obj        (RtcomContext *context,
                                             GObject *object);

Tell the context to release the given object.

context : the RtcomContext.
object : the GObject to unreference.

rtcom_context_append_page ()

void        rtcom_context_append_page       (RtcomContext *context,
                                             RtcomPage *page);

Appends page to the list of pages to be displayed in context. This function takes care to call rtcom_page_set_account() on the page, so that it will be bound to the account being edited.

context : the RtcomContext.
page : the RtcomPage to add.

rtcom_context_truncate ()

void        rtcom_context_truncate          (RtcomContext *context);

Deletes all the pages after the current one.

context : the RtcomContext.

rtcom_context_current_is_last ()

gboolean    rtcom_context_current_is_last   (RtcomContext *context);

context : the RtcomContext.
Returns : TRUE if there are no other pages after the current one, FALSE otherwise.

rtcom_context_get_current_page ()

RtcomPage*  rtcom_context_get_current_page  (RtcomContext *context);

Returns the currently displayed page, without increasing its reference count.

context : the RtcomContext.
Returns : the current RtcomPage.