Osso Addressbook Reference Manual | ||||
---|---|---|---|---|
OssoABookContactDetailStore; enum OssoABookContactDetailFilters; #define OSSO_ABOOK_CONTACT_DETAIL_CALL OssoABookContactDetailStore* osso_abook_contact_detail_store_new (OssoABookContact *contact, OssoABookContactDetailFilters filters); GHashTable* osso_abook_contact_detail_store_get_message_map (OssoABookContactDetailStore *self); void osso_abook_contact_detail_store_set_message_map (OssoABookContactDetailStore *self, const OssoABookMessageMapping *message_map); OssoABookContact* osso_abook_contact_detail_store_get_contact (OssoABookContactDetailStore *self); void osso_abook_contact_detail_store_set_contact (OssoABookContactDetailStore *self, OssoABookContact *contact); void osso_abook_contact_detail_store_set_filters (OssoABookContactDetailStore *self, OssoABookContactDetailFilters filters); GSequence* osso_abook_contact_detail_store_get_fields (OssoABookContactDetailStore *self); gboolean osso_abook_contact_detail_store_is_empty (OssoABookContactDetailStore *self);
"contact" OssoABookContact* : Read / Write / Construct "filters" OssoABookContactDetailFilters : Read / Write / Construct "message-map" GHashTable* : Read / Write / Construct
typedef struct _OssoABookContactDetailStore OssoABookContactDetailStore;
All the fields of this structure are private to the object's implementation and should never be accessed directly.
typedef enum { OSSO_ABOOK_CONTACT_DETAIL_NONE = 0, OSSO_ABOOK_CONTACT_DETAIL_EMAIL = 1 << 0, OSSO_ABOOK_CONTACT_DETAIL_PHONE = 1 << 1, OSSO_ABOOK_CONTACT_DETAIL_IM_VOICE = 1 << 2, OSSO_ABOOK_CONTACT_DETAIL_IM_VIDEO = 1 << 3, OSSO_ABOOK_CONTACT_DETAIL_IM_CHAT = 1 << 4, OSSO_ABOOK_CONTACT_DETAIL_FULLNAME = 1 << 5, OSSO_ABOOK_CONTACT_DETAIL_NICKNAME = 1 << 6, OSSO_ABOOK_CONTACT_DETAIL_OTHERS = 1 << 7, OSSO_ABOOK_CONTACT_DETAIL_SMS = 1 << 8, OSSO_ABOOK_CONTACT_DETAIL_ALL = (1 << 9) - 1, } OssoABookContactDetailFilters;
Flags to specify filters for the details in the OssoABookContactDetailStore
#define OSSO_ABOOK_CONTACT_DETAIL_CALL
A filter mask for any type of call, either telephone or VoIP (audio or video)
OssoABookContactDetailStore* osso_abook_contact_detail_store_new (OssoABookContact *contact, OssoABookContactDetailFilters filters);
Creates a new OssoABookContactDetailStore object.
contact : |
The contact from which we need to expose information |
filters : |
a bitmask specifying which details to expose |
Returns : | A new OssoABookContactDetailStore object. |
GHashTable* osso_abook_contact_detail_store_get_message_map (OssoABookContactDetailStore *self);
Gets the mapping of generic message ids to contextual ids
self : |
a OssoABookContactDetailStore |
Returns : | a message map, owned by self
|
void osso_abook_contact_detail_store_set_message_map (OssoABookContactDetailStore *self, const OssoABookMessageMapping *message_map);
Sets a new message map for self
self : |
a OssoABookContactDetailStore |
message_map : |
a mapping from generic message ids to contextual ids |
OssoABookContact* osso_abook_contact_detail_store_get_contact (OssoABookContactDetailStore *self);
Gets the contact that provides the details for self
self : |
a OssoABookContactDetailStore |
Returns : | the backing contact, owned by self
|
void osso_abook_contact_detail_store_set_contact (OssoABookContactDetailStore *self, OssoABookContact *contact);
Sets contact
as the source for the details of self
self : |
a OssoABookContactDetailStore |
contact : |
a new value for the backing contact |
void osso_abook_contact_detail_store_set_filters (OssoABookContactDetailStore *self, OssoABookContactDetailFilters filters);
Sets new filters for self
self : |
the OssoABookContactDetailStore |
filters : |
new filter bitmask for the details |
GSequence* osso_abook_contact_detail_store_get_fields (OssoABookContactDetailStore *self);
Gets a filtered list of detail fields.
self : |
the OssoABookContactDetailStore |
Returns : | a GSequence of OssoABookContactFields, owned by self
|
gboolean osso_abook_contact_detail_store_is_empty (OssoABookContactDetailStore *self);
Checks whether self
is empty
self : |
a OssoABookContactDetailStore |
Returns : | TRUE if self is empty, else FALSE
|
"contact"
property"contact" OssoABookContact* : Read / Write / Construct
The contact of which to show details.
"filters"
property"filters" OssoABookContactDetailFilters : Read / Write / Construct
The contact field filters to use.
"changed"
signalvoid user_function (OssoABookContactDetailStore *detail_store, gpointer user_data) : Run Last
This signal is emitted when the contents of detail_store change.
detail_store : |
a OssoABookContactDetailStore |
user_data : |
user data set when the signal handler was connected. |
"contact-changed"
signalvoid user_function (OssoABookContactDetailStore *detail_store, OssoABookContact *old_contact, OssoABookContact *new_contact, gpointer user_data) : Run Last
This signal is emitted when a new contact is set for this detail store. It provides the old and new contacts as arguments.
detail_store : |
a OssoABookContactDetailStore |
old_contact : |
the old OssoABookContact associated with this OssoABookContactDetailStore |
new_contact : |
the new OssoABookContact associated with this OssoABookContactDetailStore |
user_data : |
user data set when the signal handler was connected. |