BluezQt 5.109.0
Public Member Functions | List of all members
BluezQt::ObexObjectPush

OBEX object push. More...

#include <BluezQt/ObexObjectPush>

Public Member Functions

 ObexObjectPush (const QDBusObjectPath &path, QObject *parent=nullptr)
 Creates a new ObexObjectPush object.
 
 ~ObexObjectPush () override
 Destroys an ObexObjectPush object.
 
PendingCallexchangeBusinessCards (const QString &clientFileName, const QString &targetFileName)
 Exchanges the business cards on the remote device.
 
QDBusObjectPath objectPath () const
 D-Bus object path of the object push session.
 
PendingCallpullBusinessCard (const QString &targetFileName)
 Pulls the business card from a remote device.
 
PendingCallsendFile (const QString &fileName)
 Sends one local file to the remote device.
 

Detailed Description

OBEX object push.

This class represents an OBEX object push interface.

Constructor & Destructor Documentation

◆ ObexObjectPush()

BluezQt::ObexObjectPush::ObexObjectPush ( const QDBusObjectPath &  path,
QObject *  parent = nullptr 
)
explicit

Creates a new ObexObjectPush object.

This class will be typically used with a path from result of ObexManager::createSession().

Parameters
pathpath of session
parent

◆ ~ObexObjectPush()

BluezQt::ObexObjectPush::~ObexObjectPush ( )
override

Destroys an ObexObjectPush object.

Member Function Documentation

◆ exchangeBusinessCards()

PendingCall * BluezQt::ObexObjectPush::exchangeBusinessCards ( const QString &  clientFileName,
const QString &  targetFileName 
)

Exchanges the business cards on the remote device.

This method pushes the local business card to the remote device and then retrieve the remote business card and store it in a local file.

If an empty targetFileName is given, a name will be automatically calculated for the temporary file.

The returned ObexTransfer can be used to track progress of transfer.

Possible errors: PendingCall::InvalidArguments, PendingCall::Failed

Parameters
clientFileNamefull path to local business card
targetFileNamefull path where the business card will be saved
Returns
ObexTransfer * pending call

◆ objectPath()

QDBusObjectPath BluezQt::ObexObjectPush::objectPath ( ) const

D-Bus object path of the object push session.

Returns
object path of session

◆ pullBusinessCard()

PendingCall * BluezQt::ObexObjectPush::pullBusinessCard ( const QString &  targetFileName)

Pulls the business card from a remote device.

If an empty targetFileName is given, a name will be automatically calculated for the temporary file.

The returned ObexTransfer can be used to track progress of transfer.

Possible errors: PendingCall::InvalidArguments, PendingCall::Failed

Parameters
targetFileNamefull path where the business card will be saved
Returns
ObexTransfer * pending call

◆ sendFile()

PendingCall * BluezQt::ObexObjectPush::sendFile ( const QString &  fileName)

Sends one local file to the remote device.

The returned ObexTransfer can be used to track progress of transfer.

Possible errors: PendingCall::InvalidArguments, PendingCall::Failed

Parameters
fileNamefull path of file to send
Returns
ObexTransfer * pending call