OssoABookContactSubscriptions

OssoABookContactSubscriptions — Subsciption based OssoABookContactFilter.

Synopsis

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

Description

OssoABookContactSubscriptions is a OssoABookContactFilter which allows subscription of contacts by their E_CONTACT_UID. When no subscribtions exist all contacts are rejected.

Details

OssoABookContactSubscriptions

typedef struct {
} OssoABookContactSubscriptions;

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


osso_abook_contact_subscriptions_new ()

OssoABookContactSubscriptions* osso_abook_contact_subscriptions_new
                                                        (void);

Creates a new subscription based contact filter.

Returns : A newly allocated OssoABookContactSubscriptions instance.

osso_abook_contact_subscriptions_add ()

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

osso_abook_contact_subscriptions_remove ()

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.