12#ifndef MODEMMANAGERQT_SMSINTERFACE_H
13#define MODEMMANAGERQT_SMSINTERFACE_H
15#include "generictypes.h"
17#include <QDBusAbstractInterface>
18#include <QDBusPendingReply>
31 static inline const char *staticInterfaceName()
34 return "org.kde.fakemodem.Sms";
38 return "org.freedesktop.ModemManager1.Sms";
44 ~OrgFreedesktopModemManager1SmsInterface()
override;
47 inline int smsClass()
const
49 return qvariant_cast<int>(
property(
"Class"));
53 inline QByteArray data()
const
55 return qvariant_cast<QByteArray>(
property(
"Data"));
58 Q_PROPERTY(
bool DeliveryReportRequest READ deliveryReportRequest)
59 inline bool deliveryReportRequest()
const
61 return qvariant_cast<bool>(
property(
"DeliveryReportRequest"));
64 Q_PROPERTY(uint DeliveryState READ deliveryState)
65 inline uint deliveryState()
const
67 return qvariant_cast<uint>(
property(
"DeliveryState"));
70 Q_PROPERTY(QString DischargeTimestamp READ dischargeTimestamp)
71 inline QString dischargeTimestamp()
const
73 return qvariant_cast<QString>(
property(
"DischargeTimestamp"));
76 Q_PROPERTY(uint MessageReference READ messageReference)
77 inline uint messageReference()
const
79 return qvariant_cast<uint>(
property(
"MessageReference"));
83 inline QString number()
const
85 return qvariant_cast<QString>(
property(
"Number"));
89 inline uint pduType()
const
91 return qvariant_cast<uint>(
property(
"PduType"));
95 inline QString SMSC()
const
97 return qvariant_cast<QString>(
property(
"SMSC"));
100 Q_PROPERTY(uint ServiceCategory READ serviceCategory)
101 inline uint serviceCategory()
const
103 return qvariant_cast<uint>(
property(
"ServiceCategory"));
107 inline uint state()
const
109 return qvariant_cast<uint>(
property(
"State"));
113 inline uint storage()
const
115 return qvariant_cast<uint>(
property(
"Storage"));
118 Q_PROPERTY(uint TeleserviceId READ teleserviceId)
119 inline uint teleserviceId()
const
121 return qvariant_cast<uint>(
property(
"TeleserviceId"));
125 inline QString text()
const
127 return qvariant_cast<QString>(
property(
"Text"));
131 inline QString timestamp()
const
133 return qvariant_cast<QString>(
property(
"Timestamp"));
136 Q_PROPERTY(ModemManager::ValidityPair Validity READ validity)
137 inline ModemManager::ValidityPair validity()
const
139 return qvariant_cast<ModemManager::ValidityPair>(
property(
"Validity"));
143 inline QDBusPendingReply<> Send()
145 QList<QVariant> argumentList;
149 inline QDBusPendingReply<> Store(uint storage)
151 QList<QVariant> argumentList;
QDBusPendingCall asyncCallWithArgumentList(const QString &method, const QList< QVariant > &args)
QDBusConnection connection() const const
QString path() const const
QString service() const const
QObject * parent() const const
QVariant property(const char *name) const const
QVariant fromValue(T &&value)