Osso Addressbook Reference Manual | ||||
---|---|---|---|---|
OssoABookContactFilter; OssoABookContactFilterIface; gboolean osso_abook_contact_filter_accept (OssoABookContactFilter *filter, const char *uid, OssoABookContact *contact);
OssoABookContactFilter can be used to choose which contacts an OssoABookAggregator announces.
typedef struct _OssoABookContactFilter OssoABookContactFilter;
Dummy type for the OssoABookAvatar interface.
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 |
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.
|