ModemManagerQt

fakemodem/modem3gppussd.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_USSD_H
8#define MODEMMANAGERQT_FAKE_MODEM_MODEM_3GPP_USSD_H
9
10#include "generictypes.h"
11
12#include <QDBusAbstractAdaptor>
13
14class Modem3gppUssd : public QDBusAbstractAdaptor
15{
17 Q_CLASSINFO("D-Bus Interface", "org.kde.fakemodem.Modem.Modem3gpp.Ussd")
18public:
19 explicit Modem3gppUssd(QObject *parent = nullptr);
20 ~Modem3gppUssd() override;
21
22 Q_PROPERTY(QString NetworkNotification READ networkNotification)
23 Q_PROPERTY(QString NetworkRequest READ networkRequest)
24 Q_PROPERTY(uint State READ state)
25
26 QString networkNotification() const;
27 QString networkRequest() const;
28 uint state() const;
29
30 /* Not part of dbus interface */
31 void setModemPath(const QString &path);
32 void setEnableNotifications(bool enable);
33 void setNetworkNotification(const QString &networkNotification);
34 void setNetworkRequest(const QString &networkRequest);
35 void setState(uint state);
36
37 QVariantMap toMap() const;
38
39public Q_SLOTS:
40 Q_SCRIPTABLE void Cancel();
41 Q_SCRIPTABLE QString Initiate(const QString &command);
42 Q_SCRIPTABLE QString Respond(const QString &response);
43
44private:
45 QString m_modemPath;
46 bool m_enabledNotifications;
47 QString m_networkNotification;
48 QString m_networkRequest;
49 uint m_state;
50};
51
52#endif
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.