2
Copyright 2008,2011 Will Stephenson <wstephenson@kde.org>
3
Copyright 2010-2011 Lamarque Souza <lamarque@kde.org>
4
Copyright 2013 Lukas Tinkl <ltinkl@redhat.com>
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) version 3, or any
10
later version accepted by the membership of KDE e.V. (or its
11
successor approved by the membership of KDE e.V.), which shall
12
act as a proxy defined in Section 6 of version 3 of the license.
14
This library is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
Lesser General Public License for more details.
19
You should have received a copy of the GNU Lesser General Public
20
License along with this library. If not, see <http://www.gnu.org/licenses/>.
23
#ifndef MODEMMANAGER_MODEMSIMCARDINTERFACE_H
24
#define MODEMMANAGER_MODEMSIMCARDINTERFACE_H
26
#include "ModemManagerQt-export.h"
29
#include <QSharedPointer>
30
#include <QDBusPendingReply>
32
class ModemSimCardInterfacePrivate;
34
namespace ModemManager
36
class MODEMMANAGERQT_EXPORT ModemSimCardInterface : public QObject
39
Q_DECLARE_PRIVATE(ModemSimCardInterface)
42
typedef QSharedPointer<ModemSimCardInterface> Ptr;
43
typedef QList<Ptr> List;
45
explicit ModemSimCardInterface(const QString &path, QObject *parent = 0);
46
~ModemSimCardInterface();
49
QString simIdentifier() const;
51
QString operatorIdentifier() const;
52
QString operatorName() const;
55
QDBusPendingReply<> sendPin(const QString &pin);
56
QDBusPendingReply<> sendPuk(const QString &puk, const QString &pin);
57
QDBusPendingReply<> enablePin(const QString &pin, bool enabled);
58
QDBusPendingReply<> changePin(const QString &oldPin, const QString &newPin);
61
ModemSimCardInterface * d_ptr;
66
void propertiesChanged(const QString &interface, const QVariantMap &properties);
69
} // namespace ModemManager