BluezQt 5.109.0
|
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. | |
PendingCall * | exchangeBusinessCards (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. | |
PendingCall * | pullBusinessCard (const QString &targetFileName) |
Pulls the business card from a remote device. | |
PendingCall * | sendFile (const QString &fileName) |
Sends one local file to the remote device. | |
OBEX object push.
This class represents an OBEX object push interface.
|
explicit |
Creates a new ObexObjectPush object.
This class will be typically used with a path
from result of ObexManager::createSession().
path | path of session |
parent |
|
override |
Destroys an ObexObjectPush object.
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
clientFileName | full path to local business card |
targetFileName | full path where the business card will be saved |
QDBusObjectPath BluezQt::ObexObjectPush::objectPath | ( | ) | const |
D-Bus object path of the object push session.
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
targetFileName | full path where the business card will be saved |
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
fileName | full path of file to send |