Osso Addressbook Reference Manual | ||||
---|---|---|---|---|
#define OSSO_ABOOK_DEFAULT_MAXIMUM_PIXBUF_SIZE char* osso_abook_mc_account_get_display_string (McAccount *account, const char *username, const char *format); char* osso_abook_mc_account_get_display_markup (McAccount *account); const char* osso_abook_mc_account_get_bound_name (McAccount *account); gboolean osso_abook_screen_is_landscape_mode (GdkScreen *screen); void osso_abook_attach_screen_size_handler (GtkWindow *window); GtkWidget* osso_abook_pannable_area_new (void); EBookQuery* osso_abook_query_phone_number (const char *phone_number, gboolean fuzzy_match); GList* osso_abook_sort_phone_number_matches (GList *matches, const char *phone_number); void osso_abook_load_pixbuf_async (GFile *file, gsize maximum_size, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); void osso_abook_load_pixbuf_at_scale_async (GFile *file, int width, int height, gboolean preserve_aspect_ratio, gsize maximum_size, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); GdkPixbuf* osso_abook_load_pixbuf_finish (GFile *file, GAsyncResult *result, GError **error); char* osso_abook_concat_names (OssoABookNameOrder order, const gchar *primary, const gchar *secondary); EBook* osso_abook_system_book_dup_singleton (gboolean open, GError **error); GtkWidget* osso_abook_avatar_button_new (OssoABookAvatar *avatar, int size); void osso_abook_set_portrait_mode_supported (GtkWindow *window, gboolean flag); void osso_abook_set_portrait_mode_requested (GtkWindow *window, gboolean flag); void osso_abook_set_zoom_key_used (GtkWindow *window, gboolean flag); gboolean osso_abook_file_set_contents (const char *filename, const void *contents, gssize length, GError **error); const char* osso_abook_get_work_dir (void); void osso_abook_make_label_wrap (GtkLabel *label);
#define OSSO_ABOOK_DEFAULT_MAXIMUM_PIXBUF_SIZE (6 * 1024 * 1024) /* 6 Mega Pixels */
char* osso_abook_mc_account_get_display_string (McAccount *account, const char *username, const char *format);
char* osso_abook_mc_account_get_display_markup (McAccount *account);
const char* osso_abook_mc_account_get_bound_name (McAccount *account);
gboolean osso_abook_screen_is_landscape_mode (GdkScreen *screen);
void osso_abook_attach_screen_size_handler (GtkWindow *window);
EBookQuery* osso_abook_query_phone_number (const char *phone_number, gboolean fuzzy_match);
Constructs an EBookQuery for finding contacts by phone number.
Phone numbers have no well-define format regarding region codes. Network operators choose freely wheither to include country codes when announcing phone numbers. To deal with this situation fuzzy matching can be used. When activated only the last seven digits of each phone number are considered for matches. DTMF codes are dropped for fuzzy matching.
phone_number : |
the phone number to match |
fuzzy_match : |
wheither fuzzy matching is wanted |
Returns : | A newly allocated EBookQuery. |
GList* osso_abook_sort_phone_number_matches (GList *matches, const char *phone_number);
Sorts contacts according to how well they match phone_number
.
matches : |
the OssoABookContact list |
phone_number : |
the phone number |
Returns : | The sorted matches list.
|
void osso_abook_load_pixbuf_async (GFile *file, gsize maximum_size, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
void osso_abook_load_pixbuf_at_scale_async (GFile *file, int width, int height, gboolean preserve_aspect_ratio, gsize maximum_size, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
GdkPixbuf* osso_abook_load_pixbuf_finish (GFile *file, GAsyncResult *result, GError **error);
char* osso_abook_concat_names (OssoABookNameOrder order, const gchar *primary, const gchar *secondary);
EBook* osso_abook_system_book_dup_singleton (gboolean open, GError **error);
GtkWidget* osso_abook_avatar_button_new (OssoABookAvatar *avatar, int size);
void osso_abook_set_portrait_mode_supported (GtkWindow *window, gboolean flag);
void osso_abook_set_portrait_mode_requested (GtkWindow *window, gboolean flag);
void osso_abook_set_zoom_key_used (GtkWindow *window, gboolean flag);
gboolean osso_abook_file_set_contents (const char *filename, const void *contents, gssize length, GError **error);