ModemManagerQt

fakemodem/modem3gpp.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_MODEM_3GPP_H
8#define MODEMMANAGERQT_FAKE_MODEM_MODEM_3GPP_H
9
10#include "generictypes.h"
11
12#include <QDBusAbstractAdaptor>
13
14class Modem3gpp : public QDBusAbstractAdaptor
15{
17 Q_CLASSINFO("D-Bus Interface", "org.kde.fakemodem.Modem.Modem3gpp")
18public:
19 explicit Modem3gpp(QObject *parent = nullptr);
20 ~Modem3gpp() override;
21
22 Q_PROPERTY(uint EnabledFacilityLocks READ enabledFacilityLocks)
23 Q_PROPERTY(QString Imei READ imei)
24 Q_PROPERTY(QString OperatorCode READ operatorCode)
25 Q_PROPERTY(QString OperatorName READ operatorName)
26 Q_PROPERTY(uint RegistrationState READ registrationState)
27 Q_PROPERTY(uint SubscriptionState READ subscriptionState)
28
29 uint enabledFacilityLocks() const;
30 QString imei() const;
31 QString operatorCode() const;
32 QString operatorName() const;
33 uint registrationState() const;
34 uint subscriptionState() const;
35
36 /* Not part of dbus interface */
37 void setModemPath(const QString &path);
38 void setEnableNotifications(bool enable);
39 void setEnabledFacilityLocks(uint enabledFacilitiesLocks);
40 void setImei(const QString &imei);
41 void setOperatorCode(const QString &operatorCode);
42 void setOperatorName(const QString &operatorName);
43 void setRegistrationState(uint registrationState);
44 void setSubscriptionState(uint subscriptionState);
45
46 QVariantMap toMap() const;
47
48public Q_SLOTS:
49 Q_SCRIPTABLE void Register(const QString &operator_id);
50 Q_SCRIPTABLE ModemManager::QVariantMapList Scan();
51
52private:
53 QString m_modemPath;
54 bool m_enabledNotifications;
55 uint m_enabledFacilityLocks;
56 QString m_imei;
57 QString m_operatorCode;
58 QString m_operatorName;
59 uint m_registrationState;
60 uint m_subscriptionState;
61};
62
63#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_PROPERTY(...)
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:51 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.