51
51
* EBookClientError:
52
* @E_BOOK_CLIENT_ERROR_NO_SUCH_BOOK: Requested book did not exist
53
* @E_BOOK_CLIENT_ERROR_CONTACT_NOT_FOUND: Contact referred to was not found
54
* @E_BOOK_CLIENT_ERROR_CONTACT_ID_ALREADY_EXISTS: Tried to add a contact which already exists
55
* @E_BOOK_CLIENT_ERROR_NO_SUCH_SOURCE: Referred #ESource does not exist
56
* @E_BOOK_CLIENT_ERROR_NO_SPACE: Out of disk space
58
* Error codes returned by #EBookClient APIs, if an #EClientError was not available.
72
* @E_DATA_BOOK_STATUS_SUCCESS: No error
73
* @E_DATA_BOOK_STATUS_BUSY: Backend was busy
74
* @E_DATA_BOOK_STATUS_REPOSITORY_OFFLINE: Offsite repository was not online
75
* @E_DATA_BOOK_STATUS_PERMISSION_DENIED: Permission denied
76
* @E_DATA_BOOK_STATUS_CONTACT_NOT_FOUND: Contact referred to was not found
77
* @E_DATA_BOOK_STATUS_CONTACTID_ALREADY_EXISTS: Tried to add a contact which already exists
78
* @E_DATA_BOOK_STATUS_AUTHENTICATION_FAILED: Authentication failure
79
* @E_DATA_BOOK_STATUS_AUTHENTICATION_REQUIRED: Authentication required for this operation
80
* @E_DATA_BOOK_STATUS_UNSUPPORTED_FIELD: An unsupported #EContactField was specified for a given operation
81
* @E_DATA_BOOK_STATUS_UNSUPPORTED_AUTHENTICATION_METHOD: The authentication method is unsupported
82
* @E_DATA_BOOK_STATUS_TLS_NOT_AVAILABLE: TLS was not available
83
* @E_DATA_BOOK_STATUS_NO_SUCH_BOOK: Book did not exist
84
* @E_DATA_BOOK_STATUS_BOOK_REMOVED: Book was removed
85
* @E_DATA_BOOK_STATUS_OFFLINE_UNAVAILABLE: XXX Document me
86
* @E_DATA_BOOK_STATUS_SEARCH_SIZE_LIMIT_EXCEEDED: Exceeded limit of seach size
87
* @E_DATA_BOOK_STATUS_SEARCH_TIME_LIMIT_EXCEEDED: Exceeded time limit for seach
88
* @E_DATA_BOOK_STATUS_INVALID_QUERY: Given search espression is invalid
89
* @E_DATA_BOOK_STATUS_QUERY_REFUSED: Given search espression was refused
90
* @E_DATA_BOOK_STATUS_COULD_NOT_CANCEL: Unable to cancel an operation
91
* @E_DATA_BOOK_STATUS_OTHER_ERROR: An other error occurred
92
* @E_DATA_BOOK_STATUS_INVALID_SERVER_VERSION: Invalid server version
93
* @E_DATA_BOOK_STATUS_NO_SPACE: Disk space insufficient
94
* @E_DATA_BOOK_STATUS_INVALID_ARG: Invalid argument
95
* @E_DATA_BOOK_STATUS_NOT_SUPPORTED: Unsupported operation
96
* @E_DATA_BOOK_STATUS_NOT_OPENED: Tried to access a book which is not yet open
97
* @E_DATA_BOOK_STATUS_OUT_OF_SYNC: Out of sync state
99
* Error codes for the #E_DATA_BOOK_ERROR domain, these are used
98
130
E_DATA_BOOK_STATUS_OUT_OF_SYNC
99
131
} EDataBookStatus;
135
* @E_BOOK_INDEX_PREFIX: An index suitable for searching contacts with a prefix pattern
136
* @E_BOOK_INDEX_SUFFIX: An index suitable for searching contacts with a suffix pattern
137
* @E_BOOK_INDEX_PHONE: An index suitable for searching contacts for phone numbers.
138
* <note><para>Phone numbers must be convertible into FQTN according to E.164 to be
139
* stored in this index. The number "+9999999" for instance won't be stored because
140
* the country calling code "+999" currently is not assigned.</para></note>
141
* @E_BOOK_INDEX_SORT_KEY: Indicates that a given #EContactField should be usable as a sort key.
143
* The type of index defined by e_source_backend_summary_setup_set_indexed_fields()
146
E_BOOK_INDEX_PREFIX = 0,
149
E_BOOK_INDEX_SORT_KEY
153
* EBookCursorSortType:
154
* @E_BOOK_CURSOR_SORT_ASCENDING: Sort results in ascending order
155
* @E_BOOK_CURSOR_SORT_DESCENDING: Sort results in descending order
157
* Specifies the sort order of an ordered query
162
E_BOOK_CURSOR_SORT_ASCENDING = 0,
163
E_BOOK_CURSOR_SORT_DESCENDING
164
} EBookCursorSortType;
168
* @E_BOOK_CURSOR_ORIGIN_CURRENT: The current cursor position
169
* @E_BOOK_CURSOR_ORIGIN_BEGIN: The beginning of the cursor results.
170
* @E_BOOK_CURSOR_ORIGIN_END: The ending of the cursor results.
172
* Specifies the start position to in the list of traversed contacts
173
* in calls to e_book_client_cursor_step().
175
* When an #EBookClientCursor is created, the current position implied by %E_BOOK_CURSOR_ORIGIN_CURRENT
176
* is the same as %E_BOOK_CURSOR_ORIGIN_BEGIN.
181
E_BOOK_CURSOR_ORIGIN_CURRENT,
182
E_BOOK_CURSOR_ORIGIN_BEGIN,
183
E_BOOK_CURSOR_ORIGIN_END
187
* EBookCursorStepFlags:
188
* @E_BOOK_CURSOR_STEP_MOVE: The cursor position should be modified while stepping
189
* @E_BOOK_CURSOR_STEP_FETCH: Traversed contacts should be listed and returned while stepping.
191
* Defines the behaviour of e_book_client_cursor_step().
196
E_BOOK_CURSOR_STEP_MOVE = (1 << 0),
197
E_BOOK_CURSOR_STEP_FETCH = (1 << 1)
198
} EBookCursorStepFlags;
200
GQuark e_book_client_error_quark (void) G_GNUC_CONST;
201
const gchar * e_book_client_error_to_string (EBookClientError code);
203
#ifndef EDS_DISABLE_DEPRECATED
207
* @E_BOOK_VIEW_STATUS_OK: Ok
208
* @E_BOOK_VIEW_STATUS_TIME_LIMIT_EXCEEDED: Time limit exceeded
209
* @E_BOOK_VIEW_STATUS_SIZE_LIMIT_EXCEEDED: Size limit exceeded
210
* @E_BOOK_VIEW_ERROR_INVALID_QUERY: Invalid search expression
211
* @E_BOOK_VIEW_ERROR_QUERY_REFUSED: Search expression refused
212
* @E_BOOK_VIEW_ERROR_OTHER_ERROR: Another error occurred
214
* Status messages used in notifications in the deprecated #EBookView class
216
* Deprecated: 3.2: Use #EBookClientView instead.
102
219
E_BOOK_VIEW_STATUS_OK,
103
220
E_BOOK_VIEW_STATUS_TIME_LIMIT_EXCEEDED,
107
224
E_BOOK_VIEW_ERROR_OTHER_ERROR
108
225
} EBookViewStatus;
229
* @E_BOOK_CHANGE_CARD_ADDED: A vCard was added
230
* @E_BOOK_CHANGE_CARD_DELETED: A vCard was deleted
231
* @E_BOOK_CHANGE_CARD_MODIFIED: A vCard was modified
233
* The type of change in an #EBookChange
111
238
E_BOOK_CHANGE_CARD_ADDED,
112
239
E_BOOK_CHANGE_CARD_DELETED,
113
240
E_BOOK_CHANGE_CARD_MODIFIED
114
241
} EBookChangeType;
245
* @change_type: The #EBookChangeType
246
* @contact: The #EContact which changed
248
* This is a part of the deprecated #EBook API.
117
253
EBookChangeType change_type;
118
254
EContact *contact;
123
* @E_BOOK_INDEX_PREFIX: An index suitable for searching contacts with a prefix pattern
124
* @E_BOOK_INDEX_SUFFIX: An index suitable for searching contacts with a suffix pattern
125
* @E_BOOK_INDEX_PHONE: An index suitable for searching contacts for phone numbers.
126
* <note><para>that phone numbers must be convertible into FQTN according to E.164 to be
127
* stored in this index. The number "+9999999" for instance won't be stored because
128
* the country calling code "+999" currently is not assigned.</para></note>
130
* The type of index defined by e_source_backend_summary_setup_set_indexed_fields()
133
E_BOOK_INDEX_PREFIX = 0,
138
GQuark e_book_client_error_quark (void) G_GNUC_CONST;
139
const gchar * e_book_client_error_to_string (EBookClientError code);
141
#ifndef EDS_DISABLE_DEPRECATED
142
257
GError * e_book_client_error_create (EBookClientError code,
143
258
const gchar *custom_msg);
144
#endif /* E_BOOK_DISABLE_DEPRECATED */
259
#endif /* EDS_DISABLE_DEPRECATED */