Osso Addressbook Reference Manual | ||||
---|---|---|---|---|
#define OSSO_ABOOK_CONTACT_FIELD_GROUP_STEP gboolean (*OssoABookContactFieldPredicate) (OssoABookContactField *field, gpointer user_data); enum OssoABookContactFieldFlags; OssoABookContactFieldAction; OssoABookContactField; OssoABookContactField* osso_abook_contact_field_new_full (GHashTable *message_map, OssoABookContact *master_contact, OssoABookContact *roster_contact, EVCardAttribute *attribute); OssoABookContactField* osso_abook_contact_field_new (GHashTable *message_map, OssoABookContact *master_contact, EVCardAttribute *attribute); GHashTable* osso_abook_contact_field_get_message_map (OssoABookContactField *field); void osso_abook_contact_field_set_message_map (OssoABookContactField *field, GHashTable *mapping); const char* osso_abook_contact_field_get_name (OssoABookContactField *field); const char* osso_abook_contact_field_get_path (OssoABookContactField *field); OssoABookContactFieldFlags osso_abook_contact_field_get_flags (OssoABookContactField *field); OssoABookContactField* osso_abook_contact_field_get_parent (OssoABookContactField *field); GList* osso_abook_contact_field_get_children (OssoABookContactField *field); gboolean osso_abook_contact_field_has_children (OssoABookContactField *field); EVCardAttribute* osso_abook_contact_field_get_attribute (OssoABookContactField *field); EVCardAttribute* osso_abook_contact_field_get_borrowed_attribute (OssoABookContactField *field); GList* osso_abook_contact_field_get_secondary_attributes (OssoABookContactField *field); const char* osso_abook_contact_field_get_display_title (OssoABookContactField *field); const char* osso_abook_contact_field_get_secondary_title (OssoABookContactField *field); const char* osso_abook_contact_field_get_display_value (OssoABookContactField *field); const char* osso_abook_contact_field_get_icon_name (OssoABookContactField *field); int osso_abook_contact_field_get_sort_weight (OssoABookContactField *field); OssoABookContact* osso_abook_contact_field_get_master_contact (OssoABookContactField *field); OssoABookContact* osso_abook_contact_field_get_roster_contact (OssoABookContactField *field); McAccount* osso_abook_contact_field_get_account (OssoABookContactField *field); GList* osso_abook_contact_field_get_actions (OssoABookContactField *field); McAccount* osso_abook_contact_field_action_request_account (OssoABookContactFieldAction *action, GtkWindow *parent); gboolean osso_abook_contact_field_action_start (OssoABookContactFieldAction *action, GtkWindow *parent); gboolean osso_abook_contact_field_action_start_with_callback (OssoABookContactFieldAction *action, GtkWindow *parent, OssoABookContactActionStartCb callback, gpointer callback_data); OssoABookContactFieldAction* osso_abook_contact_field_action_ref (OssoABookContactFieldAction *action); void osso_abook_contact_field_action_unref (OssoABookContactFieldAction *action); GtkWidget* osso_abook_contact_field_create_button (OssoABookContactField *field, const gchar *optional_title, const gchar *optional_icon_name); GtkWidget* osso_abook_contact_field_get_label_widget (OssoABookContactField *field); GtkWidget* osso_abook_contact_field_get_editor_widget (OssoABookContactField *field); gboolean osso_abook_contact_field_is_readonly (OssoABookContactField *field); gboolean osso_abook_contact_field_is_modified (OssoABookContactField *field); gboolean osso_abook_contact_field_is_empty (OssoABookContactField *field); gboolean osso_abook_contact_field_is_mandatory (OssoABookContactField *field); void osso_abook_contact_field_set_mandatory (OssoABookContactField *field, gboolean mandatory); gboolean osso_abook_contact_field_activate (OssoABookContactField *field); int osso_abook_contact_field_cmp (OssoABookContactField *a, OssoABookContactField *b);
"attribute" gpointer : Read / Write / Construct Only "display-title" gchar* : Read "display-value" gchar* : Read "editor-widget" GtkWidget* : Read "flags" OssoABookContactFieldFlags : Read / Write "icon-name" gchar* : Read "label-widget" GtkWidget* : Read "master-contact" OssoABookContact* : Read / Write / Construct Only "message-map" GHashTable* : Read / Write "modified" gboolean : Read "name" gchar* : Read "roster-contact" OssoABookContact* : Read / Write / Construct Only "sort-weight" gint : Read
gboolean (*OssoABookContactFieldPredicate) (OssoABookContactField *field, gpointer user_data);
typedef enum { OSSO_ABOOK_CONTACT_FIELD_FLAGS_NONE = (0), OSSO_ABOOK_CONTACT_FIELD_FLAGS_HOME = (1 << 0), OSSO_ABOOK_CONTACT_FIELD_FLAGS_WORK = (1 << 1), OSSO_ABOOK_CONTACT_FIELD_FLAGS_CELL = (1 << 2), OSSO_ABOOK_CONTACT_FIELD_FLAGS_VOICE = (1 << 3), OSSO_ABOOK_CONTACT_FIELD_FLAGS_OTHER = (1 << 4), OSSO_ABOOK_CONTACT_FIELD_FLAGS_DEVICE_MASK = (OSSO_ABOOK_CONTACT_FIELD_FLAGS_CELL | OSSO_ABOOK_CONTACT_FIELD_FLAGS_VOICE), OSSO_ABOOK_CONTACT_FIELD_FLAGS_USAGE_MASK = (OSSO_ABOOK_CONTACT_FIELD_FLAGS_HOME | OSSO_ABOOK_CONTACT_FIELD_FLAGS_WORK), OSSO_ABOOK_CONTACT_FIELD_FLAGS_TYPE_MASK = (OSSO_ABOOK_CONTACT_FIELD_FLAGS_DEVICE_MASK | OSSO_ABOOK_CONTACT_FIELD_FLAGS_USAGE_MASK | OSSO_ABOOK_CONTACT_FIELD_FLAGS_OTHER), OSSO_ABOOK_CONTACT_FIELD_FLAGS_SINGLETON = (1 << 10), OSSO_ABOOK_CONTACT_FIELD_FLAGS_MANDATORY = (1 << 11), OSSO_ABOOK_CONTACT_FIELD_FLAGS_DYNAMIC = (1 << 12), OSSO_ABOOK_CONTACT_FIELD_FLAGS_NO_LABEL = (1 << 13), OSSO_ABOOK_CONTACT_FIELD_FLAGS_DETAILED = (1 << 14), } OssoABookContactFieldFlags;
typedef struct { OssoABookContactField *field; OssoABookContactAction action; GtkWidget *widget; McProfile *profile; int ref_count; } OssoABookContactFieldAction;
OssoABookContactField* osso_abook_contact_field_new_full (GHashTable *message_map, OssoABookContact *master_contact, OssoABookContact *roster_contact, EVCardAttribute *attribute);
OssoABookContactField* osso_abook_contact_field_new (GHashTable *message_map, OssoABookContact *master_contact, EVCardAttribute *attribute);
GHashTable* osso_abook_contact_field_get_message_map (OssoABookContactField *field);
void osso_abook_contact_field_set_message_map (OssoABookContactField *field, GHashTable *mapping);
const char* osso_abook_contact_field_get_name (OssoABookContactField *field);
const char* osso_abook_contact_field_get_path (OssoABookContactField *field);
OssoABookContactFieldFlags osso_abook_contact_field_get_flags (OssoABookContactField *field);
OssoABookContactField* osso_abook_contact_field_get_parent (OssoABookContactField *field);
GList* osso_abook_contact_field_get_children (OssoABookContactField *field);
gboolean osso_abook_contact_field_has_children (OssoABookContactField *field);
EVCardAttribute* osso_abook_contact_field_get_attribute (OssoABookContactField *field);
EVCardAttribute* osso_abook_contact_field_get_borrowed_attribute (OssoABookContactField *field);
GList* osso_abook_contact_field_get_secondary_attributes (OssoABookContactField *field);
const char* osso_abook_contact_field_get_display_title (OssoABookContactField *field);
const char* osso_abook_contact_field_get_secondary_title (OssoABookContactField *field);
const char* osso_abook_contact_field_get_display_value (OssoABookContactField *field);
const char* osso_abook_contact_field_get_icon_name (OssoABookContactField *field);
int osso_abook_contact_field_get_sort_weight (OssoABookContactField *field);
OssoABookContact* osso_abook_contact_field_get_master_contact (OssoABookContactField *field);
OssoABookContact* osso_abook_contact_field_get_roster_contact (OssoABookContactField *field);
McAccount* osso_abook_contact_field_get_account (OssoABookContactField *field);
GList* osso_abook_contact_field_get_actions (OssoABookContactField *field);
McAccount* osso_abook_contact_field_action_request_account (OssoABookContactFieldAction *action, GtkWindow *parent);
gboolean osso_abook_contact_field_action_start (OssoABookContactFieldAction *action, GtkWindow *parent);
gboolean osso_abook_contact_field_action_start_with_callback (OssoABookContactFieldAction *action, GtkWindow *parent, OssoABookContactActionStartCb callback, gpointer callback_data);
OssoABookContactFieldAction* osso_abook_contact_field_action_ref (OssoABookContactFieldAction *action);
void osso_abook_contact_field_action_unref (OssoABookContactFieldAction *action);
GtkWidget* osso_abook_contact_field_create_button (OssoABookContactField *field, const gchar *optional_title, const gchar *optional_icon_name);
GtkWidget* osso_abook_contact_field_get_label_widget (OssoABookContactField *field);
GtkWidget* osso_abook_contact_field_get_editor_widget (OssoABookContactField *field);
gboolean osso_abook_contact_field_is_readonly (OssoABookContactField *field);
gboolean osso_abook_contact_field_is_modified (OssoABookContactField *field);
gboolean osso_abook_contact_field_is_empty (OssoABookContactField *field);
gboolean osso_abook_contact_field_is_mandatory (OssoABookContactField *field);
void osso_abook_contact_field_set_mandatory (OssoABookContactField *field, gboolean mandatory);
gboolean osso_abook_contact_field_activate (OssoABookContactField *field);
int osso_abook_contact_field_cmp (OssoABookContactField *a, OssoABookContactField *b);
"attribute"
property"attribute" gpointer : Read / Write / Construct Only
The VCard attribute backing this field.
"display-title"
property"display-title" gchar* : Read
The message ID field labels.
Default value: NULL
"display-value"
property"display-value" gchar* : Read
A human friendly string represeting the attribute value.
Default value: NULL
"icon-name"
property"icon-name" gchar* : Read
The name of the icon to use with this field.
Default value: NULL
"master-contact"
property"master-contact" OssoABookContact* : Read / Write / Construct Only
The master contact if one is associated with this field.
"message-map"
property"message-map" GHashTable* : Read / Write
Mapping for generic message ids to context ids.
"modified"
property"modified" gboolean : Read
Check if the field has been modified.
Default value: FALSE
"roster-contact"
property"roster-contact" OssoABookContact* : Read / Write / Construct Only
The roster contact if one is associated with this field.