~neon/project-neon/libmm-qt

« back to all changes in this revision

Viewing changes to modemgsmcardinterface.h

  • Committer: Jan Grulich
  • Date: 2013-10-06 11:42:12 UTC
  • Revision ID: git-v1:6b330d21e12353005970209902f3e02b2786e265
Rename files to mach classes and dbus interfaces

Update README a little bit

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
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>
5
 
 
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.
13
 
 
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.
18
 
 
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/>.
21
 
*/
22
 
 
23
 
#ifndef MODEMMANAGER_MODEMSIMCARDINTERFACE_H
24
 
#define MODEMMANAGER_MODEMSIMCARDINTERFACE_H
25
 
 
26
 
#include "ModemManagerQt-export.h"
27
 
 
28
 
#include <QObject>
29
 
#include <QSharedPointer>
30
 
#include <QDBusPendingReply>
31
 
 
32
 
class ModemSimCardInterfacePrivate;
33
 
 
34
 
namespace ModemManager
35
 
{
36
 
class MODEMMANAGERQT_EXPORT ModemSimCardInterface : public QObject
37
 
{
38
 
    Q_OBJECT
39
 
    Q_DECLARE_PRIVATE(ModemSimCardInterface)
40
 
 
41
 
public:
42
 
    typedef QSharedPointer<ModemSimCardInterface> Ptr;
43
 
    typedef QList<Ptr> List;
44
 
 
45
 
    explicit ModemSimCardInterface(const QString &path, QObject *parent = 0);
46
 
    ~ModemSimCardInterface();
47
 
 
48
 
    // properties
49
 
    QString simIdentifier() const;
50
 
    QString imsi() const;
51
 
    QString operatorIdentifier() const;
52
 
    QString operatorName() const;
53
 
 
54
 
    // methods
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);
59
 
 
60
 
protected:
61
 
    ModemSimCardInterface * d_ptr;
62
 
#if 0
63
 
Q_SIGNALS:
64
 
 
65
 
private Q_SLOTS:
66
 
    void propertiesChanged(const QString &interface, const QVariantMap &properties);
67
 
#endif
68
 
};
69
 
} // namespace ModemManager
70
 
 
71
 
#endif