Osso Addressbook Reference Manual | ||||
---|---|---|---|---|
OssoABookGroup; const char* osso_abook_group_get_name (OssoABookGroup *group); const char* osso_abook_group_get_display_name (OssoABookGroup *group); const char* osso_abook_group_get_display_title (OssoABookGroup *group); const char* osso_abook_group_get_icon_name (OssoABookGroup *group); GtkWidget* osso_abook_group_get_empty_widget (OssoABookGroup *group); OssoABookListStore* osso_abook_group_get_model (OssoABookGroup *group); gboolean osso_abook_group_is_visible (OssoABookGroup *group); gboolean osso_abook_group_includes_contact (OssoABookGroup *group, OssoABookContact *contact); OssoABookListStoreCompareFunc osso_abook_group_get_sort_func (OssoABookGroup *group); int osso_abook_group_get_sort_weight (OssoABookGroup *group); gboolean osso_abook_group_get_sensitive (OssoABookGroup *group); int osso_abook_group_compare (OssoABookGroup *a, OssoABookGroup *b);
typedef struct { } OssoABookGroup;
All the fields of this structure are private to the object's implementation and should never be accessed directly.
const char* osso_abook_group_get_name (OssoABookGroup *group);
Retrieves the name of group
. Use osso_abook_group_get_display_name()
to get the translated name for display.
group : |
an OssoABookGroup |
Returns : | The name of group . This string is owned by libosso-abook
and should not be freed.
|
const char* osso_abook_group_get_display_name (OssoABookGroup *group);
Retrieves the name of group
, translated for the current locale.
group : |
an OssoABookGroup |
Returns : | The translated name of group . This string is owned by
libosso-abook and should not be freed.
|
const char* osso_abook_group_get_display_title (OssoABookGroup *group);
Retrieves the window title for group
, translated for the current locale.
group : |
an OssoABookGroup |
Returns : | The translated display title of group . This string is owned by
libosso-abook and should not be freed.
|
const char* osso_abook_group_get_icon_name (OssoABookGroup *group);
Retrieves the icon name associated with group
. The icon name can be
used to look up the appropiate icon to represent group
.
group : |
an OssoABookGroup |
Returns : | The icon name associated with group . This string is owned
by libosso-abook and should not be freed.
|
GtkWidget* osso_abook_group_get_empty_widget (OssoABookGroup *group);
Retrieves the widget to display when group
is empty.
group : |
an OssoABookGroup |
Returns : | The empty widget of group .
|
OssoABookListStore* osso_abook_group_get_model (OssoABookGroup *group);
Retrieves the OssoABookListStore storing the contacts of this group.
group : |
a OssoABookGroup |
Returns : | A OssoABookListStore instance. |
gboolean osso_abook_group_is_visible (OssoABookGroup *group);
Returns a boolean indicating whether group
is requested to be shown
or not.
group : |
an OssoABookGroup |
Returns : | TRUE if group is requested to be shown, FALSE otherwise.
|
gboolean osso_abook_group_includes_contact (OssoABookGroup *group, OssoABookContact *contact);
Returns a boolean indicating whether this contact
is included in group
.
group : |
an OssoABookGroup |
contact : |
an OssoABookContact whose inclusion is to be checked |
Returns : | TRUE if this contact is included in group , FALSE otherwise.
|
OssoABookListStoreCompareFunc osso_abook_group_get_sort_func (OssoABookGroup *group);
Returns a function the can be used to sort the OssoABookListStore that
displays group
. See also osso_abook_list_store_set_sort_key()
.
group : |
an OssoABookGroup |
Returns : | an GtkTreeIterCompareFunc or NULL |
int osso_abook_group_get_sort_weight (OssoABookGroup *group);
Returns the sort weight of group
. Groups are sorted by first comparing
the sort weights, and then collating the names. A lower sort weight
indicates a higher sorting priority.
group : |
an OssoABookGroup |
Returns : | An integer indicating the sort weight of group .
|
gboolean osso_abook_group_get_sensitive (OssoABookGroup *group);
Returns the sensitivity of group
.
group : |
an OssoABookGroup |
Returns : | TRUE if the group is sensitive, FALSE if not. |
int osso_abook_group_compare (OssoABookGroup *a, OssoABookGroup *b);
Compares group a
to group b
, first comparing the sort weights, and then
collating the names. A lower sort weight indicates a higher sorting
priority.
a : |
an OssoABookGroup |
b : |
an OssoABookGroup |
Returns : | < 0 if group a compares before group b , 0 if they compare
equal, > 0 if group a compares after group b .
|