## EDataBook

EDataBook

## Synopsis

    struct              EDataBook;
    #define             E_DATA_BOOK_ERROR
    EDataBook *         e_data_book_new                     (EBookBackend *backend,
                                                             ESource *source);
    EBookBackend *      e_data_book_get_backend             (EDataBook *book);
    ESource *           e_data_book_get_source              (EDataBook *book);
    void                e_data_book_respond_open            (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status);
    void                e_data_book_respond_remove          (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status);
    void                e_data_book_respond_create          (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             EContact *contact);
    void                e_data_book_respond_remove_contacts (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             GList *ids);
    void                e_data_book_respond_modify          (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             EContact *contact);
    void                e_data_book_respond_authenticate_user
                                                            (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status);
    void                e_data_book_respond_get_supported_fields
                                                            (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             GList *fields);
    void                e_data_book_respond_get_required_fields
                                                            (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             GList *fields);
    void                e_data_book_respond_get_supported_auth_methods
                                                            (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             GList *fields);
    void                e_data_book_respond_get_contact     (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             const gchar *vcard);
    void                e_data_book_respond_get_contact_list
                                                            (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             GList *cards);
    void                e_data_book_respond_get_changes     (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             GList *changes);
    void                e_data_book_report_writable         (EDataBook *book,
                                                             gboolean writable);
    void                e_data_book_report_connection_status
                                                            (EDataBook *book,
                                                             gboolean is_online);
    void                e_data_book_report_auth_required    (EDataBook *book);

## Object Hierarchy

      GObject
       +----EDataBook

## Signals

      "auth-required"                                  : Run Last / Has Details
      "connection"                                     : Run Last / Has Details
      "writable"                                       : Run Last / Has Details

## Description

## Details

### struct EDataBook

    struct EDataBook;

### E_DATA_BOOK_ERROR

    #define E_DATA_BOOK_ERROR e_data_book_error_quark ()

Since 2.30

### e_data_book_new ()

    EDataBook *         e_data_book_new                     (EBookBackend *backend,
                                                             ESource *source);

`backend` : |
`source` : |
Returns : |

### e_data_book_get_backend ()

    EBookBackend *      e_data_book_get_backend             (EDataBook *book);

`book` : |
Returns : |

### e_data_book_get_source ()

    ESource *           e_data_book_get_source              (EDataBook *book);

`book` : |
Returns : |

### e_data_book_respond_open ()

    void                e_data_book_respond_open            (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status);

`book` : |
`opid` : |
`status` : |

### e_data_book_respond_remove ()

    void                e_data_book_respond_remove          (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status);

`book` : |
`opid` : |
`status` : |

### e_data_book_respond_create ()

    void                e_data_book_respond_create          (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             EContact *contact);

`book` : |
`opid` : |
`status` : |
`contact` : |

### e_data_book_respond_remove_contacts ()

    void                e_data_book_respond_remove_contacts (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             GList *ids);

`book` : |
`opid` : |
`status` : |
`ids` : |

### e_data_book_respond_modify ()

    void                e_data_book_respond_modify          (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             EContact *contact);

`book` : |
`opid` : |
`status` : |
`contact` : |

### e_data_book_respond_authenticate_user ()

    void                e_data_book_respond_authenticate_user
                                                            (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status);

`book` : |
`opid` : |
`status` : |

### e_data_book_respond_get_supported_fields ()

    void                e_data_book_respond_get_supported_fields
                                                            (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             GList *fields);

`book` : |
`opid` : |
`status` : |
`fields` : |

### e_data_book_respond_get_required_fields ()

    void                e_data_book_respond_get_required_fields
                                                            (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             GList *fields);

`book` : |
`opid` : |
`status` : |
`fields` : |

### e_data_book_respond_get_supported_auth_methods ()

    void                e_data_book_respond_get_supported_auth_methods
                                                            (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             GList *fields);

`book` : |
`opid` : |
`status` : |
`fields` : |

### e_data_book_respond_get_contact ()

    void                e_data_book_respond_get_contact     (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             const gchar *vcard);

`book` : |
`opid` : |
`status` : |
`vcard` : |

### e_data_book_respond_get_contact_list ()

    void                e_data_book_respond_get_contact_list
                                                            (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             GList *cards);

`book` : |
`opid` : |
`status` : |
`cards` : |

### e_data_book_respond_get_changes ()

    void                e_data_book_respond_get_changes     (EDataBook *book,
                                                             guint32 opid,
                                                             EDataBookStatus status,
                                                             GList *changes);

`book` : |
`opid` : |
`status` : |
`changes` : |

### e_data_book_report_writable ()

    void                e_data_book_report_writable         (EDataBook *book,
                                                             gboolean writable);

`book` : |
`writable` : |

### e_data_book_report_connection_status ()

    void                e_data_book_report_connection_status
                                                            (EDataBook *book,
                                                             gboolean is_online);

`book` : |
`is_online` : |

### e_data_book_report_auth_required ()

    void                e_data_book_report_auth_required    (EDataBook *book);

`book` : |

## Signal Details

### The `"auth-required"` signal

    void                user_function                      (EDataBook *edatabook,
                                                            gpointer   user_data)      : Run Last / Has Details

`edatabook` : | the object which received the signal.
`user_data` : | user data set when the signal handler was connected.

### The `"connection"` signal

    void                user_function                      (EDataBook *edatabook,
                                                            gboolean   arg1,
                                                            gpointer   user_data)      : Run Last / Has Details

`edatabook` : | the object which received the signal.
`arg1` : |
`user_data` : | user data set when the signal handler was connected.

### The `"writable"` signal

    void                user_function                      (EDataBook *edatabook,
                                                            gboolean   arg1,
                                                            gpointer   user_data)      : Run Last / Has Details

`edatabook` : | the object which received the signal.
`arg1` : |
`user_data` : | user data set when the signal handler was connected.