ModemManagerQt

callinterface.h
1/*
2 * This file was generated by qdbusxml2cpp version 0.8
3 * Command line was: qdbusxml2cpp -N -m -i generictypes.h -p callinterface ./introspection/org.freedesktop.ModemManager1.Call.xml
4 *
5 * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
6 *
7 * This is an auto-generated file.
8 * Do not edit! All changes made to it will be lost.
9 */
10
11#ifndef CALLINTERFACE_H
12#define CALLINTERFACE_H
13
14#include "generictypes.h"
15#include <QDBusAbstractInterface>
16#include <QDBusPendingReply>
17#include <QList>
18#include <QObject>
19#include <QString>
20#include <QVariant>
21
22/*
23 * Proxy class for interface org.freedesktop.ModemManager1.Call
24 */
25class OrgFreedesktopModemManager1CallInterface : public QDBusAbstractInterface
26{
28public:
29 static inline const char *staticInterfaceName()
30 {
31 return "org.freedesktop.ModemManager1.Call";
32 }
33
34public:
35 OrgFreedesktopModemManager1CallInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
36
37 ~OrgFreedesktopModemManager1CallInterface() override;
38
39 Q_PROPERTY(int Direction READ direction)
40 inline int direction() const
41 {
42 return qvariant_cast<int>(property("Direction"));
43 }
44
45 Q_PROPERTY(QString Number READ number)
46 inline QString number() const
47 {
48 return qvariant_cast<QString>(property("Number"));
49 }
50
51 Q_PROPERTY(int State READ state)
52 inline int state() const
53 {
54 return qvariant_cast<int>(property("State"));
55 }
56
57 Q_PROPERTY(int StateReason READ stateReason)
58 inline int stateReason() const
59 {
60 return qvariant_cast<int>(property("StateReason"));
61 }
62
63public Q_SLOTS: // METHODS
64 inline QDBusPendingReply<> Accept()
65 {
66 QList<QVariant> argumentList;
67 return asyncCallWithArgumentList(QStringLiteral("Accept"), argumentList);
68 }
69
70 inline QDBusPendingReply<> Hangup()
71 {
72 QList<QVariant> argumentList;
73 return asyncCallWithArgumentList(QStringLiteral("Hangup"), argumentList);
74 }
75
76 inline QDBusPendingReply<> SendDtmf(const QString &dtmf)
77 {
78 QList<QVariant> argumentList;
79 argumentList << QVariant::fromValue(dtmf);
80 return asyncCallWithArgumentList(QStringLiteral("SendDtmf"), argumentList);
81 }
82
83 inline QDBusPendingReply<> Start()
84 {
85 QList<QVariant> argumentList;
86 return asyncCallWithArgumentList(QStringLiteral("Start"), argumentList);
87 }
88
89Q_SIGNALS: // SIGNALS
90 void DtmfReceived(const QString &dtmf);
91 void StateChanged(int oldState, int newState, uint reason);
92};
93
94#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.