Top | ![]() |
![]() |
![]() |
![]() |
void | (*IdleCallback) () |
CallsContactsProvider * | calls_contacts_provider_new () |
GeeCollection * | calls_contacts_provider_get_individuals () |
CallsBestMatch * | calls_contacts_provider_lookup_id () |
void | calls_contacts_provider_consume_iter_on_idle () |
gboolean | calls_contacts_provider_get_can_add_contacts () |
void | calls_contacts_provider_add_new_contact () |
This object tracks contacts reported by libfolks, allow to perform contact lookups and provides functions for adding new contacts.
GeeCollection *
calls_contacts_provider_get_individuals
(CallsContactsProvider *self
);
CallsBestMatch * calls_contacts_provider_lookup_id (CallsContactsProvider *self
,const char *id
);
void calls_contacts_provider_consume_iter_on_idle (GeeIterator *iter
,IdleCallback callback
,gpointer user_data
);
Queue's processing of all FolksIndividual items of iter
with callback
one
individual per event loop iteration. Can be used to split up operating
on potentially large set of individuals to prevent the
event loop from being blocked for too long making the UI unresponsive.
gboolean
calls_contacts_provider_get_can_add_contacts
(CallsContactsProvider *self
);
void calls_contacts_provider_add_new_contact (CallsContactsProvider *self
,const char *phone_number
);
Opens GNOME contacts and prepopulates the phone number for a new contact to be added.
#define CALLS_TYPE_CONTACTS_PROVIDER (calls_contacts_provider_get_type ())
“added”
signalvoid user_function (CallsContactsProvider *self, FolksIndividual *individual, gpointer user_data)
This signal is emitted when the backend reports a new contact having been added.
self |
The CallsContactsProvider instance |
|
individual |
A FolksIndividual |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“removed”
signalvoid user_function (CallsContactsProvider *self, FolksIndividual *individual, gpointer user_data)
This signal is emitted when the backend reports a contact having been removed.
self |
The CallsContactsProvider instance |
|
individual |
A FolksIndividual |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last