Osso Addressbook Reference Manual | ||||
---|---|---|---|---|
OssoABookContactSubscriptionsOssoABookContactSubscriptions — Subsciption based OssoABookContactFilter. |
OssoABookContactSubscriptions; OssoABookContactSubscriptions* osso_abook_contact_subscriptions_new (void); void osso_abook_contact_subscriptions_add (OssoABookContactSubscriptions *subscriptions, const char *uid); gboolean osso_abook_contact_subscriptions_remove (OssoABookContactSubscriptions *subscriptions, const char *uid);
OssoABookContactSubscriptions is a OssoABookContactFilter which allows subscription of contacts by their E_CONTACT_UID. When no subscribtions exist all contacts are rejected.
typedef struct { } OssoABookContactSubscriptions;
All the fields of this structure are private to the object's implementation and should never be accessed directly.
OssoABookContactSubscriptions* osso_abook_contact_subscriptions_new (void);
Creates a new subscription based contact filter.
Returns : | A newly allocated OssoABookContactSubscriptions instance. |
void osso_abook_contact_subscriptions_add (OssoABookContactSubscriptions *subscriptions, const char *uid);
Subscribes a new contact. Any contact identified by uid
will be accepted
now.
subscriptions : |
a OssoABookContactSubscriptions |
uid : |
the contact UID to subscribe |
gboolean osso_abook_contact_subscriptions_remove (OssoABookContactSubscriptions *subscriptions, const char *uid);
Unsubscribes a contact. Contact identified by uid
won't be accepted
anymore.
subscriptions : |
a OssoABookContactSubscriptions |
uid : |
the contact UID to unsubscribe |
Returns : | TRUE if there was a subscription for uid , and FALSE otherwise.
|