File indexing completed on 2024-12-01 12:29:51
0001 /* 0002 * BluezQt - Asynchronous Bluez wrapper library 0003 * 0004 * SPDX-FileCopyrightText: 2019 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 #include "objectmanageradaptor.h" 0010 #include "gattapplication.h" 0011 #include "gattapplication_p.h" 0012 0013 namespace BluezQt 0014 { 0015 ObjectManagerAdaptor::ObjectManagerAdaptor(QObject *parent) 0016 : QDBusAbstractAdaptor(parent) 0017 , m_gattApplication(qobject_cast<GattApplication *>(parent)) 0018 { 0019 } 0020 0021 DBusManagerStruct ObjectManagerAdaptor::GetManagedObjects() 0022 { 0023 if (m_gattApplication) { 0024 return m_gattApplication->d->getManagedObjects(); 0025 } 0026 0027 return {}; 0028 } 0029 0030 } // namespace BluezQt 0031 0032 #include "moc_objectmanageradaptor.cpp"