ModemManagerQt

fakemodem/sms.h
1/*
2 SPDX-FileCopyrightText: 2015 Jan Grulich <jgrulich@redhat.com>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef MODEMMANAGERQT_FAKE_MODEM_SMS_H
8#define MODEMMANAGERQT_FAKE_MODEM_SMS_H
9
10#include "generictypes.h"
11
12#include <QObject>
13
14class Sms : public QObject
15{
17 Q_CLASSINFO("D-Bus Interface", "org.kde.fakemodem.Sms")
18public:
19 explicit Sms(QObject *parent = nullptr);
20 ~Sms() override;
21
22 Q_PROPERTY(int SmsClass READ smsClass)
23 Q_PROPERTY(QByteArray Data READ data)
24 Q_PROPERTY(bool DeliveryReportRequest READ deliveryReportRequest)
25 Q_PROPERTY(uint DeliveryState READ deliveryState)
26 Q_PROPERTY(QString DischargeTimestamp READ dischargeTimestamp)
27 Q_PROPERTY(uint MessageReference READ messageReference)
28 Q_PROPERTY(QString Number READ number)
29 Q_PROPERTY(uint PduType READ pduType)
30 Q_PROPERTY(QString SMSC READ SMSC)
31 Q_PROPERTY(uint ServiceCategory READ serviceCategory)
32 Q_PROPERTY(uint State READ state)
33 Q_PROPERTY(uint Storage READ storage)
34 Q_PROPERTY(uint TeleserviceId READ teleserviceId)
35 Q_PROPERTY(QString Text READ text)
36 Q_PROPERTY(QString Timestamp READ timestamp)
37 Q_PROPERTY(ModemManager::ValidityPair Validity READ validity)
38
39 int smsClass() const;
40 QByteArray data() const;
41 bool deliveryReportRequest() const;
42 uint deliveryState() const;
43 QString dischargeTimestamp() const;
44 uint messageReference() const;
45 QString number() const;
46 uint pduType() const;
47 QString SMSC() const;
48 uint serviceCategory() const;
49 uint state() const;
50 uint storage() const;
51 uint teleserviceId() const;
52 QString text() const;
53 QString timestamp() const;
54 ModemManager::ValidityPair validity() const;
55
56 /* Not part of dbus interface */
57 QString smsPath() const;
58 void setSmsPath(const QString &path);
59 void setEnableNotifications(bool enable);
60 void setSmsClass(int smsClass);
61 void setData(const QByteArray &data);
62 void setDeliveryReportRequest(bool deliveryReportRequest);
63 void setDeliveryState(uint state);
64 void setDischargeTimestamp(const QString &timestamp);
65 void setMessageReference(uint messageReference);
66 void setNumber(const QString &number);
67 void setPduType(uint pduType);
68 void setSMSC(const QString &smsc);
69 void setServiceCategory(uint serviceCategory);
70 void setState(uint state);
71 void setStorage(uint storage);
72 void setTeleserviceId(uint teleserviceId);
73 void setText(const QString &text);
74 void setTimestamp(const QString &timestamp);
75 void setValidity(const ModemManager::ValidityPair &validity);
76
77public Q_SLOTS:
78 Q_SCRIPTABLE void Send();
79 Q_SCRIPTABLE void Store(uint storage);
80
81private:
82 QString m_smsPath;
83 bool m_enabledNotifications;
84 int m_smsClass;
85 QByteArray m_data;
86 bool m_deliveryReportRequest;
87 uint m_deliveryState;
88 QString m_dischargeTimestamp;
89 uint m_messageReference;
90 QString m_number;
91 uint m_pduType;
92 QString m_SMSC;
93 uint m_serviceCategory;
94 uint m_state;
95 uint m_storage;
96 uint m_teleserviceId;
97 QString m_text;
98 QString m_timestamp;
99 ModemManager::ValidityPair m_validity;
100};
101
102#endif
This namespace allows to query the underlying system to discover the available modem interfaces respo...
Definition bearer.cpp:20
Q_CLASSINFO(Name, Value)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SLOTSQ_SLOTS
QObject * parent() const const
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.