OssoABookMcAccountSelector

OssoABookMcAccountSelector — Dialog for choosing an IM account.

Synopsis

                    OssoABookMcAccountSelector;
GtkWidget*          osso_abook_mc_account_selector_new  (GtkWindow *parent,
                                                         OssoABookMcAccountModel *model);
McAccount*          osso_abook_mc_account_selector_get_account
                                                        (OssoABookMcAccountSelector *dialog);
GList*              osso_abook_mc_account_selector_get_accounts
                                                        (OssoABookMcAccountSelector *dialog);
OssoABookMcAccountModel* osso_abook_mc_account_selector_get_model
                                                        (OssoABookMcAccountSelector *dialog);
void                osso_abook_mc_account_selector_set_model
                                                        (OssoABookMcAccountSelector *dialog,
                                                         OssoABookMcAccountModel *model);
HildonTouchSelectorSelectionMode osso_abook_mc_account_selector_get_selection_mode
                                                        (OssoABookMcAccountSelector *dialog);
void                osso_abook_mc_account_selector_set_selection_mode
                                                        (OssoABookMcAccountSelector *dialog,
                                                         HildonTouchSelectorSelectionMode mode);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----GtkWindow
                                       +----GtkDialog
                                             +----HildonDialog
                                                   +----HildonPickerDialog
                                                         +----OssoABookMcAccountSelector

Implemented Interfaces

OssoABookMcAccountSelector implements AtkImplementorIface and GtkBuildable.

Properties

  "model"                    OssoABookMcAccountModel*  : Read / Write / Construct Only
  "selection-mode"           gint                  : Read / Write

Description

The OssoABookMcAccountSelector type for selecting a preferred service based on the account list

Details

OssoABookMcAccountSelector

typedef struct _OssoABookMcAccountSelector OssoABookMcAccountSelector;

All the fields of this structure are private to the object's implementation and should never be accessed directly.


osso_abook_mc_account_selector_new ()

GtkWidget*          osso_abook_mc_account_selector_new  (GtkWindow *parent,
                                                         OssoABookMcAccountModel *model);

Creates a new account selector dialog instance. The selector assumes the reference to the model, so you must increase its reference count if you intend to use the model directly.

parent : A GtkWindow to be used as a parent to this dialog
model : A OssoABookMcAccountModel (for setting filters), or NULL for the default settings
Returns : A newly created OssoABookMcAccountSelector instance

osso_abook_mc_account_selector_get_account ()

McAccount*          osso_abook_mc_account_selector_get_account
                                                        (OssoABookMcAccountSelector *dialog);

Returns the currently selected account in the dialog. Note that this will fail if the selection mode is HILDON_TOUCH_SELECTOR_SELECTION_MODE_MULTIPLE -- in that case, use osso_abook_mc_account_selector_get_accounts()

dialog : The OssoABookMcAccountSelector instance to get the selection from
Returns : The McAccount that is currently selected

osso_abook_mc_account_selector_get_accounts ()

GList*              osso_abook_mc_account_selector_get_accounts
                                                        (OssoABookMcAccountSelector *dialog);

Returns the currently selected accounts in the dialog. If the selection mode is HILDON_TOUCH_SELECTOR_SELECTION_MODE_SINGLE, you may want to use osso_abook_mc_account_selector_get_account() for convenience.

dialog : The OssoABookMcAccountSelector instance to get the selection from
Returns : A new GList of McAccounts that are currently selected. This list must be freed with g_list_free() after use.

osso_abook_mc_account_selector_get_model ()

OssoABookMcAccountModel* osso_abook_mc_account_selector_get_model
                                                        (OssoABookMcAccountSelector *dialog);

Retrieves the name of the account capabilities that are being filtered upon.

dialog : A OssoABookMcAccountSelector
Returns : The name of the account capabilities that are being filtered upon.

osso_abook_mc_account_selector_set_model ()

void                osso_abook_mc_account_selector_set_model
                                                        (OssoABookMcAccountSelector *dialog,
                                                         OssoABookMcAccountModel *model);

Sets the active model for this dialog.

model : An OssoABookMcAccountModel to display in the dialog

osso_abook_mc_account_selector_get_selection_mode ()

HildonTouchSelectorSelectionMode osso_abook_mc_account_selector_get_selection_mode
                                                        (OssoABookMcAccountSelector *dialog);

Retrieves the dialog's HildonTouchSelectorSelectionMode row selection mode.

dialog : The OssoABookMcAccountSelector dialog
Returns : The dialog's column selection mode.

osso_abook_mc_account_selector_set_selection_mode ()

void                osso_abook_mc_account_selector_set_selection_mode
                                                        (OssoABookMcAccountSelector *dialog,
                                                         HildonTouchSelectorSelectionMode mode);

Sets the row selection mode for this dialog.

model : An OssoABookMcAccountModel to display in the dialog

Property Details

The "model" property

  "model"                    OssoABookMcAccountModel*  : Read / Write / Construct Only

The OssoABookMcAccountModel to display.


The "selection-mode" property

  "selection-mode"           gint                  : Read / Write

The dialog's selection mode (eg, single, multi).

Allowed values: [0,1]

Default value: 0