Blob: org.bluez.obex.PhonebookAccess.rst
Blob id: 5b22d67f56d6f903f4056419c5d8b22b78b88180
Size: 7.1 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 | ============================== org.bluez.obex.PhonebookAccess ============================== -------------------------------------------------- BlueZ D-Bus OBEX PhonebookAccess API documentation -------------------------------------------------- :Version: BlueZ :Date: October 2023 :Manual section: 5 :Manual group: Linux System Administration Interface ========= :Service: org.bluez.obex :Interface: org.bluez.obex.PhonebookAccess1 :Object path: [Session object path] Methods ------- void Select(string location, string phonebook) `````````````````````````````````````````````` Selects the phonebook object for other operations. Should be call before all the other operations. Possible location values: :"int", "internal" (default): Store in the Internal memory. :"sim{#}": Store in the sim number. Possible phonebook values: :"pb": Store as contact. :"ich": Store as incoming call. :"och": Store as outgoing call. :"mch": Store as missing call. :"cch": Store as a combination of incoming, outgoing and missing call. "spd": Store as speed dials entry ( only for "internal" ) "fav": Store as favorites entry ( only for "internal" ) Possible errors: :org.bluez.obex.Error.InvalidArguments: :org.bluez.obex.Error.Failed: object, dict PullAll(string targetfile, dict filters) ````````````````````````````````````````````````````` Returns the entire phonebook object from the PSE server in plain string with vcard format, and store it in a local file. If an empty target file is given, a name will be automatically generated for the temporary file. The returned path represents the newly created transfer, which should be used to find out if the content has been successfully transferred or if the operation fails. The properties of this transfer are also returned along with the object path, to avoid a call to GetProperties, see **org.bluez.obex.Transfer(5)** for the possible list of properties. Possible filters: :string Format: Items vcard format. Possible values: :"vcard21" (default): :"vcard30": :string Order: Items order. Possible values: :"": :"indexed": :"alphanumeric": :"phonetic": :uint16 Offset (default 0): Offset of the first item. :uint16 MaxCount (default 65535): Maximum number of items. :array{string} Fields (default all fields): Item vcard fields. See **ListFilterFields()** for possible values. :array{string} FilterAll: Filter items by fields using AND logic, cannot be used together with **FilterAny**. See **ListFilterFields()** for possible values. :array{string} FilterAny: Filter items by fields using OR logic, cannot be used together with **FilterAll**. See **ListFilterFields()** for possible values. :bool ResetNewMissedCalls: Reset new the missed calls items, shall only be used for folders mch and cch. Possible errors: :org.bluez.obex.Error.InvalidArguments: :org.bluez.obex.Forbidden: array{string vcard, string name} List(dict filters) ``````````````````````````````````````````````````` Returns array of vcard-listing data where every entry consists of a pair of strings containing the vcard handle and the contact name. For example: :"1.vcf": "John" Possible filters: :string Order: Contact order. Possible values: :"": :"indexed": :"alphanumeric": :"phonetic": :uint16 Offset: Start offset. :uint16 MaxCount: Maximum number of contacts. Possible errors: :org.bluez.obex.Error.InvalidArguments: :org.bluez.obex.Forbidden: object, dict Pull(string vcard, string targetfile, dict filters) ```````````````````````````````````````````````````````````````` Retrieves the vcard in the current phonebook object and store it in a local file. If an empty target file is given, a name will be automatically generated for the temporary file. The returned path represents the newly created transfer, which should be used to find out if the content has been successfully transferred or if the operation fails. The properties of this transfer are also returned along with the object path, to avoid a call to GetProperties, see **org.bluez.obex.Transfer(5)** for the possible list of properties. Possible filters: :string Format: Contact data format. Possible values: :"": :"vcard21": :"vcard30": :array{string} Fields: See **ListFilterFields()** for possible values. Possible errors: :org.bluez.obex.Error.InvalidArguments: :org.bluez.obex.Error.Forbidden: :org.bluez.obex.Error.Failed: array{string vcard, string name} Search(string field, string value, dict filters) ````````````````````````````````````````````````````````````````````````````````` Searches for entries matching the given condition and return an array of vcard-listing data where every entry consists of a pair of strings containing the vcard handle and the contact name. Possible field values: :"name" (default): Search by name. :"number": Search by number. :"sound": Search by sound. value: the string value to search for Possible filters: :string Order: Contact order. Possible values: :"": :"indexed": :"alphanumeric": :"phonetic": :uint16 Offset: Start offset. :uint16 MaxCount: Maximum number of contacts. Possible errors: :org.bluez.obex.Error.InvalidArguments: :org.bluez.obex.Error.Forbidden: :org.bluez.obex.Error.Failed: uint16 GetSize() ```````````````` Returns the number of entries in the selected phonebook object that are actually used (i.e. indexes that correspond to non-NULL entries). Possible errors: :org.bluez.obex.Error.Forbidden: :org.bluez.obex.Error.Failed: void UpdateVersion() ```````````````````` Attempts to update PrimaryCounter and SecondaryCounter. Possible errors: :org.bluez.obex.Error.NotSupported: :org.bluez.obex.Error.Forbidden: :org.bluez.obex.Error.Failed: array{string} ListFilterFields() ```````````````````````````````` Returns all Available fields that can be used in Fields filter. Possible return: :"VERSION": :"FN": :"N": :"PHOTO": :"BDAY": :"ADR": :"LABEL": :"TEL": :"EMAIL": :"MAILER": :"TZ": :"GEO": :"TITLE": :"ROLE": :"LOGO": :"AGENT": :"ORG": :"NOTE": :"REV": :"SOUND": :"URL": :"UID": :"KEY": :"NICKNAME": :"CATEGORIES": :"PROID": :"CLASS": :"SORT-STRING": :"X-IRMC-CALL-DATETIME": :"X-BT-SPEEDDIALKEY": :"X-BT-UCI": :"X-BT-UID": :"BIT-{#}": Possible errors: None Properties ---------- string Folder [readonly] ```````````````````````` Current folder. string DatabaseIdentifier [readonly, optional] `````````````````````````````````````````````` 128 bits persistent database identifier. Possible values: 32-character hexadecimal such as A1A2A3A4B1B2C1C2D1D2E1E2E3E4E5E6 string PrimaryCounter [readonly, optional] `````````````````````````````````````````` 128 bits primary version counter. Possible values: 32-character hexadecimal such as A1A2A3A4B1B2C1C2D1D2E1E2E3E4E5E6 string SecondaryCounter [readonly, optional] ```````````````````````````````````````````` 128 bits secondary version counter. Possible values: 32-character hexadecimal such as A1A2A3A4B1B2C1C2D1D2E1E2E3E4E5E6 bool FixedImageSize [readonly, optional] ```````````````````````````````````````` Indicate support for fixed image size. Possible values: True if image is JPEG 300x300 pixels otherwise False. |