Osso Addressbook Reference Manual |
---|
OssoABookContactPresenceOssoABookContactPresence — EContact presence tracker. |
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);
The OssoABookContactPresence object tracks the presences of all GalagoAccount objects associated with the the tracked EContact, and calculates a total status.
typedef struct _OssoABookContactPresence OssoABookContactPresence;
There are no public fields in OssoABookContactPresence.
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. |
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 |
EContact* osso_abook_contact_presence_get_contact (OssoABookContactPresence *presence);
Retreives the EContact tracked by presence
.
presence : |
An OssoABookContactPresence |
Returns : | The tracked EContact object. |
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 |
EBookView* osso_abook_contact_presence_get_book_view (OssoABookContactPresence *presence);
Retrieves the EBookView the tracked EContact originates from.
presence : |
An OssoABookContactPresence |
Returns : | An EBookView. |
<< OssoABookAccountPresence | Miscellaneous >> |