ModemManagerQt

objectmanager.h
1/*
2 SPDX-FileCopyrightText: 2015 Jan Grulich <jgrulich@redhat.com>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef MODEMMANAGERQT_FAKE_MODEM_OBJECT_MANAGER_H
8#define MODEMMANAGERQT_FAKE_MODEM_OBJECT_MANAGER_H
9
10#include "generictypes.h"
11#include "generictypes_p.h"
12
13#include <QDBusAbstractAdaptor>
14#include <QDBusObjectPath>
15
16class ObjectManager : public QDBusAbstractAdaptor
17{
19 Q_CLASSINFO("D-Bus Interface", "org.freedesktop.DBus.ObjectManager")
20public:
21 explicit ObjectManager(QObject *parent = nullptr);
22 ~ObjectManager() override;
23
24 void addInterfaces(const QDBusObjectPath &object_path, const ModemManager::MMVariantMapMap &interfaces_and_properties);
25 void removeInterfaces(const QDBusObjectPath &object_path, const QStringList &interfaces);
26public Q_SLOTS:
27 Q_SCRIPTABLE ModemManager::DBUSManagerStruct GetManagedObjects();
28
30 Q_SCRIPTABLE void InterfacesAdded(const QDBusObjectPath &object_path, const ModemManager::MMVariantMapMap &interfaces_and_properties);
31 Q_SCRIPTABLE void InterfacesRemoved(const QDBusObjectPath &object_path, const QStringList &interfaces);
32
33private:
34 QMap<QDBusObjectPath, ModemManager::MMVariantMapMap> m_managedObjects;
35};
36
37#endif
This namespace allows to query the underlying system to discover the available modem interfaces respo...
Definition bearer.cpp:20
Q_CLASSINFO(Name, Value)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.