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_OBEXTRANSFER_P_H
10#define BLUEZQT_OBEXTRANSFER_P_H
11
12#include "obextransfer.h"
13
14#include "dbusproperties.h"
15#include "obextransfer1.h"
16
17namespace BluezQt
18{
19typedef org::bluez::obex::Transfer1 BluezTransfer;
20typedef org::freedesktop::DBus::Properties DBusProperties;
21
22class ObexTransferPrivate : public QObject
23{
24 Q_OBJECT
25
26public:
27 explicit ObexTransferPrivate(const QString &path, const QVariantMap &properties);
28
29 void init(const QVariantMap &properties);
30
31 void propertiesChanged(const QString &interface, const QVariantMap &changed, const QStringList &invalidated);
32 void sessionRemoved(const ObexSessionPtr &session);
33
34 QWeakPointer<ObexTransfer> q;
35 BluezTransfer *m_bluezTransfer;
36 DBusProperties *m_dbusProperties;
37
38 ObexTransfer::Status m_status;
39 QString m_name;
40 QString m_type;
41 quint64 m_time;
42 quint64 m_size;
43 quint64 m_transferred;
44 QString m_fileName;
45 bool m_suspendable;
46};
47
48} // namespace BluezQt
49
50#endif // BLUEZQT_OBEXTRANSFER_P_H
51

source code of bluez-qt/src/obextransfer_p.h