@girs/ebook-1.2 1.2.0-3.2.0 → 1.2.0-3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/ebook-1.2)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for EBook-1.2, generated from library version 1.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.0.
8
+ GJS TypeScript type definitions for EBook-1.2, generated from library version 1.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.3.
9
9
 
10
10
  This package is a client library for evolution addressbooks.
11
11
 
package/ebook-1.2.d.cts CHANGED
@@ -1092,6 +1092,13 @@ export module BookClientView {
1092
1092
  ($obj: BookClientView, object: GLib.Error): void
1093
1093
  }
1094
1094
 
1095
+ /**
1096
+ * Signal callback interface for `content-changed`
1097
+ */
1098
+ export interface ContentChangedSignalCallback {
1099
+ ($obj: BookClientView): void
1100
+ }
1101
+
1095
1102
  /**
1096
1103
  * Signal callback interface for `objects-added`
1097
1104
  */
@@ -1140,10 +1147,63 @@ export interface BookClientView extends Gio.Initable {
1140
1147
 
1141
1148
  readonly client: BookClient
1142
1149
  readonly connection: Gio.DBusConnection
1150
+ /**
1151
+ * A list of #EBookIndices holding indices of the contacts in the view.
1152
+ * These are received from the first sort field set by
1153
+ * e_book_client_view_set_sort_fields_sync(). The last item of the returned
1154
+ * array is the one with chr member being %NULL.
1155
+ *
1156
+ * Note: This property can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1157
+ */
1158
+ readonly indices: EBookContacts.BookIndices
1159
+ /**
1160
+ * How many contacts are available in the view.
1161
+ *
1162
+ * Note: This property can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1163
+ */
1164
+ readonly n_total: number
1143
1165
  readonly object_path: string | null
1144
1166
 
1145
1167
  // Owm methods of EBook-1.2.EBook.BookClientView
1146
1168
 
1169
+ /**
1170
+ * Asynchronously reads `range_length` contacts from index `range_start`.
1171
+ * When there are asked more than e_book_client_view_get_n_total()
1172
+ * contacts only those up to the total number of contacts are read.
1173
+ * Asking for out of range contacts results in an error.
1174
+ *
1175
+ * Finish the call by e_book_client_view_dup_contacts_finish() from the `cb`.
1176
+ *
1177
+ * Note: This function can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1178
+ * @param range_start 0-based range start to retrieve the contacts for
1179
+ * @param range_length how many contacts to retrieve
1180
+ * @param cancellable optional #GCancellable object, or %NULL
1181
+ */
1182
+ dup_contacts(range_start: number, range_length: number, cancellable: Gio.Cancellable | null): void
1183
+ /**
1184
+ * Finishes previous call of e_book_client_view_dup_contacts();
1185
+ * see it for further information.
1186
+ *
1187
+ * Free the returned #GPtrArray with g_ptr_array_unref(), when
1188
+ * no longer needed.
1189
+ *
1190
+ * Note: This function can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1191
+ * @param result an asynchronous call result
1192
+ * @returns whether succeeded; if not, the @error is set
1193
+ */
1194
+ dup_contacts_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* out_range_start */ number, /* out_contacts */ EBookContacts.Contact[] ]
1195
+ /**
1196
+ * Returns a list of #EBookIndices holding indices of the contacts
1197
+ * in the view. These are received from the first sort field set by
1198
+ * e_book_client_view_set_sort_fields_sync(). The last item of the returned
1199
+ * array is the one with chr member being %NULL.
1200
+ *
1201
+ * Free the returned array with e_book_indices_free(), when no longer needed.
1202
+ *
1203
+ * Note: This function can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1204
+ * @returns list of indices for the view
1205
+ */
1206
+ dup_indices(): EBookContacts.BookIndices
1147
1207
  /**
1148
1208
  * Returns the #EBookClientView:client associated with `client_view`.
1149
1209
  * @returns an #EBookClient
@@ -1154,6 +1214,21 @@ export interface BookClientView extends Gio.Initable {
1154
1214
  * @returns the #GDBusConnection
1155
1215
  */
