OssoABookAccountModel

OssoABookAccountModel — A GtkTreeModel listing OssoABookAccount objects.

Synopsis

                    OssoABookAccountModel;

enum                OssoABookAccountModelColumn;
const GEnumValue*   osso_abook_account_model_column_from_name
                                                        (const char *name);
const GEnumValue*   osso_abook_account_model_column_from_nick
                                                        (const char *nick);
const char*         osso_abook_account_model_column_get_name
                                                        (OssoABookAccountModelColumn value);
const char*         osso_abook_account_model_column_get_nick
                                                        (OssoABookAccountModelColumn value);

                    OssoABookAccountModelRow;

                    OssoABookAccountModelTuple;

Description

The OssoABookAccountModel is a model that lists the OssoABookAccount objects of accounts from EContact objects exposed by an EBookView, and their associated OssoABookPresence objects.

Details

OssoABookAccountModel

typedef struct {
} OssoABookAccountModel;

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


enum OssoABookAccountModelColumn

typedef enum {
        OSSO_ABOOK_ACCOUNT_MODEL_COLUMN_CONTACT  = OSSO_ABOOK_LIST_STORE_COLUMN_CONTACT,
        OSSO_ABOOK_ACCOUNT_MODEL_COLUMN_TUPLE    = OSSO_ABOOK_LIST_STORE_COLUMN_LAST,
        OSSO_ABOOK_ACCOUNT_MODEL_COLUMN_LAST,
} OssoABookAccountModelColumn;

The columns in an OssoABookAccountModel.

OSSO_ABOOK_ACCOUNT_MODEL_COLUMN_CONTACT The contact column, containing an OssoABookContact instance
OSSO_ABOOK_ACCOUNT_MODEL_COLUMN_TUPLE The tuple column, containing an OssoABookAccountModelTuple instance
OSSO_ABOOK_ACCOUNT_MODEL_COLUMN_LAST The first column id available for child classes

osso_abook_account_model_column_from_name ()

const GEnumValue*   osso_abook_account_model_column_from_name
                                                        (const char *name);

Looks up the description of the OssoABookAccountModelColumn member with that full name.

name : the full name of a OssoABookAccountModelColumn member
Returns : A GEnumValue when name is valid, NULL otherwise.

osso_abook_account_model_column_from_nick ()

const GEnumValue*   osso_abook_account_model_column_from_nick
                                                        (const char *nick);

Looks up the description of the OssoABookAccountModelColumn member with that nick name.

nick : the nick name of a OssoABookAccountModelColumn member
Returns : A GEnumValue when nick is valid, NULL otherwise.

osso_abook_account_model_column_get_name ()

const char*         osso_abook_account_model_column_get_name
                                                        (OssoABookAccountModelColumn value);

Retreives the full name of a OssoABookAccountModelColumn member.

value : the a OssoABookAccountModelColumn member
Returns : The full name for value, or NULL if there is no such member.

osso_abook_account_model_column_get_nick ()

const char*         osso_abook_account_model_column_get_nick
                                                        (OssoABookAccountModelColumn value);

Retreives the nick name of a OssoABookAccountModelColumn member.

value : the a OssoABookAccountModelColumn member
Returns : The nick name for value, or NULL if there is no such member.

OssoABookAccountModelRow

typedef struct {
        OssoABookListStoreRow       parent;
        OssoABookAccountModelTuple *tuple;
} OssoABookAccountModelRow;

One single row of an OssoABookAccountModel.

OssoABookListStoreRow parent; Information common for all OssoABookListStoreRow instances
OssoABookAccountModelTuple *tuple; The OssoABookAccountModelTuple associated with this row

OssoABookAccountModelTuple

typedef struct {
        OssoABookContact *contact;
        OssoABookAccount *account;
        int               ref_count;
} OssoABookAccountModelTuple;

Links an OssoABookContact to an OssoABookAccount.

OssoABookContact *contact; OssoABookContact of the tuple.
OssoABookAccount *account; OssoABookAccount of the tuple.
int ref_count; Reference count of the tuple struct.

See Also

OssoABookAccountView, OssoABookAccountSelector, OssoABookPresence