BluezQt 5.109.0
obexobjectpush.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_OBEXOBJECTPUSH_H
10#define BLUEZQT_OBEXOBJECTPUSH_H
11
12#include <QObject>
13
14#include "bluezqt_export.h"
15
16class QDBusObjectPath;
17
18namespace BluezQt
19{
20class PendingCall;
21
29class BLUEZQT_EXPORT ObexObjectPush : public QObject
30{
31 Q_OBJECT
32
33public:
43 explicit ObexObjectPush(const QDBusObjectPath &path, QObject *parent = nullptr);
44
48 ~ObexObjectPush() override;
49
55 QDBusObjectPath objectPath() const;
56
67 PendingCall *sendFile(const QString &fileName);
68
82 PendingCall *pullBusinessCard(const QString &targetFileName);
83
102 PendingCall *exchangeBusinessCards(const QString &clientFileName, const QString &targetFileName);
103
104private:
105 class ObexObjectPushPrivate *const d;
106
107 friend class ObexObjectPushPrivate;
108};
109
110} // namespace BluezQt
111
112#endif // BLUEZQT_OBEXOBJECTPUSH_H
OBEX object push.
Definition obexobjectpush.h:30
ObexObjectPush(const QDBusObjectPath &path, QObject *parent=nullptr)
Creates a new ObexObjectPush object.
PendingCall * sendFile(const QString &fileName)
Sends one local file to the remote device.
PendingCall * pullBusinessCard(const QString &targetFileName)
Pulls the business card from a remote device.
PendingCall * exchangeBusinessCards(const QString &clientFileName, const QString &targetFileName)
Exchanges the business cards on the remote device.
~ObexObjectPush() override
Destroys an ObexObjectPush object.
QDBusObjectPath objectPath() const
D-Bus object path of the object push session.
Pending method call.
Definition pendingcall.h:33