~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to solid/modemmanager-0.4/modemgsmcardinterface.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright 2008 Will Stephenson <wstephenson@kde.org>
 
3
Copyright 2010 Lamarque Souza <lamarque@gmail.com>
 
4
 
 
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.
 
12
 
 
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.
 
17
 
 
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/>.
 
20
*/
 
21
 
 
22
#ifndef MM04_MODEMGSMCARDINTERFACE_H
 
23
#define MM04_MODEMGSMCARDINTERFACE_H
 
24
 
 
25
#include "modeminterface.h"
 
26
#include "solid/control/ifaces/modemgsmcardinterface.h"
 
27
#include "dbus/generic-types.h"
 
28
 
 
29
class MMModemGsmCardInterfacePrivate;
 
30
 
 
31
class KDE_EXPORT MMModemGsmCardInterface : public MMModemInterface, virtual public Solid::Control::Ifaces::ModemGsmCardInterface
 
32
{
 
33
Q_OBJECT
 
34
Q_DECLARE_PRIVATE(MMModemGsmCardInterface)
 
35
Q_INTERFACES(Solid::Control::Ifaces::ModemGsmCardInterface)
 
36
 
 
37
public:
 
38
    MMModemGsmCardInterface(const QString & path, MMModemManager * manager, QObject * parent);
 
39
    ~MMModemGsmCardInterface();
 
40
 
 
41
    QString getImei();
 
42
    QString getImsi();
 
43
    QDBusPendingReply<> sendPuk(const QString & puk, const QString & pin);
 
44
    QDBusPendingReply<> sendPin(const QString & pin);
 
45
    QDBusPendingReply<> enablePin(const QString & pin, const bool enabled);
 
46
    QDBusPendingReply<> changePin(const QString & oldPin, const QString & newPin);
 
47
 
 
48
    // Properties
 
49
    Solid::Control::ModemInterface::Band getSupportedBands() const;
 
50
    Solid::Control::ModemInterface::Mode getSupportedModes() const;
 
51
public Q_SLOTS:
 
52
    void propertiesChanged(const QString & interface, const QVariantMap & properties);
 
53
Q_SIGNALS:
 
54
    // properties
 
55
    void supportedBandsChanged(const Solid::Control::ModemInterface::Band band);
 
56
    void supportedModesChanged(const Solid::Control::ModemInterface::Mode modes);
 
57
 
 
58
};
 
59
 
 
60
#endif
 
61