OssoABookContactPresence

OssoABookContactPresence — EContact presence tracker.

Synopsis




            OssoABookContactPresence;
OssoABookContactPresence* osso_abook_contact_presence_new
                                            (EContact *contact);
void        osso_abook_contact_presence_set_contact
                                            (OssoABookContactPresence *presence,
                                             EContact *contact);
EContact*   osso_abook_contact_presence_get_contact
                                            (OssoABookContactPresence *presence);
void        osso_abook_contact_presence_set_book_view
                                            (OssoABookContactPresence *presence,
                                             EBookView *book_view);
EBookView*  osso_abook_contact_presence_get_book_view
                                            (OssoABookContactPresence *presence);


Object Hierarchy


  GObject
   +----OssoABookPresence
         +----OssoABookContactPresence

Properties


  "book-view"            EBookView             : Read / Write
  "contact"              EContact              : Read / Write

Description

The OssoABookContactPresence object tracks the presences of all GalagoAccount objects associated with the the tracked EContact, and calculates a total status.

Details

OssoABookContactPresence

typedef struct _OssoABookContactPresence OssoABookContactPresence;

There are no public fields in OssoABookContactPresence.


osso_abook_contact_presence_new ()

OssoABookContactPresence* osso_abook_contact_presence_new
                                            (EContact *contact);

Creates a new OssoABookContactPresence object tracking the presence of contact.

contact : An EContact to be tracked
Returns : A new OssoABookContactPresence object.

osso_abook_contact_presence_set_contact ()

void        osso_abook_contact_presence_set_contact
                                            (OssoABookContactPresence *presence,
                                             EContact *contact);

Sets the EContact tracked by presence.

presence : An OssoABookContactPresence
contact : An EContact to be tracked

osso_abook_contact_presence_get_contact ()

EContact*   osso_abook_contact_presence_get_contact
                                            (OssoABookContactPresence *presence);

Retreives the EContact tracked by presence.

presence : An OssoABookContactPresence
Returns : The tracked EContact object.

osso_abook_contact_presence_set_book_view ()

void        osso_abook_contact_presence_set_book_view
                                            (OssoABookContactPresence *presence,
                                             EBookView *book_view);

Sets the EBookView the tracked EContact originates from. Note that it is not necessary to set an EBookView if the EContact is re-set every time it has changed, for example in a tree model where the EBookView is already monitored.

presence : An OssoABookContactPresence
book_view : An EBookView

osso_abook_contact_presence_get_book_view ()

EBookView*  osso_abook_contact_presence_get_book_view
                                            (OssoABookContactPresence *presence);

Retrieves the EBookView the tracked EContact originates from.

presence : An OssoABookContactPresence
Returns : An EBookView.

Properties

The "book-view" property

  "book-view"            EBookView             : Read / Write

The associated EBookView.


The "contact" property

  "contact"              EContact              : Read / Write

The tracked EContact.

See Also

OssoABookPresence