File indexing completed on 2024-04-28 03:59:47
0001 /* 0002 * This file was generated by qdbusxml2cpp version 0.8 0003 * Command line was: qdbusxml2cpp -N -m -i generictypes.h -p callinterface ./introspection/org.freedesktop.ModemManager1.Call.xml 0004 * 0005 * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. 0006 * 0007 * This is an auto-generated file. 0008 * Do not edit! All changes made to it will be lost. 0009 */ 0010 0011 #ifndef CALLINTERFACE_H 0012 #define CALLINTERFACE_H 0013 0014 #include "generictypes.h" 0015 #include <QDBusAbstractInterface> 0016 #include <QDBusPendingReply> 0017 #include <QList> 0018 #include <QObject> 0019 #include <QString> 0020 #include <QVariant> 0021 0022 /* 0023 * Proxy class for interface org.freedesktop.ModemManager1.Call 0024 */ 0025 class OrgFreedesktopModemManager1CallInterface : public QDBusAbstractInterface 0026 { 0027 Q_OBJECT 0028 public: 0029 static inline const char *staticInterfaceName() 0030 { 0031 return "org.freedesktop.ModemManager1.Call"; 0032 } 0033 0034 public: 0035 OrgFreedesktopModemManager1CallInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); 0036 0037 ~OrgFreedesktopModemManager1CallInterface() override; 0038 0039 Q_PROPERTY(int Direction READ direction) 0040 inline int direction() const 0041 { 0042 return qvariant_cast<int>(property("Direction")); 0043 } 0044 0045 Q_PROPERTY(QString Number READ number) 0046 inline QString number() const 0047 { 0048 return qvariant_cast<QString>(property("Number")); 0049 } 0050 0051 Q_PROPERTY(int State READ state) 0052 inline int state() const 0053 { 0054 return qvariant_cast<int>(property("State")); 0055 } 0056 0057 Q_PROPERTY(int StateReason READ stateReason) 0058 inline int stateReason() const 0059 { 0060 return qvariant_cast<int>(property("StateReason")); 0061 } 0062 0063 public Q_SLOTS: // METHODS 0064 inline QDBusPendingReply<> Accept() 0065 { 0066 QList<QVariant> argumentList; 0067 return asyncCallWithArgumentList(QStringLiteral("Accept"), argumentList); 0068 } 0069 0070 inline QDBusPendingReply<> Hangup() 0071 { 0072 QList<QVariant> argumentList; 0073 return asyncCallWithArgumentList(QStringLiteral("Hangup"), argumentList); 0074 } 0075 0076 inline QDBusPendingReply<> SendDtmf(const QString &dtmf) 0077 { 0078 QList<QVariant> argumentList; 0079 argumentList << QVariant::fromValue(dtmf); 0080 return asyncCallWithArgumentList(QStringLiteral("SendDtmf"), argumentList); 0081 } 0082 0083 inline QDBusPendingReply<> Start() 0084 { 0085 QList<QVariant> argumentList; 0086 return asyncCallWithArgumentList(QStringLiteral("Start"), argumentList); 0087 } 0088 0089 Q_SIGNALS: // SIGNALS 0090 void DtmfReceived(const QString &dtmf); 0091 void StateChanged(int oldState, int newState, uint reason); 0092 }; 0093 0094 #endif