File indexing completed on 2024-12-01 12:29:49

0001 /*
0002  * BluezQt - Asynchronous Bluez wrapper library
0003  *
0004  * SPDX-FileCopyrightText: 2018 Manuel Weichselbaumer <mincequi@web.de>
0005  *
0006  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007  */
0008 
0009 #ifndef BLUEZQT_MEDIAENDPOINTADAPTOR_H
0010 #define BLUEZQT_MEDIAENDPOINTADAPTOR_H
0011 
0012 #include <QDBusAbstractAdaptor>
0013 
0014 class QDBusMessage;
0015 class QDBusObjectPath;
0016 
0017 namespace BluezQt
0018 {
0019 class MediaEndpoint;
0020 
0021 class MediaEndpointAdaptor : public QDBusAbstractAdaptor
0022 {
0023     Q_OBJECT
0024     Q_CLASSINFO("D-Bus Interface", "org.bluez.MediaEndpoint1")
0025 
0026 public:
0027     explicit MediaEndpointAdaptor(MediaEndpoint *parent);
0028 
0029 public Q_SLOTS:
0030     void SetConfiguration(const QDBusObjectPath &transport, const QVariantMap &properties);
0031     QByteArray SelectConfiguration(const QByteArray &capabilities, const QDBusMessage &msg);
0032     void ClearConfiguration(const QDBusObjectPath &transport);
0033     Q_NOREPLY void Release();
0034 
0035 private:
0036     MediaEndpoint *m_endpoint;
0037 };
0038 
0039 } // namespace BluezQt
0040 
0041 #endif // BLUEZQT_MEDIAENDPOINTADAPTOR_H