1/*
2 * BluezQt - Asynchronous Bluez wrapper library
3 *
4 * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <mincequi@web.de>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#ifndef BLUEZQT_MEDIATRANSPORT_P_H
10#define BLUEZQT_MEDIATRANSPORT_P_H
11
12#include "bluezmediatransport1.h"
13#include "dbusproperties.h"
14#include "mediatransport.h"
15
16namespace BluezQt
17{
18typedef org::freedesktop::DBus::Properties DBusProperties;
19
20class MediaTransportPrivate : public QObject
21{
22 Q_OBJECT
23
24public:
25 explicit MediaTransportPrivate(const QString &path, const QVariantMap &properties);
26
27 void init(const QVariantMap &properties);
28
29public Q_SLOTS:
30 void onPropertiesChanged(const QString &interface, const QVariantMap &changed, const QStringList &invalidated);
31
32public:
33 QWeakPointer<MediaTransport> q;
34 OrgBluezMediaTransport1Interface m_dbusInterface;
35 DBusProperties *m_dbusProperties;
36
37 QString m_path;
38 AudioConfiguration m_configuration;
39 MediaTransport::State m_state = MediaTransport::State::Idle;
40 quint16 m_volume = 0;
41};
42
43} // namespace BluezQt
44
45#endif
46

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