OssoABookContactDetailStore

OssoABookContactDetailStore — Store containing contact's details.

Synopsis

                    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);

Object Hierarchy

  GObject
   +----OssoABookContactDetailStore

Properties

  "contact"                  OssoABookContact*     : Read / Write / Construct
  "filters"                  OssoABookContactDetailFilters  : Read / Write / Construct
  "message-map"              GHashTable*           : Read / Write / Construct

Signals

  "changed"                                        : Run Last
  "contact-changed"                                : Run Last

Description

Details

OssoABookContactDetailStore

typedef struct _OssoABookContactDetailStore OssoABookContactDetailStore;

All the fields of this structure are private to the object's implementation and should never be accessed directly.


enum OssoABookContactDetailFilters

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_ALL      = (1 << 8) - 1,
} OssoABookContactDetailFilters;

OSSO_ABOOK_CONTACT_DETAIL_CALL

#define             OSSO_ABOOK_CONTACT_DETAIL_CALL

osso_abook_contact_detail_store_new ()

OssoABookContactDetailStore* osso_abook_contact_detail_store_new
                                                        (OssoABookContact *contact,
                                                         OssoABookContactDetailFilters filters);

Creates a new OssoABookContactDetailStore object.

message_map : The mapping of generic message ids to context ids
contact : The contact from which we need to expose information
Returns : A new OssoABookContactDetailStore object.

osso_abook_contact_detail_store_get_message_map ()

GHashTable*         osso_abook_contact_detail_store_get_message_map
                                                        (OssoABookContactDetailStore *self);

osso_abook_contact_detail_store_set_message_map ()

void                osso_abook_contact_detail_store_set_message_map
                                                        (OssoABookContactDetailStore *self,
                                                         const OssoABookMessageMapping *message_map);

osso_abook_contact_detail_store_get_contact ()

OssoABookContact*   osso_abook_contact_detail_store_get_contact
                                                        (OssoABookContactDetailStore *self);

osso_abook_contact_detail_store_set_contact ()

void                osso_abook_contact_detail_store_set_contact
                                                        (OssoABookContactDetailStore *self,
                                                         OssoABookContact *contact);

osso_abook_contact_detail_store_set_filters ()

void                osso_abook_contact_detail_store_set_filters
                                                        (OssoABookContactDetailStore *self,
                                                         OssoABookContactDetailFilters filters);

osso_abook_contact_detail_store_get_fields ()

GSequence*          osso_abook_contact_detail_store_get_fields
                                                        (OssoABookContactDetailStore *self);

osso_abook_contact_detail_store_is_empty ()

gboolean            osso_abook_contact_detail_store_is_empty
                                                        (OssoABookContactDetailStore *self);

Property Details

The "contact" property

  "contact"                  OssoABookContact*     : Read / Write / Construct

The contact of which to show details.


The "filters" property

  "filters"                  OssoABookContactDetailFilters  : Read / Write / Construct

The contact field filters to use.


The "message-map" property

  "message-map"              GHashTable*           : Read / Write / Construct

Mapping for generic message ids to context ids.

Signal Details

The "changed" signal

void                user_function                      (OssoABookContactDetailStore *ossoabookcontactdetailstore,
                                                        gpointer                     user_data)                        : Run Last

The "contact-changed" signal

void                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.