ModemManagerQt

messaginginterface.h
1/*
2 * This file was generated by qdbusxml2cpp version 0.7
3 * Command line was: qdbusxml2cpp -N -m -i generictypes.h -p messaginginterface \
4 * /home/jgrulich/development/projects/libmm-qt/dbus/introspection/org.freedesktop.ModemManager1.Modem.Messaging.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_MESSAGINGINTERFACE_H
13#define MODEMMANAGERQT_MESSAGINGINTERFACE_H
14
15#include "generictypes.h"
16#include "generictypes_p.h"
17#include <QDBusAbstractInterface>
18#include <QDBusPendingReply>
19#include <QList>
20#include <QObject>
21#include <QString>
22#include <QVariant>
23
24/*
25 * Proxy class for interface org.freedesktop.ModemManager1.Modem.Messaging
26 */
27class OrgFreedesktopModemManager1ModemMessagingInterface : public QDBusAbstractInterface
28{
30public:
31 static inline const char *staticInterfaceName()
32#ifdef MMQT_STATIC
33 {
34 return "org.kde.fakemodem.Modem.Messaging";
35 }
36#else
37 {
38 return "org.freedesktop.ModemManager1.Modem.Messaging";
39 }
40#endif
41public:
42 OrgFreedesktopModemManager1ModemMessagingInterface(const QString &service,
43 const QString &path,
45 QObject *parent = nullptr);
46
47 ~OrgFreedesktopModemManager1ModemMessagingInterface() override;
48
49 Q_PROPERTY(uint DefaultStorage READ defaultStorage)
50 inline uint defaultStorage() const
51 {
52 return qvariant_cast<uint>(property("DefaultStorage"));
53 }
54
55 Q_PROPERTY(QList<QDBusObjectPath> Messages READ messages)
56 inline QList<QDBusObjectPath> messages() const
57 {
58 return qvariant_cast<QList<QDBusObjectPath>>(property("Messages"));
59 }
60
61 Q_PROPERTY(ModemManager::UIntList SupportedStorages READ supportedStorages)
62 inline ModemManager::UIntList supportedStorages() const
63 {
64 return qvariant_cast<ModemManager::UIntList>(property("SupportedStorages"));
65 }
66
67public Q_SLOTS: // METHODS
68 inline QDBusPendingReply<QDBusObjectPath> Create(const QVariantMap &properties)
69 {
70 QList<QVariant> argumentList;
71 argumentList << QVariant::fromValue(properties);
72 return asyncCallWithArgumentList(QLatin1String("Create"), argumentList);
73 }
74
75 inline QDBusPendingReply<> Delete(const QDBusObjectPath &path)
76 {
77 QList<QVariant> argumentList;
78 argumentList << QVariant::fromValue(path);
79 return asyncCallWithArgumentList(QLatin1String("Delete"), argumentList);
80 }
81
83 {
84 QList<QVariant> argumentList;
85 return asyncCallWithArgumentList(QLatin1String("List"), argumentList);
86 }
87
88Q_SIGNALS: // SIGNALS
89 void Added(const QDBusObjectPath &path, bool received);
90 void Deleted(const QDBusObjectPath &path);
91};
92
93#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 Mon Nov 18 2024 12:15:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.