BluezQt 5.109.0
obexfiletransfer.h
1/*
2 * BluezQt - Asynchronous BlueZ wrapper library
3 *
4 * SPDX-FileCopyrightText: 2014-2015 David Rosca <nowrep@gmail.com>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#ifndef BLUEZQT_OBEXFILETRANSFER_H
10#define BLUEZQT_OBEXFILETRANSFER_H
11
12#include <QObject>
13
14#include "bluezqt_export.h"
15#include "obexfiletransferentry.h"
16
17class QDBusObjectPath;
18
19namespace BluezQt
20{
21class PendingCall;
22
30class BLUEZQT_EXPORT ObexFileTransfer : public QObject
31{
32 Q_OBJECT
33
34public:
44 explicit ObexFileTransfer(const QDBusObjectPath &path, QObject *parent = nullptr);
45
50
56 QDBusObjectPath objectPath() const;
57
66 PendingCall *changeFolder(const QString &folder);
67
76 PendingCall *createFolder(const QString &folder);
77
86
99 PendingCall *getFile(const QString &targetFileName, const QString &sourceFileName);
100
113 PendingCall *putFile(const QString &sourceFileName, const QString &targetFileName);
114
124 PendingCall *copyFile(const QString &sourceFileName, const QString &targetFileName);
125
135 PendingCall *moveFile(const QString &sourceFileName, const QString &targetFileName);
136
145 PendingCall *deleteFile(const QString &fileName);
146
147private:
148 class ObexFileTransferPrivate *const d;
149
150 friend class ObexFileTransferPrivate;
151};
152
153} // namespace BluezQt
154
155#endif // BLUEZQT_OBEXFILETRANSFER_H
OBEX file transfer.
Definition obexfiletransfer.h:31
PendingCall * getFile(const QString &targetFileName, const QString &sourceFileName)
Gets the file from the remote device.
PendingCall * createFolder(const QString &folder)
Creates a new folder.
PendingCall * listFolder()
Lists a current folder.
~ObexFileTransfer() override
Destroys an ObexFileTransfer object.
ObexFileTransfer(const QDBusObjectPath &path, QObject *parent=nullptr)
Creates a new ObexFileTransfer object.
QDBusObjectPath objectPath() const
D-Bus object path of the file transfer session.
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 * putFile(const QString &sourceFileName, const QString &targetFileName)
Puts the file to the remote device.
PendingCall * deleteFile(const QString &fileName)
Deletes a file/folder within the remote device.
PendingCall * moveFile(const QString &sourceFileName, const QString &targetFileName)
Moves a file within the remote device.
Pending method call.
Definition pendingcall.h:33