Osso Addressbook Reference Manual |
---|
OssoABookTreeModelOssoABookTreeModel — A base class for representing contacts as a list |
OssoABookTreeModel; guint osso_abook_tree_model_get_contact_column (OssoABookTreeModel *model); guint osso_abook_tree_model_get_presence_column (OssoABookTreeModel *model); void osso_abook_tree_model_set_book_view (OssoABookTreeModel *model, EBookView *book_view); EBookView* osso_abook_tree_model_get_book_view (OssoABookTreeModel *model); gboolean osso_abook_tree_model_is_done_loading (OssoABookTreeModel *model); void osso_abook_tree_model_contact_changed (OssoABookTreeModel *model, EContact *contact); void osso_abook_tree_model_presence_changed (OssoABookTreeModel *model, OssoABookPresence *presence); void osso_abook_tree_model_set_done_loading (OssoABookTreeModel *model, gboolean done);
GObject +----GtkListStore +----OssoABookTreeModel +----OssoABookAccountModel +----OssoABookContactModel
OssoABookTreeModel implements GtkTreeModel, GtkTreeDragSource, GtkTreeDragDest and GtkTreeSortable.
"book-view" EBookView : Read / Write "contact-column" guint : Read / Write / Construct Only "presence-column" guint : Read / Write / Construct Only
"done-loading" void user_function (OssoABookTreeModel *model, gpointer user_data);
typedef struct _OssoABookTreeModel OssoABookTreeModel;
There are no public fields in OssoABookTreeModel.
guint osso_abook_tree_model_get_contact_column (OssoABookTreeModel *model);
Retreives the column containing the EContact objects.
model : |
An OssoABookTreeModel |
Returns : | The number of the column containing the EContact objects. |
guint osso_abook_tree_model_get_presence_column (OssoABookTreeModel *model);
Retreives the column containing the OssoABookPresence objects.
model : |
An OssoABookTreeModel |
Returns : | The number of the column containing the OssoABookPresence objects. |
void osso_abook_tree_model_set_book_view (OssoABookTreeModel *model, EBookView *book_view);
Sets the EBookView whose contents are to be exposed.
model : |
An OssoABookTreeModel |
book_view : |
The EBookView whose contents are to be exposed |
EBookView* osso_abook_tree_model_get_book_view (OssoABookTreeModel *model);
Retrieves the EBookView whose contents are to be exposed.
model : |
An OssoABookTreeModel |
Returns : | The EBookView whose contents are to be exposed. |
gboolean osso_abook_tree_model_is_done_loading (OssoABookTreeModel *model);
Returns TRUE if model
has seen the "sequence-completed" signal
emitted by the contained EBookView.
model : |
An OssoABookTreeModel |
Returns : | TRUE if model has seen the "sequence-completed" signal,
FALSE otherwise.
|
void osso_abook_tree_model_contact_changed (OssoABookTreeModel *model, EContact *contact);
Emits the "row-changed" signal for the row(s) associated with contact
.
model : |
An OssoABookTreeModel |
contact : |
An EContact |
void osso_abook_tree_model_presence_changed (OssoABookTreeModel *model, OssoABookPresence *presence);
Emits the "row-changed" signal for the row(s) associated with presence
.
model : |
An OssoABookTreeModel |
presence : |
An OssoABookPresence |
void osso_abook_tree_model_set_done_loading (OssoABookTreeModel *model, gboolean done);
Manually set the done-loading flag to done
. This is a internal function
that should not be used by application code.
model : |
An OssoABookTreeModel |
done : |
a gboolean |
book-view
" property"book-view" EBookView : Read / Write
The EBookView whose contents are exposed.
contact-column
" property"contact-column" guint : Read / Write / Construct Only
The column containing EContact objects.
Default value: 0
void user_function (OssoABookTreeModel *model, gpointer user_data);
Signal emitted whenever the model has finished loading.
model : |
The OssoABookTreeModel that emitted the signal. |
user_data : |
user data set when the signal handler was connected. |
<< OssoABookFilterModel | OssoABookTreeView >> |