org.bluez.obex.ObjectPush1 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bluez-dbus Show documentation
Show all versions of bluez-dbus Show documentation
Java native bluetooth library which uses bluez via dbus (linux only)
The newest version!
package org.bluez.obex;
import org.bluez.datatypes.TwoTuple;
import org.bluez.exceptions.BluezFailedException;
import org.bluez.exceptions.BluezInvalidArgumentsException;
import org.freedesktop.dbus.DBusPath;
import org.freedesktop.dbus.interfaces.DBusInterface;
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.ObjectPush1
*
* Object path:
* [Session object path]
*
*/
public interface ObjectPush1 extends DBusInterface {
/**
* From bluez documentation:
*
* Send one local file to the remote device.
*
* 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.
*
*
* @param _sourcefile sourcefile
*
* @return TwoTuple<DBusPath, Map<String,Variant<?>>> - maybe null
*
* @throws BluezInvalidArgumentsException when argument is invalid
* @throws BluezFailedException on failure
*/
TwoTuple>> SendFile(String _sourcefile) throws BluezInvalidArgumentsException, BluezFailedException;
/**
* From bluez documentation:
*
* Request the business card from a remote device and
* store it in the 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.
*
*
* @param _targetfile targetfile
*
* @return TwoTuple<DBusPath, Map<String,Variant<?>>> - maybe null
*
* @throws BluezInvalidArgumentsException when argument is invalid
* @throws BluezFailedException on failure
*/
TwoTuple>> PullBusinessCard(String _targetfile) throws BluezInvalidArgumentsException, BluezFailedException;
/**
* From bluez documentation:
*
* Push the client's business card to the remote device
* and then retrieve the remote business card 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.
*
*
* @param _clientfile clientfile
* @param _targetfile targetfile
*
* @return TwoTuple<DBusPath, Map<String,Variant<?>>> - maybe null
*
* @throws BluezInvalidArgumentsException when argument is invalid
* @throws BluezFailedException on failure
*/
TwoTuple>> ExchangeBusinessCards(String _clientfile, String _targetfile) throws BluezInvalidArgumentsException, BluezFailedException;
}