2
Copyright 2008 Will Stephenson <wstephenson@kde.org>
3
Copyright 2010 Lamarque Souza <lamarque@gmail.com>
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public License as
7
published by the Free Software Foundation; either version 2 of
8
the License or (at your option) version 3 or any later version
9
accepted by the membership of KDE e.V. (or its successor approved
10
by the membership of KDE e.V.), which shall act as a proxy
11
defined in Section 14 of version 3 of the license.
13
This program 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
16
GNU General Public License for more details.
18
You should have received a copy of the GNU General Public License
19
along with this program. If not, see <http://www.gnu.org/licenses/>.
22
#ifndef MM04_MODEMGSMSMSINTERFACE_H
23
#define MM04_MODEMGSMSMSINTERFACE_H
25
#include "modeminterface.h"
26
#include "solid/control/ifaces/modemgsmsmsinterface.h"
27
#include "dbus/generic-types.h"
29
class MMModemGsmSmsInterfacePrivate;
31
class KDE_EXPORT MMModemGsmSmsInterface : public MMModemInterface, virtual public Solid::Control::Ifaces::ModemGsmSmsInterface
34
Q_DECLARE_PRIVATE(MMModemGsmSmsInterface)
35
Q_INTERFACES(Solid::Control::Ifaces::ModemGsmSmsInterface)
38
MMModemGsmSmsInterface(const QString & path, MMModemManager * manager, QObject * parent);
39
~MMModemGsmSmsInterface();
41
void deleteSms(const int index);
42
QVariantMap get(const int index);
44
void setFormat(const int format);
46
QList<QVariantMap> list();
47
void save(const QVariantMap & properties);
48
void send(const QVariantMap & properties);
49
void sendFromStorage(const int index);
50
void setIndication(const int mode, const int mt, const int bm, const int ds, const int brf);
53
void smsReceived(int index, bool complete);
54
void completed(int index, bool completed);