ModemManagerQt

fakemodem/modemcdma.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_MODEMCDMA_H
8#define MODEMMANAGERQT_FAKE_MODEM_MODEMCDMA_H
9
10#include "generictypes.h"
11
12#include <QDBusAbstractAdaptor>
13
14class ModemCdma : public QDBusAbstractAdaptor
15{
17 Q_CLASSINFO("D-Bus Interface", "org.kde.fakemodem.Modem.ModemCdma")
18public:
19 explicit ModemCdma(QObject *parent = nullptr);
20 ~ModemCdma() override;
21
22 Q_PROPERTY(uint ActivationState READ activationState)
23 Q_PROPERTY(uint Cdma1xRegistrationState READ cdma1xRegistrationState)
24 Q_PROPERTY(QString Esn READ esn)
25 Q_PROPERTY(uint EvdoRegistrationState READ evdoRegistrationState)
26 Q_PROPERTY(QString Meid READ meid)
27 Q_PROPERTY(uint Nid READ nid)
28 Q_PROPERTY(uint Sid READ sid)
29
30 uint activationState() const;
31 uint cdma1xRegistrationState() const;
32 QString esn() const;
33 uint evdoRegistrationState() const;
34 QString meid() const;
35 uint nid() const;
36 uint sid() const;
37
38 /* Not part of dbus interface */
39 void setModemPath(const QString &path);
40 void setEnableNotifications(bool enable);
41 void setActivationState(uint state);
42 void setCdma1xRegistrationState(uint state);
43 void setEsn(const QString &esn);
44 void setEvdoRegistrationState(uint state);
45 void setMeid(const QString &meid);
46 void setNid(uint nid);
47 void setSid(uint sid);
48
49 QVariantMap toMap() const;
50
51public Q_SLOTS:
52 void Activate(const QString &carrier_code);
53 void ActivateManual(const QVariantMap &properties);
54
55Q_SIGNALS: // SIGNALS
56 void ActivationStateChanged(uint activation_state, uint activation_error, const QVariantMap &status_changes);
57
58private:
59 QString m_modemPath;
60 bool m_enabledNotifications;
61 uint m_activationState;
62 uint m_cdma1xRegistrationState;
63 QString m_esn;
64 uint m_evdoRegistrationState;
65 QString m_meid;
66 uint m_nid;
67 uint m_sid;
68};
69
70#endif
Q_CLASSINFO(Name, Value)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
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 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.