1156
1216
  get_connection(): Gio.DBusConnection
1217
+ /**
1218
+ * Returns an identifier of the `self`. It does not change
1219
+ * for the whole life time of the `self`.
1220
+ *
1221
+ * Note: This function can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1222
+ * @returns an identifier of the view
1223
+ */
1224
+ get_id(): number
1225
+ /**
1226
+ * Returns how many contacts are available in the view.
1227
+ *
1228
+ * Note: This function can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1229
+ * @returns how many contacts are available in the view
1230
+ */
1231
+ get_n_total(): number
1157
1232
  /**
1158
1233
  * Returns the object path used to create the D-Bus proxy.
1159
1234
  * @returns the object path
@@ -1187,6 +1262,23 @@ export interface BookClientView extends Gio.Initable {
1187
1262
  * @param flags the #EBookClientViewFlags for `client_view`
1188
1263
  */
1189
1264
  set_flags(flags: EBookContacts.BookClientViewFlags): void
1265
+ /**
1266
+ * Sets `fields` to sort the view by. The default is to sort by the file-as
1267
+ * field in ascending order. Not every field can be used for sorting,
1268
+ * usually available fields are %E_CONTACT_FILE_AS,
1269
+ * %E_CONTACT_GIVEN_NAME and %E_CONTACT_FAMILY_NAME.
1270
+ *
1271
+ * The array is terminated by an item with an %E_CONTACT_FIELD_LAST field.
1272
+ *
1273
+ * The first sort field is used to populate indices, as returned
1274
+ * by e_book_client_view_dup_indices().
1275
+ *
1276
+ * Note: This function can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1277
+ * @param fields an array of #EBookClientViewSortFields, terminated by item with %E_CONTACT_FIELD_LAST field
1278
+ * @param cancellable optional #GCancellable object, or %NULL
1279
+ * @returns whether succeeded
1280
+ */
1281
+ set_sort_fields_sync(fields: EBookContacts.BookClientViewSortFields, cancellable: Gio.Cancellable | null): boolean
1190
1282
  /**
1191
1283
  * Tells `client_view` to start processing events.
1192
1284
  */
