ModemManagerQt

omainterface.h
1/*
2 * This file was generated by qdbusxml2cpp version 0.7
3 * Command line was: qdbusxml2cpp -N -m -i generictypes.h -p omainterface \
4 * /home/jgrulich/development/projects/libmm-qt/dbus/introspection/org.freedesktop.ModemManager1.Modem.Oma.xml
5 *
6 * qdbusxml2cpp is Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
7 *
8 * This is an auto-generated file.
9 * Do not edit! All changes made to it will be lost.
10 */
11
12#ifndef MODEMMANAGERQT_OMAINTERFACE_H
13#define MODEMMANAGERQT_OMAINTERFACE_H
14
15#include "generictypes.h"
16#include <QDBusAbstractInterface>
17#include <QDBusPendingReply>
18#include <QList>
19#include <QObject>
20#include <QString>
21#include <QVariant>
22
23/*
24 * Proxy class for interface org.freedesktop.ModemManager1.Modem.Oma
25 */
26class OrgFreedesktopModemManager1ModemOmaInterface : public QDBusAbstractInterface
27{
29public:
30 static inline const char *staticInterfaceName()
31#ifdef MMQT_STATIC
32 {
33 return "org.kde.fakemodem.Modem.Oma";
34 }
35#else
36 {
37 return "org.freedesktop.ModemManager1.Modem.Oma";
38 }
39#endif
40public:
41 OrgFreedesktopModemManager1ModemOmaInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
42
43 ~OrgFreedesktopModemManager1ModemOmaInterface() override;
44
45 Q_PROPERTY(uint Features READ features)
46 inline uint features() const
47 {
48 return qvariant_cast<uint>(property("Features"));
49 }
50
51 Q_PROPERTY(ModemManager::OmaSessionTypes PendingNetworkInitiatedSessions READ pendingNetworkInitiatedSessions)
52 inline ModemManager::OmaSessionTypes pendingNetworkInitiatedSessions() const
53 {
54 return qvariant_cast<ModemManager::OmaSessionTypes>(property("PendingNetworkInitiatedSessions"));
55 }
56
57 Q_PROPERTY(int SessionState READ sessionState)
58 inline int sessionState() const
59 {
60 return qvariant_cast<int>(property("SessionState"));
61 }
62
63 Q_PROPERTY(uint SessionType READ sessionType)
64 inline uint sessionType() const
65 {
66 return qvariant_cast<uint>(property("SessionType"));
67 }
68
69public Q_SLOTS: // METHODS
70 inline QDBusPendingReply<> AcceptNetworkInitiatedSession(uint session_id, bool accept)
71 {
72 QList<QVariant> argumentList;
73 argumentList << QVariant::fromValue(session_id) << QVariant::fromValue(accept);
74 return asyncCallWithArgumentList(QLatin1String("AcceptNetworkInitiatedSession"), argumentList);
75 }
76
77 inline QDBusPendingReply<> CancelSession()
78 {
79 QList<QVariant> argumentList;
80 return asyncCallWithArgumentList(QLatin1String("CancelSession"), argumentList);
81 }
82
83 inline QDBusPendingReply<> Setup(uint features)
84 {
85 QList<QVariant> argumentList;
86 argumentList << QVariant::fromValue(features);
87 return asyncCallWithArgumentList(QLatin1String("Setup"), argumentList);
88 }
89
90 inline QDBusPendingReply<> StartClientInitiatedSession(uint session_type)
91 {
92 QList<QVariant> argumentList;
93 argumentList << QVariant::fromValue(session_type);
94 return asyncCallWithArgumentList(QLatin1String("StartClientInitiatedSession"), argumentList);
95 }
96
97Q_SIGNALS: // SIGNALS
98 void SessionStateChanged(int old_session_state, int new_session_state, uint session_state_failed_reason);
99};
100
101#endif
QDBusPendingCall asyncCallWithArgumentList(const QString &method, const QList< QVariant > &args)
QDBusConnection connection() const const
QString path() const const
QString service() const const
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
QVariant property(const char *name) const const
QVariant fromValue(T &&value)
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.