mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
* #5695 : addressbook : remove unused stuff in the client
This commit is contained in:
@ -39,10 +39,6 @@
|
||||
#define __ADDRESSBOOK_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
// #include <addressbook/eds.h>
|
||||
|
||||
|
||||
#define EMPTY_ENTRY "empty"
|
||||
|
||||
typedef enum {ABOOK_QUERY_IS, ABOOK_QUERY_BEGINS_WITH, ABOOK_QUERY_CONTAINS} AddrbookSearchType;
|
||||
|
||||
@ -94,41 +90,4 @@ struct AddrBookHandle {
|
||||
void (*search_cb)(GList *, gpointer);
|
||||
};
|
||||
|
||||
/**
|
||||
* Initialize addressbook
|
||||
*/
|
||||
void addressbook_init(gchar **book_list);
|
||||
|
||||
/**
|
||||
* Return addressbook state
|
||||
*/
|
||||
gboolean addressbook_is_ready();
|
||||
|
||||
/**
|
||||
* Return addressbook state
|
||||
*/
|
||||
gboolean addressbook_is_enabled();
|
||||
|
||||
/**
|
||||
* Return if at least one addressbook is active
|
||||
*/
|
||||
gboolean addressbook_is_active();
|
||||
|
||||
|
||||
/**
|
||||
* Perform a search in addressbook
|
||||
*/
|
||||
void addressbook_search (AddrBookHandle *, GtkEntry *, AddressBook_Config *);
|
||||
|
||||
/**
|
||||
* Get a list of addressbook book
|
||||
*/
|
||||
GSList *addressbook_get_books_data(gchar **book_list);
|
||||
|
||||
book_data_t *addressbook_get_book_data_by_uid(gchar *);
|
||||
|
||||
void addressbook_set_current_book(gchar *);
|
||||
|
||||
void addressbook_set_search_type(AddrbookSearchType);
|
||||
|
||||
#endif
|
||||
|
@ -47,7 +47,7 @@ gint is_callID_callstruct(gconstpointer a, gconstpointer b)
|
||||
void calllist_add_contact (gchar *contact_name, gchar *contact_phone, contact_type_t type, GdkPixbuf *photo)
|
||||
{
|
||||
/* Check if the information is valid */
|
||||
if (g_strcasecmp (contact_phone, EMPTY_ENTRY) == 0)
|
||||
if (g_strcasecmp (contact_phone, "empty") == 0)
|
||||
return;
|
||||
|
||||
callable_obj_t *new_call = create_new_call (CONTACT, CALL_STATE_DIALING, "", "", contact_name, contact_phone);
|
||||
|
Reference in New Issue
Block a user