BluezQt 5.109.0
obexsession.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_OBEXSESSION_H
10#define BLUEZQT_OBEXSESSION_H
11
12#include <QObject>
13
14#include "bluezqt_export.h"
15#include "types.h"
16
17class QDBusObjectPath;
18
19namespace BluezQt
20{
21class PendingCall;
22
30class BLUEZQT_EXPORT ObexSession : public QObject
31{
32 Q_OBJECT
33
34 Q_PROPERTY(QString source READ source)
35 Q_PROPERTY(QString destination READ destination)
36 Q_PROPERTY(quint8 channel READ channel)
37 Q_PROPERTY(QString target READ target)
38 Q_PROPERTY(QString root READ root)
39
40public:
44 ~ObexSession() override;
45
51 ObexSessionPtr toSharedPtr() const;
52
58 QDBusObjectPath objectPath() const;
59
67 QString source() const;
68
76 QString destination() const;
77
83 quint8 channel() const;
84
90 QString target() const;
91
97 QString root() const;
98
107
108private:
109 BLUEZQT_NO_EXPORT explicit ObexSession(const QString &path, const QVariantMap &properties);
110
111 class ObexSessionPrivate *const d;
112
113 friend class ObexSessionPrivate;
114 friend class ObexManagerPrivate;
115};
116
117} // namespace BluezQt
118
119#endif // BLUEZQT_OBEXSESSION_H
OBEX session.
Definition obexsession.h:31
PendingCall * getCapabilities()
Returns the remote device capabilities.
ObexSessionPtr toSharedPtr() const
Returns a shared pointer from this.
QString root() const
Returns the root path.
QString source() const
Returns address of the Bluetooth adapter.
~ObexSession() override
Destroys an ObexSession object.
quint8 channel() const
Returns the Bluetooth channel.
QString target() const
Returns the target UUID.
QDBusObjectPath objectPath() const
D-Bus object path of the session.
QString destination() const
Returns address of the Bluetooth device.
Pending method call.
Definition pendingcall.h:33