@@ -1206,6 +1298,9 @@ export interface BookClientView extends Gio.Initable {
1206
1298
  connect(sigName: "complete", callback: BookClientView.CompleteSignalCallback): number
1207
1299
  connect_after(sigName: "complete", callback: BookClientView.CompleteSignalCallback): number
1208
1300
  emit(sigName: "complete", object: GLib.Error, ...args: any[]): void
1301
+ connect(sigName: "content-changed", callback: BookClientView.ContentChangedSignalCallback): number
1302
+ connect_after(sigName: "content-changed", callback: BookClientView.ContentChangedSignalCallback): number
1303
+ emit(sigName: "content-changed", ...args: any[]): void
1209
1304
  connect(sigName: "objects-added", callback: BookClientView.ObjectsAddedSignalCallback): number
1210
1305
  connect_after(sigName: "objects-added", callback: BookClientView.ObjectsAddedSignalCallback): number
1211
1306
  emit(sigName: "objects-added", objects: EBookContacts.Contact[], ...args: any[]): void
@@ -1227,6 +1322,12 @@ export interface BookClientView extends Gio.Initable {
1227
1322
  connect(sigName: "notify::connection", callback: (($obj: BookClientView, pspec: GObject.ParamSpec) => void)): number
1228
1323
  connect_after(sigName: "notify::connection", callback: (($obj: BookClientView, pspec: GObject.ParamSpec) => void)): number
1229
1324
  emit(sigName: "notify::connection", ...args: any[]): void
1325
+ connect(sigName: "notify::indices", callback: (($obj: BookClientView, pspec: GObject.ParamSpec) => void)): number
1326
+ connect_after(sigName: "notify::indices", callback: (($obj: BookClientView, pspec: GObject.ParamSpec) => void)): number
1327
+ emit(sigName: "notify::indices", ...args: any[]): void
1328
+ connect(sigName: "notify::n-total", callback: (($obj: BookClientView, pspec: GObject.ParamSpec) => void)): number
1329
+ connect_after(sigName: "notify::n-total", callback: (($obj: BookClientView, pspec: GObject.ParamSpec) => void)): number
1330
+ emit(sigName: "notify::n-total", ...args: any[]): void
1230
1331
  connect(sigName: "notify::object-path", callback: (($obj: BookClientView, pspec: GObject.ParamSpec) => void)): number
1231
1332
  connect_after(sigName: "notify::object-path", callback: (($obj: BookClientView, pspec: GObject.ParamSpec) => void)): number
1232
1333
  emit(sigName: "notify::object-path", ...args: any[]): void
package/ebook-1.2.d.ts CHANGED
@@ -1094,6 +1094,13 @@ module BookClientView {
1094
1094
  ($obj: BookClientView, object: GLib.Error): void
1095
1095
  }
1096
1096
 
1097
+ /**
1098
+ * Signal callback interface for `content-changed`
1099
+ */
1100
+ interface ContentChangedSignalCallback {
1101
+ ($obj: BookClientView): void
1102
+ }
1103
+
1097
1104
  /**
1098
1105
  * Signal callback interface for `objects-added`
1099
1106
  */
@@ -1142,10 +1149,63 @@ interface BookClientView extends Gio.Initable {
1142
1149
 
1143
1150
  readonly client: BookClient
1144
1151
  readonly connection: Gio.DBusConnection
1152
+ /**
1153
+ * A list of #EBookIndices holding indices of the contacts in the view.
1154
+ * These are received from the first sort field set by
1155
+ * e_book_client_view_set_sort_fields_sync(). The last item of the returned
1156
+ * array is the one with chr member being %NULL.
1157
+ *
1158
+ * Note: This property can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1159
+ */
1160
+ readonly indices: EBookContacts.BookIndices
1161
+ /**
1162
+ * How many contacts are available in the view.
1163
+ *
1164
+ * Note: This property can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1165
+ */
1166
+ readonly n_total: number
1145
1167
  readonly object_path: string | null
1146
1168
 
1147
1169
  // Owm methods of EBook-1.2.EBook.BookClientView
1148
1170
 
1171
+ /**
1172
+ * Asynchronously reads `range_length` contacts from index `range_start`.
1173
+ * When there are asked more than e_book_client_view_get_n_total()
1174
+ * contacts only those up to the total number of contacts are read.
1175
+ * Asking for out of range contacts results in an error.
1176
+ *
1177
+ * Finish the call by e_book_client_view_dup_contacts_finish() from the `cb`.
1178
+ *
1179
+ * Note: This function can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1180
+ * @param range_start 0-based range start to retrieve the contacts for
1181
+ * @param range_length how many contacts to retrieve
1182
+ * @param cancellable optional #GCancellable object, or %NULL
1183
+ */
1184
+ dup_contacts(range_start: number, range_length: number, cancellable: Gio.Cancellable | null): void
1185
+ /**
1186
+ * Finishes previous call of e_book_client_view_dup_contacts();
1187
+ * see it for further information.
1188
+ *
1189
+ * Free the returned #GPtrArray with g_ptr_array_unref(), when
1190
+ * no longer needed.
1191
+ *
1192
+ * Note: This function can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1193
+ * @param result an asynchronous call result
1194
+ * @returns whether succeeded; if not, the @error is set
1195
+ */
1196
+ dup_contacts_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* out_range_start */ number, /* out_contacts */ EBookContacts.Contact[] ]
1197
+ /**
1198
+ * Returns a list of #EBookIndices holding indices of the contacts
1199
+ * in the view. These are received from the first sort field set by
1200
+ * e_book_client_view_set_sort_fields_sync(). The last item of the returned
1201
+ * array is the one with chr member being %NULL.
1202
+ *
1203
+ * Free the returned array with e_book_indices_free(), when no longer needed.
1204
+ *
1205
+ * Note: This function can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1206
+ * @returns list of indices for the view
1207
+ */
1208
+ dup_indices(): EBookContacts.BookIndices
1149
1209
  /**
1150
1210
  * Returns the #EBookClientView:client associated with `client_view`.
1151
1211
  * @returns an #EBookClient
@@ -1156,6 +1216,21 @@ interface BookClientView extends Gio.Initable {
1156
1216
  * @returns the #GDBusConnection
1157
1217
  */
1158
1218
  get_connection(): Gio.DBusConnection
1219
+ /**
1220
+ * Returns an identifier of the `self`. It does not change
1221
+ * for the whole life time of the `self`.
1222
+ *
1223
+ * Note: This function can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1224
+ * @returns an identifier of the view
1225
+ */
1226
+ get_id(): number
1227
+ /**
1228
+ * Returns how many contacts are available in the view.
1229
+ *
1230
+ * Note: This function can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1231
+ * @returns how many contacts are available in the view
1232
+ */
1233
+ get_n_total(): number
1159
1234
  /**
1160
1235
  * Returns the object path used to create the D-Bus proxy.
1161
1236
  * @returns the object path
@@ -1189,6 +1264,23 @@ interface BookClientView extends Gio.Initable {
1189
1264
  * @param flags the #EBookClientViewFlags for `client_view`
1190
1265
  */
1191
1266
  set_flags(flags: EBookContacts.BookClientViewFlags): void
1267
+ /**
1268
+ * Sets `fields` to sort the view by. The default is to sort by the file-as
1269
+ * field in ascending order. Not every field can be used for sorting,
1270
+ * usually available fields are %E_CONTACT_FILE_AS,
1271
+ * %E_CONTACT_GIVEN_NAME and %E_CONTACT_FAMILY_NAME.
1272
+ *
1273
+ * The array is terminated by an item with an %E_CONTACT_FIELD_LAST field.
1274
+ *
1275
+ * The first sort field is used to populate indices, as returned
1276
+ * by e_book_client_view_dup_indices().
1277
+ *
1278
+ * Note: This function can be used only with `E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY`.
1279
+ * @param fields an array of #EBookClientViewSortFields, terminated by item with %E_CONTACT_FIELD_LAST field
1280
+ * @param cancellable optional #GCancellable object, or %NULL
1281
+ * @returns whether succeeded
1282
+ */
1283
+ set_sort_fields_sync(fields: EBookContacts.BookClientViewSortFields, cancellable: Gio.Cancellable | null): boolean
1192
1284
  /**
1193
1285
  * Tells `client_view` to start processing events.
1194
1286
  */
@@ -1208,6 +1300,9 @@ interface BookClientView extends Gio.Initable {
1208
1300
  connect(sigName: "complete", callback: BookClientView.CompleteSignalCallback): number
1209
1301
  connect_after(sigName: "complete", callback: BookClientView.CompleteSignalCallback): number
1210
1302
  emit(sigName: "complete", object: GLib.Error, ...args: any[]): void
1303
+ connect(sigName: "content-changed", callback: BookClientView.ContentChangedSignalCallback): number
1304
+ connect_after(sigName: "content-changed", callback: BookClientView.ContentChangedSignalCallback): number
1305
+ emit(sigName: "content-changed", ...args: any[]): void
1211
1306
  connect(sigName: "objects-added", callback: BookClientView.ObjectsAddedSignalCallback): number
1212
1307
  connect_after(sigName: "objects-added", callback: BookClientView.ObjectsAddedSignalCallback): number
1213
1308
  emit(sigName: "objects-added", objects: EBookContacts.Contact[], ...args: any[]): void
@@ -1229,6 +1324,12 @@ interface BookClientView extends Gio.Initable {
1229
1324
  connect(sigName: "notify::connection", callback: (($obj: BookClientView, pspec: GObject.ParamSpec) => void)): number
1230
1325
  connect_after(sigName: "notify::connection", callback: (($obj: BookClientView, pspec: GObject.ParamSpec) => void)): number
1231
1326
  emit(sigName: "notify::connection", ...args: any[]): void
1327
+ connect(sigName: "notify::indices", callback: (($obj: BookClientView, pspec: GObject.ParamSpec) => void)): number
1328
+ connect_after(sigName: "notify::indices", callback: (($obj: BookClientView, pspec: GObject.ParamSpec) => void)): number
1329
+ emit(sigName: "notify::indices", ...args: any[]): void
1330
+ connect(sigName: "notify::n-total", callback: (($obj: BookClientView, pspec: GObject.ParamSpec) => void)): number
1331
+ connect_after(sigName: "notify::n-total", callback: (($obj: BookClientView, pspec: GObject.ParamSpec) => void)): number
1332
+ emit(sigName: "notify::n-total", ...args: any[]): void
1232
1333
  connect(sigName: "notify::object-path", callback: (($obj: BookClientView, pspec: GObject.ParamSpec) => void)): number
1233
1334
  connect_after(sigName: "notify::object-path", callback: (($obj: BookClientView, pspec: GObject.ParamSpec) => void)): number
1234
1335
  emit(sigName: "notify::object-path", ...args: any[]): void
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/ebook-1.2",
3
- "version": "1.2.0-3.2.0",
3
+ "version": "1.2.0-3.2.3",
4
4
  "description": "GJS TypeScript type definitions for EBook-1.2, generated from library version 1.2.0",
5
5
  "type": "module",
6
6
  "module": "ebook-1.2.js",
@@ -25,16 +25,16 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit ebook-1.2.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/camel-1.2": "^1.2.0-3.2.0",
29
- "@girs/ebookcontacts-1.2": "^1.2.0-3.2.0",
30
- "@girs/edataserver-1.2": "^1.2.0-3.2.0",
31
- "@girs/gio-2.0": "^2.76.1-3.2.0",
32
- "@girs/gjs": "^3.2.0",
33
- "@girs/glib-2.0": "^2.76.1-3.2.0",
34
- "@girs/gobject-2.0": "^2.76.1-3.2.0",
35
- "@girs/json-1.0": "^1.7.1-3.2.0",
36
- "@girs/libxml2-2.0": "^2.0.0-3.2.0",
37
- "@girs/soup-3.0": "^3.4.2-3.2.0"
28
+ "@girs/camel-1.2": "^1.2.0-3.2.3",
29
+ "@girs/ebookcontacts-1.2": "^1.2.0-3.2.3",
30
+ "@girs/edataserver-1.2": "^1.2.0-3.2.3",
31
+ "@girs/gio-2.0": "^2.76.1-3.2.3",
32
+ "@girs/gjs": "^3.2.3",
33
+ "@girs/glib-2.0": "^2.76.1-3.2.3",
34
+ "@girs/gobject-2.0": "^2.76.1-3.2.3",
35
+ "@girs/json-1.0": "^1.7.1-3.2.3",
36
+ "@girs/libxml2-2.0": "^2.0.0-3.2.3",
37
+ "@girs/soup-3.0": "^3.4.3-3.2.3"
38
38
  },
39
39
  "devDependencies": {
40
40
  "typescript": "*"
package/typedoc.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "entryPoints": ["./ebook-1.2.d.ts","./ebook-1.2-ambient.d.ts","./ebook-1.2-import.d.ts"],
2
+ "entryPoints": ["./ebook-1.2.d.ts"],
3
3
  "readme": "./README.md",
4
4
  "name": "EBook-1.2",
5
5
  "tsconfig": "./tsconfig.json"