File indexing completed on 2024-05-12 12:00:15

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 <QList>
0016 #include <QObject>
0017 #include <QString>
0018 #include <QVariant>
0019 
0020 /*
0021  * Proxy class for interface org.freedesktop.ModemManager1.Call
0022  */
0023 class OrgFreedesktopModemManager1CallInterface : public QDBusAbstractInterface
0024 {
0025     Q_OBJECT
0026 public:
0027     static inline const char *staticInterfaceName()
0028     {
0029         return "org.freedesktop.ModemManager1.Call";
0030     }
0031 
0032 public:
0033     OrgFreedesktopModemManager1CallInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
0034 
0035     ~OrgFreedesktopModemManager1CallInterface() override;
0036 
0037     Q_PROPERTY(int Direction READ direction)
0038     inline int direction() const
0039     {
0040         return qvariant_cast<int>(property("Direction"));
0041     }
0042 
0043     Q_PROPERTY(QString Number READ number)
0044     inline QString number() const
0045     {
0046         return qvariant_cast<QString>(property("Number"));
0047     }
0048 
0049     Q_PROPERTY(int State READ state)
0050     inline int state() const
0051     {
0052         return qvariant_cast<int>(property("State"));
0053     }
0054 
0055     Q_PROPERTY(int StateReason READ stateReason)
0056     inline int stateReason() const
0057     {
0058         return qvariant_cast<int>(property("StateReason"));
0059     }
0060 
0061 public Q_SLOTS: // METHODS
0062     inline QDBusPendingReply<> Accept()
0063     {
0064         QList<QVariant> argumentList;
0065         return asyncCallWithArgumentList(QStringLiteral("Accept"), argumentList);
0066     }
0067 
0068     inline QDBusPendingReply<> Hangup()
0069     {
0070         QList<QVariant> argumentList;
0071         return asyncCallWithArgumentList(QStringLiteral("Hangup"), argumentList);
0072     }
0073 
0074     inline QDBusPendingReply<> SendDtmf(const QString &dtmf)
0075     {
0076         QList<QVariant> argumentList;
0077         argumentList << QVariant::fromValue(dtmf);
0078         return asyncCallWithArgumentList(QStringLiteral("SendDtmf"), argumentList);
0079     }
0080 
0081     inline QDBusPendingReply<> Start()
0082     {
0083         QList<QVariant> argumentList;
0084         return asyncCallWithArgumentList(QStringLiteral("Start"), argumentList);
0085     }
0086 
0087 Q_SIGNALS: // SIGNALS
0088     void DtmfReceived(const QString &dtmf);
0089     void StateChanged(int oldState, int newState, uint reason);
0090 };
0091 
0092 #endif