All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bluez.obex.PhonebookAccess1 Maven / Gradle / Ivy

Go to download

Java native bluetooth library which uses bluez via dbus (linux only). This is the OSGi compliant bundle of all required libraries in one bundle.

The newest version!
package org.bluez.obex;

import org.bluez.datatypes.TwoTuple;
import org.bluez.exceptions.*;
import org.freedesktop.dbus.DBusPath;
import org.freedesktop.dbus.interfaces.DBusInterface;
import org.freedesktop.dbus.types.UInt16;
import org.freedesktop.dbus.types.Variant;

import java.util.Map;

/**
 * File generated - 2023-02-20.
* Based on bluez Documentation: obex-api.txt.
*
* Service: org.bluez.obex
* Interface: org.bluez.obex.PhonebookAccess1
*
* Object path:
* [Session object path]
*
* Supported 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.
*
*
*/ public interface PhonebookAccess1 extends DBusInterface { /** * From bluez documentation:
*
* Select the phonebook object for other operations. Should
* be call before all the other operations.
*
* location : Where the phonebook is stored, possible
* inputs :
* "int" ( "internal" which is default )
* "sim" ( "sim1" )
* "sim2"
* ...
*
* phonebook : Possible inputs :
* "pb" : phonebook for the saved contacts
* "ich": incoming call history
* "och": outgoing call history
* "mch": missing call history
* "cch": combination of ich och mch
* "spd": speed dials entry ( only for "internal" )
* "fav": favorites entry ( only for "internal" )
*
* * @param _location location * @param _phonebook phonebook * * @throws BluezInvalidArgumentsException when argument is invalid * @throws BluezFailedException on failure */ void Select(String _location, String _phonebook) throws BluezInvalidArgumentsException, BluezFailedException; /** * From bluez documentation:
*
* Return 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 calculated 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.
*
* Possible filters: Format, Order, Offset, MaxCount and
* Fields
*
* * @param _targetfile targetfile * @param _filters filters * * @return TwoTuple<DBusPath, Map<String,Variant<?>>> - maybe null * * @throws BluezInvalidArgumentsException when argument is invalid * @throws BluezForbiddenException on BluezForbiddenException */ TwoTuple>> PullAll(String _targetfile, Map> _filters) throws BluezInvalidArgumentsException, BluezForbiddenException; /** * From bluez documentation:
*
* Return an 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: Order, Offset and MaxCount
*
* * @param _filters filters * * @return TwoTuple<String, String>[] - maybe null * * @throws BluezInvalidArgumentsException when argument is invalid * @throws BluezForbiddenException on BluezForbiddenException */ TwoTuple[] List(Map> _filters) throws BluezInvalidArgumentsException, BluezForbiddenException; /** * From bluez documentation:
*
* Given a vcard handle, retrieve 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 calculated 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.
*
* Possbile filters: Format and Fields
*
* * @param _vcard vcard * @param _targetfile targetfile * @param _filters filters * * @return TwoTuple<DBusPath, Map<String,Variant<?>>> - maybe null * * @throws BluezInvalidArgumentsException when argument is invalid * @throws BluezForbiddenException on BluezForbiddenException * @throws BluezFailedException on failure */ TwoTuple>> Pull(String _vcard, String _targetfile, Map> _filters) throws BluezInvalidArgumentsException, BluezForbiddenException, BluezFailedException; /** * From bluez documentation:
*
* Search 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.
*
* vcard : name paired string match the search condition.
*
* field : the field in the vcard to search with
* { "name" (default) | "number" | "sound" }
* value : the string value to search for
*
*
* Possible filters: Order, Offset and MaxCount
*
* * @param _field field * @param _value value * @param _filters filters * * @return TwoTuple<String, String[]> - maybe null * * @throws BluezInvalidArgumentsException when argument is invalid * @throws BluezForbiddenException on BluezForbiddenException * @throws BluezFailedException on failure */ TwoTuple Search(String _field, String _value, Map> _filters) throws BluezInvalidArgumentsException, BluezForbiddenException, BluezFailedException; /** * From bluez documentation:
*
* Return the number of entries in the selected phonebook
* object that are actually used (i.e. indexes that
* correspond to non-NULL entries).
*
* * @return UInt16 - maybe null * * @throws BluezForbiddenException on BluezForbiddenException * @throws BluezFailedException on failure */ UInt16 GetSize() throws BluezForbiddenException, BluezFailedException; /** * From bluez documentation:
*
* Attempt to update PrimaryCounter and SecondaryCounter.
*
* * @throws BluezNotSupportedException when operation not supported * @throws BluezForbiddenException on BluezForbiddenException * @throws BluezFailedException on failure */ void UpdateVersion() throws BluezNotSupportedException, BluezForbiddenException, BluezFailedException; /** * From bluez documentation:
*
* Return All Available fields that can be used in Fields
* filter.
*
* * @return String[] - maybe null */ String[] ListFilterFields(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy