2
Copyright 2013 Anant Kamath <kamathanant@gmail.com>
3
Copyright 2013 Lukas Tinkl <ltinkl@redhat.com>
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License as published by the Free Software Foundation; either
8
version 2.1 of the License, or (at your option) version 3, or any
9
later version accepted by the membership of KDE e.V. (or its
10
successor approved by the membership of KDE e.V.), which shall
11
act as a proxy defined in Section 6 of version 3 of the license.
13
This library is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
Lesser General Public License for more details.
18
You should have received a copy of the GNU Lesser General Public
19
License along with this library. If not, see <http://www.gnu.org/licenses/>.
22
#ifndef MODEMMANAGER_MODEMMESSAGING_H
23
#define MODEMMANAGER_MODEMMESSAGING_H
25
#include "ModemManagerQt-export.h"
28
#include <QSharedPointer>
31
#include "generic-types.h"
32
#include "interface.h"
34
class ModemMessagingPrivate;
36
namespace ModemManager
38
class MODEMMANAGERQT_EXPORT ModemMessaging : public Interface
41
Q_DECLARE_PRIVATE(ModemMessaging)
45
explicit ModemMessaging(const QString &path, QObject *parent = 0);
49
QList<MMSmsStorage> supportedStorages() const;
50
MMSmsStorage defaultStorage() const;
54
* List all SMS messages
56
QList<QDBusObjectPath> listMessages();
59
* Create a new SMS message
61
QDBusPendingReply<QDBusObjectPath> createMessage(const QVariantMap &properties);
64
* Delete an SMS message
66
QDBusPendingReply<> deleteMessage(const QDBusObjectPath &path);
69
* Create a new Sms object for a particular message
71
ModemManager::Sms::Ptr createSms(const QDBusObjectPath &path);
74
void onPropertiesChanged(const QString &interface, const QVariantMap &changedProperties, const QStringList &invalidatedProps);
75
void onMessageAdded(const QDBusObjectPath &path, bool received);
76
void onMessageDeleted(const QDBusObjectPath &path);
79
void messageAdded(const QDBusObjectPath &path, bool received);
80
void messageDeleted(const QDBusObjectPath &path);
83
} // namespace ModemManager