Pages
API Documentation
On this page

BluezQt::ObexFileTransfer Class

OBEX file transfer. More...

  • Header: #include <BluezQt/ObexFileTransfer>
  • CMake: find_package(KF6 REQUIRED COMPONENTS BluezQt)
    target_link_libraries(mytarget PRIVATE KF6::BluezQt)
  • Inherits: QObject

List of all members, including inherited members

Public Functions

Detailed Description

This class represents an OBEX file transfer interface.

Member Function Documentation

[explicit] ObexFileTransfer::ObexFileTransfer(const QDBusObjectPath &path, QObject *parent = nullptr)

Creates a new ObexFileTransfer object at the given session path as a child of parent.

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

BluezQt::PendingCall *ObexFileTransfer::changeFolder(const QString &folder)

Changes the current folder.

Possible errors:

Returns void pending call.

BluezQt::PendingCall *ObexFileTransfer::copyFile(const QString &sourceFileName, const QString &targetFileName)

Copies a file at sourceFileName to targetFileName, both within the remote device.

Possible errors:

Returns void pending call.

BluezQt::PendingCall *ObexFileTransfer::createFolder(const QString &folder)

Creates a new folder.

Possible errors:

Returns void pending call.

BluezQt::PendingCall *ObexFileTransfer::deleteFile(const QString &fileName)

Deletes a file/folder at fileName within the remote device.

Possible errors:

Returns void pending call.

BluezQt::PendingCall *ObexFileTransfer::getFile(const QString &targetFileName, const QString &sourceFileName)

Gets the file at full path sourceFileName from the remote device and saves it to targetFileName.

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

Possible errors:

Returns ObexTransferPtr pending call.

BluezQt::PendingCall *ObexFileTransfer::listFolder()

Lists a current folder.

Possible errors:

Returns QList<ObexFileTransferEntry> pending call.

BluezQt::PendingCall *ObexFileTransfer::moveFile(const QString &sourceFileName, const QString &targetFileName)

Moves a file sourceFileName to targetFileName, both within the remote device.

Possible errors:

Returns void pending call.

QDBusObjectPath ObexFileTransfer::objectPath() const

Returns the D-Bus object path of the file transfer session.

BluezQt::PendingCall *ObexFileTransfer::putFile(const QString &sourceFileName, const QString &targetFileName)

Puts the file at full path sourceFileName to the remote device in targetFileName.

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

Possible errors:

Returns ObexTransferPtr pending call.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.