![]() |
![]() |
![]() |
libosso-rtcom-accounts Reference Manual | ![]() |
---|---|---|---|---|
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);
The RtcomContext is a subclass of AccountEditContext implementing the AccountWizardContext interface.
RtcomContext* rtcom_context_new (RtcomAccountPlugin *plugin, RtcomAccountItem *item, gboolean editing_existing);
plugin : |
|
item : |
|
editing_existing : |
|
Returns : |
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. |
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. |
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. |
void rtcom_context_truncate (RtcomContext *context);
Deletes all the pages after the current one.
context : |
the RtcomContext. |
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.
|
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. |