File indexing completed on 2024-04-14 03:57:26

0001 /*
0002     SPDX-FileCopyrightText: 2008 Will Stephenson <wstephenson@kde.org>
0003     SPDX-FileCopyrightText: 2010 Lamarque Souza <lamarque@kde.org>
0004     SPDX-FileCopyrightText: 2013 Anant Kamath <kamathanant@gmail.com>
0005     SPDX-FileCopyrightText: 2013 Lukas Tinkl <ltinkl@redhat.com>
0006     SPDX-FileCopyrightText: 2013-2015 Jan Grulich <jgrulich@redhat.com>
0007 
0008     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0009 */
0010 
0011 #ifndef MODEMMANAGER_SMS_P_H
0012 #define MODEMMANAGER_SMS_P_H
0013 
0014 #include "dbus/smsinterface.h"
0015 #include "sms.h"
0016 
0017 #include <QDateTime>
0018 
0019 namespace ModemManager
0020 {
0021 class SmsPrivate : public QObject
0022 {
0023     Q_OBJECT
0024 public:
0025     explicit SmsPrivate(const QString &path, Sms *q);
0026     OrgFreedesktopModemManager1SmsInterface smsIface;
0027 
0028     QString uni;
0029     MMSmsState state;
0030     MMSmsPduType pduType;
0031     QString number;
0032     QString text;
0033     QString smsc;
0034     QByteArray data;
0035     ValidityPair validity;
0036     int smsClass;
0037     bool deliveryReportRequest;
0038     uint messageReference;
0039     QDateTime timestamp;
0040     QDateTime dischargeTimestamp;
0041     MMSmsDeliveryState deliveryState;
0042     MMSmsStorage storage;
0043 #if MM_CHECK_VERSION(1, 2, 0)
0044     MMSmsCdmaServiceCategory serviceCategory;
0045     MMSmsCdmaTeleserviceId teleserviceId;
0046 #endif
0047 
0048     Q_DECLARE_PUBLIC(Sms)
0049     Sms *q_ptr;
0050 private Q_SLOTS:
0051     void onPropertiesChanged(const QString &interface, const QVariantMap &properties, const QStringList &invalidatedProps);
0052 };
0053 
0054 } // namespace ModemManager
0055 
0056 #endif