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>
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 MODEMMANAGERQT_MODEMCDMA_H
24
#define MODEMMANAGERQT_MODEMCDMA_H
26
#include "ModemManagerQt-export.h"
29
#include <QSharedPointer>
32
#include "generic-types.h"
33
#include "interface.h"
35
class ModemCdmaPrivate;
37
namespace ModemManager {
39
class MODEMMANAGERQT_EXPORT ModemCdma : public Interface
42
Q_DECLARE_PRIVATE(ModemCdma)
44
typedef QSharedPointer<ModemCdma> Ptr;
45
typedef QList<Ptr> List;
47
explicit ModemCdma(const QString &path, QObject *parent = 0);
51
void activate(const QString &carrierCode);
52
void activateManual(const QVariantMap &properties);
55
MMModemCdmaActivationState activationState() const;
60
MMModemCdmaRegistrationState cdma1xRegistrationState() const;
61
MMModemCdmaRegistrationState evdoRegistrationState() const;
64
void onActivationStateChanged(uint activation_state, uint activation_error, const QVariantMap &status_changes);
68
* This signal is emitted when the activation info this network changes
71
void activationStateChanged(MMModemCdmaActivationState state, MMCdmaActivationError error, const QVariantMap &status_changes);
73
} // namespace ModemManager