BluezQt

objectmanageradaptor.cpp
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#include "objectmanageradaptor.h"
10#include "gattapplication.h"
11#include "gattapplication_p.h"
12
13namespace BluezQt
14{
15ObjectManagerAdaptor::ObjectManagerAdaptor(QObject *parent)
16 : QDBusAbstractAdaptor(parent)
17 , m_gattApplication(qobject_cast<GattApplication *>(parent))
18{
19}
20
21DBusManagerStruct ObjectManagerAdaptor::GetManagedObjects()
22{
23 if (m_gattApplication) {
24 return m_gattApplication->d->getManagedObjects();
25 }
26
27 return {};
28}
29
30} // namespace BluezQt
31
32#include "moc_objectmanageradaptor.cpp"
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.