File indexing completed on 2024-04-28 15:17:56

0001 /*
0002  * BluezQt - Asynchronous Bluez wrapper library
0003  *
0004  * SPDX-FileCopyrightText: 2014-2015 David Rosca <nowrep@gmail.com>
0005  *
0006  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007  */
0008 
0009 #ifndef BLUEZQT_OBEXTRANSFER_P_H
0010 #define BLUEZQT_OBEXTRANSFER_P_H
0011 
0012 #include "obextransfer.h"
0013 
0014 #include "dbusproperties.h"
0015 #include "obextransfer1.h"
0016 
0017 namespace BluezQt
0018 {
0019 typedef org::bluez::obex::Transfer1 BluezTransfer;
0020 typedef org::freedesktop::DBus::Properties DBusProperties;
0021 
0022 class ObexTransferPrivate : public QObject
0023 {
0024     Q_OBJECT
0025 
0026 public:
0027     explicit ObexTransferPrivate(const QString &path, const QVariantMap &properties);
0028 
0029     void init(const QVariantMap &properties);
0030 
0031     void propertiesChanged(const QString &interface, const QVariantMap &changed, const QStringList &invalidated);
0032     void sessionRemoved(const ObexSessionPtr &session);
0033 
0034     QWeakPointer<ObexTransfer> q;
0035     BluezTransfer *m_bluezTransfer;
0036     DBusProperties *m_dbusProperties;
0037 
0038     ObexTransfer::Status m_status;
0039     QString m_name;
0040     QString m_type;
0041     quint64 m_time;
0042     quint64 m_size;
0043     quint64 m_transferred;
0044     QString m_fileName;
0045     bool m_suspendable;
0046 };
0047 
0048 } // namespace BluezQt
0049 
0050 #endif // BLUEZQT_OBEXTRANSFER_P_H