BluezQt

mediaendpointadaptor.cpp
1/*
2 * BluezQt - Asynchronous Bluez wrapper library
3 *
4 * SPDX-FileCopyrightText: 2018 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#include "mediaendpointadaptor.h"
10#include "mediaendpoint.h"
11#include "request.h"
12
13#include <QDBusMessage>
14#include <QDBusObjectPath>
15
16namespace BluezQt
17{
18MediaEndpointAdaptor::MediaEndpointAdaptor(MediaEndpoint *parent)
19 : QDBusAbstractAdaptor(parent)
20 , m_endpoint(parent)
21{
22}
23
24void MediaEndpointAdaptor::SetConfiguration(const QDBusObjectPath &transport, const QVariantMap &properties)
25{
26 m_endpoint->setConfiguration(transport.path(), properties);
27}
28
29QByteArray MediaEndpointAdaptor::SelectConfiguration(const QByteArray &capabilities, const QDBusMessage &msg)
30{
31 msg.setDelayedReply(true);
32 Request<QByteArray> req(OrgBluezMediaEndpoint, msg);
33
34 m_endpoint->selectConfiguration(capabilities, req);
35 return QByteArray();
36}
37
38void MediaEndpointAdaptor::ClearConfiguration(const QDBusObjectPath &transport)
39{
40 m_endpoint->clearConfiguration(transport.path());
41}
42
43void MediaEndpointAdaptor::Release()
44{
45 m_endpoint->release();
46}
47
48} // namespace BluezQt
49
50#include "moc_mediaendpointadaptor.cpp"
void setDelayedReply(bool enable) const const
QString path() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:46:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.