OssoABookContactModel

OssoABookContactModel — A GtkTreeModel listing OssoABookContact objects.

Synopsis

                    OssoABookContactModel;
OssoABookContactModel* osso_abook_contact_model_new     (void);
OssoABookContactModel* osso_abook_contact_model_get_default
                                                        (void);
OssoABookListStoreRow* osso_abook_contact_model_find_contact
                                                        (OssoABookContactModel *model,
                                                         const char *uid,
                                                         GtkTreeIter *iter);

Description

The OssoABookContactModel is a model that lists the OssoABookContact objects exposed by an OssoABookAggregator.

This model can then be used with OssoABookContactView, OssoABookContactSelector, or custom GtkTreeView widgets.

Details

OssoABookContactModel

typedef struct {
} OssoABookContactModel;

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


osso_abook_contact_model_new ()

OssoABookContactModel* osso_abook_contact_model_new     (void);

Creates a new OssoABookContactModel object. Note that for any contacts to show up, the newly created model should be bound to an EBookView using osso_abook_list_store_set_book_view().

Returns : A new OssoABookContactModel object.

osso_abook_contact_model_get_default ()

OssoABookContactModel* osso_abook_contact_model_get_default
                                                        (void);

Returns :

osso_abook_contact_model_find_contact ()

OssoABookListStoreRow* osso_abook_contact_model_find_contact
                                                        (OssoABookContactModel *model,
                                                         const char *uid,
                                                         GtkTreeIter *iter);

Finds the OssoABookListStoreRow associated with the EContact which is identified by uid, or NULL if no such row is stored. When such a row is found and iter is not NULL it is initialized to point to the row returned.

model : An OssoABookContactModel
uid : The UID of an EContact
iter : A GtkTreeIter, or NULL
Returns : The OssoABookListStoreRow associated with uid, or NULL.

See Also

OssoABookContactView, OssoABookContactSelector, OssoABookContactPresence