BluezQt 5.109.0
|
OBEX file transfer. More...
#include <BluezQt/ObexFileTransfer>
Public Member Functions | |
ObexFileTransfer (const QDBusObjectPath &path, QObject *parent=nullptr) | |
Creates a new ObexFileTransfer object. | |
~ObexFileTransfer () override | |
Destroys an ObexFileTransfer object. | |
PendingCall * | changeFolder (const QString &folder) |
Changes the current folder. | |
PendingCall * | copyFile (const QString &sourceFileName, const QString &targetFileName) |
Copies a file within the remote device. | |
PendingCall * | createFolder (const QString &folder) |
Creates a new folder. | |
PendingCall * | deleteFile (const QString &fileName) |
Deletes a file/folder within the remote device. | |
PendingCall * | getFile (const QString &targetFileName, const QString &sourceFileName) |
Gets the file from the remote device. | |
PendingCall * | listFolder () |
Lists a current folder. | |
PendingCall * | moveFile (const QString &sourceFileName, const QString &targetFileName) |
Moves a file within the remote device. | |
QDBusObjectPath | objectPath () const |
D-Bus object path of the file transfer session. | |
PendingCall * | putFile (const QString &sourceFileName, const QString &targetFileName) |
Puts the file to the remote device. | |
OBEX file transfer.
This class represents an OBEX file transfer interface.
|
explicit |
Creates a new ObexFileTransfer object.
This class will be typically used with a path
from result of ObexManager::createSession().
path | path of session |
parent |
|
override |
Destroys an ObexFileTransfer object.
PendingCall * BluezQt::ObexFileTransfer::changeFolder | ( | const QString & | folder | ) |
Changes the current folder.
Possible errors: PendingCall::InvalidArguments, PendingCall::Failed
folder | folder to be changed |
PendingCall * BluezQt::ObexFileTransfer::copyFile | ( | const QString & | sourceFileName, |
const QString & | targetFileName | ||
) |
Copies a file within the remote device.
Possible errors: PendingCall::InvalidArguments, PendingCall::Failed
sourceFileName | source within the remote device |
targetFileName | target file within the remote device |
PendingCall * BluezQt::ObexFileTransfer::createFolder | ( | const QString & | folder | ) |
Creates a new folder.
Possible errors: PendingCall::InvalidArguments, PendingCall::Failed
folder | name of new folder |
PendingCall * BluezQt::ObexFileTransfer::deleteFile | ( | const QString & | fileName | ) |
Deletes a file/folder within the remote device.
Possible errors: PendingCall::InvalidArguments, PendingCall::Failed
fileName | file within the remote device |
PendingCall * BluezQt::ObexFileTransfer::getFile | ( | const QString & | targetFileName, |
const QString & | sourceFileName | ||
) |
Gets the file from the remote device.
If an empty targetFileName
is given, a name will be automatically calculated for the temporary file.
Possible errors: PendingCall::InvalidArguments, PendingCall::Failed
targetFileName | full local path where the file will be saved |
sourceFileName | file within the remote device |
PendingCall * BluezQt::ObexFileTransfer::listFolder | ( | ) |
Lists a current folder.
Possible errors: PendingCall::Failed
PendingCall * BluezQt::ObexFileTransfer::moveFile | ( | const QString & | sourceFileName, |
const QString & | targetFileName | ||
) |
Moves a file within the remote device.
Possible errors: PendingCall::InvalidArguments, PendingCall::Failed
sourceFileName | source file within the remote device |
targetFileName | target file within the remote device |
QDBusObjectPath BluezQt::ObexFileTransfer::objectPath | ( | ) | const |
D-Bus object path of the file transfer session.
PendingCall * BluezQt::ObexFileTransfer::putFile | ( | const QString & | sourceFileName, |
const QString & | targetFileName | ||
) |
Puts the file to the remote device.
If an empty targetFileName
is given, a name will be automatically calculated for the temporary file.
Possible errors: PendingCall::InvalidArguments, PendingCall::Failed
sourceFileName | full path of the local file |
targetFileName | file to be saved within the remote device |