Osso Addressbook Reference Manual | ||||
---|---|---|---|---|
OssoABookContactViewOssoABookContactView — Widget exposing the contents of an OssoABookContactModel in a list. |
OssoABookContactView; GtkWidget* osso_abook_contact_view_new (HildonUIMode mode, OssoABookContactModel *model, OssoABookFilterModel *filter_model); GtkWidget* osso_abook_contact_view_new_basic (HildonUIMode mode, OssoABookContactModel *model); GList* osso_abook_contact_view_get_selection (OssoABookContactView *view); OssoABookContact* osso_abook_contact_view_get_focus (OssoABookContactView *view); OssoABookAvatar* osso_abook_contact_view_get_focus_avatar (OssoABookContactView *view); OssoABookCaps* osso_abook_contact_view_get_focus_caps (OssoABookContactView *view); OssoABookPresence* osso_abook_contact_view_get_focus_presence (OssoABookContactView *view); void osso_abook_contact_view_enable_drag_source (OssoABookContactView *view);
OssoABookContactView is a widget that displays the contents of an OssoABookContactModel as a list
typedef struct { } OssoABookContactView;
All the fields of this structure are private to the object's implementation and should never be accessed directly.
GtkWidget* osso_abook_contact_view_new (HildonUIMode mode, OssoABookContactModel *model, OssoABookFilterModel *filter_model);
Creates a new OssoABookContactView object exposing the contents of model
,
as filtered by filter_model
(if non-NULL).
mode : |
The Hildon UI mode according to which to behave |
model : |
|
filter_model : |
An OssoABookFilterModel filtering model , or NULL
|
Returns : | A new OssoABookContactView object. |
GtkWidget* osso_abook_contact_view_new_basic (HildonUIMode mode, OssoABookContactModel *model);
Creates a new OssoABookContactView object exposing the contents of model
,
as filtered through "" all non-blocked contacts.
mode : |
The Hildon UI mode according to which to behave |
model : |
An OssoABookContactModel whose contents are to be exposed |
Returns : | A new OssoABookContactView object. |
GList* osso_abook_contact_view_get_selection (OssoABookContactView *view);
Retreives the set of selected rows as a GList of EContact objects.
The returned GList should be freed manually, but don't g_object_unref()
the elements.
view : |
An OssoABookContactView |
Returns : | A newly allocated GList of EContact objects. |
OssoABookContact* osso_abook_contact_view_get_focus (OssoABookContactView *view);
Retreives the EContact whose row is focused, if any.
view : |
An OssoABookContactView |
Returns : | The EContact whose row is focused, or NULL. The contact is
owned by libosso-abook and should not be g_object_unref() 'ed.
|
OssoABookAvatar* osso_abook_contact_view_get_focus_avatar (OssoABookContactView *view);
Retreives the OssoABookAvatar whose row is focused, if any.
view : |
An OssoABookContactView |
Returns : | The OssoABookAvatar whose row is focused, or NULL. The
avatar is owned by libosso-abook and should not be g_object_unref() 'ed.
|
OssoABookCaps* osso_abook_contact_view_get_focus_caps (OssoABookContactView *view);
Retreives the OssoABookCaps whose row is focused, if any.
view : |
An OssoABookContactView |
Returns : | The OssoABookCaps whose row is focused, or NULL. The
caps are owned by libosso-abook and should not be g_object_unref() 'ed.
|
OssoABookPresence* osso_abook_contact_view_get_focus_presence (OssoABookContactView *view);
Retreives the OssoABookPresence whose row is focused, if any.
view : |
An OssoABookContactView |
Returns : | The OssoABookPresence whose row is focused, or NULL. The
presence is owned by libosso-abook and should not be g_object_unref() 'ed.
|
void osso_abook_contact_view_enable_drag_source (OssoABookContactView *view);
Turns view
into a drag source for EContact UID drags.
view : |
An OssoABookGroupView |