ModemManagerQt

fakemodem.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_H
8#define MODEMMANAGERQT_FAKE_MODEM_H
9
10#include "bearer.h"
11#include "modem.h"
12#include "objectmanager.h"
13
14#include <QDBusObjectPath>
15#include <QObject>
16
17class FakeModem : public QObject
18{
20 Q_CLASSINFO("D-Bus Interface", "org.kde.fakemodem")
21public:
22 explicit FakeModem(QObject *parent = nullptr);
23 ~FakeModem() override;
24
25 /* Not part of DBus interface */
26 void addModem(Modem *modem);
27 void removeModem(Modem *modem);
28 void addBearer(Bearer *bearer);
29 void removeBearer(Bearer *bearer);
30 void addInterfaces(const QDBusObjectPath &object_path, const ModemManager::MMVariantMapMap &interfaces_and_properties);
31 void removeInterfaces(const QDBusObjectPath &object_path, const QStringList &interfaces);
32
33public Q_SLOTS:
34 Q_SCRIPTABLE void ScanDevices();
35 Q_SCRIPTABLE void SetLogging(const QString &level);
36
37private:
38 /* Not part of DBus interface */
39 int m_bearerCounter;
40 int m_modemCounter;
41 QMap<QDBusObjectPath, Bearer *> m_bearers;
42 QMap<QDBusObjectPath, Modem *> m_modems;
43 ObjectManager *m_objectManager;
44};
45
46#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_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.