org.bluez...onization(5)

πŸ’– NAME πŸ’–

Okay bestie, welcome to org.bluez...onization(5) β€” that's the title, and it lives in the Linux System Administration manual. This page is the whole vibe for org.bluez.obex.Synchronization β€” the BlueZ D-Bus OBEX Synchronization API documentation. ✨


πŸ¦‹ INTERFACE πŸ¦‹

Here's the roster, no cap:

  • Service β€” org.bluez.obex
  • Interface β€” org.bluez.obex.Synchronization1
  • Object path β€” [Session object path]

✨ METHODS ✨

These are the actual moves. Keep the signatures exactly as written, bestie β€” character for character. 🫢

πŸ’… SetLocation

void SetLocation(string location)

Sets the phonebook object store location for other operations. The page says it should be called before all the other operations β€” like, do this first, okay? πŸ’–

Possible location:

  • "int" ("internal" which is default) β€” store in the interval memory.
  • "sim{#}" β€” store in sim card number #.

Possible errors:

  • org.bluez.obex.Error.InvalidArguments

πŸŽ€ GetPhonebook

object, dict GetPhonebook(string targetfile)

Retrieves an entire Phonebook Object store from the remote device, and stores it in a local file. Iconic little fetch-and-save moment. πŸ’Ύβœ¨

If an empty target file is given, a name will be automatically calculated for the temporary file β€” so cute, it names itself. 🧚

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. That path is your transfer's main character energy β€” use it to check the vibe. πŸ‘‘

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. Convenient? Obsessed. πŸ’…

Possible errors:

  • org.bluez.obex.Error.InvalidArguments
  • org.bluez.obex.Error.Failed

🌸 PutPhonebook

object, dict PutPhonebook(string sourcefile)

Sends an entire Phonebook Object store to the remote device. It's giving upload era. πŸ“€πŸ’–

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. Same main character transfer path, different direction. πŸ”₯

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. No extra call needed, periodt. πŸŽ€

Possible errors:

  • org.bluez.obex.Error.InvalidArguments
  • org.bluez.obex.Error.Failed

πŸ’– That's the whole page, bestie. Source/version: BlueZ. Date: October 2023. Manual: org.bluez...onization(5). Bye! πŸ¦‹βœ¨

πŸ“¦ where this page comes from