OssoABookContactFilter

OssoABookContactFilter — Contact filtering interface.

Synopsis

                    OssoABookContactFilterIface;
gboolean            osso_abook_contact_filter_accept    (OssoABookContactFilter *filter,
                                                         const char *uid,
                                                         OssoABookContact *contact);

Description

OssoABookContactFilter can be used to choose which contacts an OssoABookAggregator announces.

Details

OssoABookContactFilterIface

typedef struct {
        gboolean (* accept) (OssoABookContactFilter *filter,
                             const char             *uid,
                             OssoABookContact       *contact);

        void     (* contact_filter_changed)
                            (OssoABookContactFilter *filter);
} OssoABookContactFilterIface;

Virtual methods of the OssoABookContactFilter interface.

accept () virtual method for osso_abook_contact_filter_accept()
contact_filter_changed () virtual method for OssoABookContactFilter::contact-filter-changed

osso_abook_contact_filter_accept ()

gboolean            osso_abook_contact_filter_accept    (OssoABookContactFilter *filter,
                                                         const char *uid,
                                                         OssoABookContact *contact);

Checks if the contact descibed by uid and contact is accepted by this filter. In cases where no OssoABookContact instance is known yet, NULL can be passed for contact.

filter : a OssoABookContactFilter
uid : the UID to validate
contact : the contact to validate, or NULL
Returns : TRUE when the filter accepts this contact, and FALSE when it rejects the contact.