~neon/project-neon/libmm-qt

« back to all changes in this revision

Viewing changes to modemcdma.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 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 MODEMMANAGERQT_MODEMCDMA_H
 
24
#define MODEMMANAGERQT_MODEMCDMA_H
 
25
 
 
26
#include "ModemManagerQt-export.h"
 
27
 
 
28
#include <QObject>
 
29
#include <QSharedPointer>
 
30
#include <QVariant>
 
31
 
 
32
#include "generic-types.h"
 
33
#include "interface.h"
 
34
 
 
35
class ModemCdmaPrivate;
 
36
 
 
37
namespace ModemManager {
 
38
 
 
39
class MODEMMANAGERQT_EXPORT ModemCdma : public Interface
 
40
{
 
41
    Q_OBJECT
 
42
    Q_DECLARE_PRIVATE(ModemCdma)
 
43
public:
 
44
    typedef QSharedPointer<ModemCdma> Ptr;
 
45
    typedef QList<Ptr> List;
 
46
 
 
47
    explicit ModemCdma(const QString &path, QObject *parent = 0);
 
48
    ~ModemCdma();
 
49
 
 
50
    // methods
 
51
    void activate(const QString &carrierCode);
 
52
    void activateManual(const QVariantMap &properties);
 
53
 
 
54
    // properties
 
55
    MMModemCdmaActivationState activationState() const;
 
56
    QString meid() const;
 
57
    QString esn() const;
 
58
    uint sid() const;
 
59
    uint nid() const;
 
60
    MMModemCdmaRegistrationState cdma1xRegistrationState() const;
 
61
    MMModemCdmaRegistrationState evdoRegistrationState() const;
 
62
 
 
63
private slots:
 
64
    void onActivationStateChanged(uint activation_state, uint activation_error, const QVariantMap &status_changes);
 
65
 
 
66
Q_SIGNALS:
 
67
    /**
 
68
     * This signal is emitted when the activation info this network changes
 
69
     *
 
70
     */
 
71
    void activationStateChanged(MMModemCdmaActivationState state, MMCdmaActivationError error, const QVariantMap &status_changes);
 
72
};
 
73
} // namespace ModemManager
 
74
 
 
75
#endif