Osso Addressbook Reference Manual | ||||
---|---|---|---|---|
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);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GtkDialog +----HildonDialog +----HildonPickerDialog +----OssoABookMcAccountSelector
"model" OssoABookMcAccountModel* : Read / Write / Construct Only "selection-mode" gint : Read / Write
The OssoABookMcAccountSelector type for selecting a preferred service based on the account list
typedef struct _OssoABookMcAccountSelector OssoABookMcAccountSelector;
All the fields of this structure are private to the object's implementation and should never be accessed directly.
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 |
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 |
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.
|
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. |
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 |
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. |
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 |
"model"
property"model" OssoABookMcAccountModel* : Read / Write / Construct Only
The OssoABookMcAccountModel to display.