2
Copyright 2008 Will Stephenson <wstephenson@kde.org>
3
Copyright 2010 Lamarque Souza <lamarque@gmail.com>
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 prox
11
defined in Section 14 of version 3 of the license.
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.
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/>.
22
#ifndef MM04_MODEMINTERFACE_H
23
#define MM04_MODEMINTERFACE_H
25
#include "solid/control/solid_control_export.h"
26
#include "solid/control/ifaces/modeminterface.h"
28
class MMModemInterfacePrivate;
31
class KDE_EXPORT MMModemInterface : public QObject, virtual public Solid::Control::Ifaces::ModemInterface
34
Q_DECLARE_PRIVATE(MMModemInterface)
35
Q_INTERFACES(Solid::Control::Ifaces::ModemInterface)
36
Q_PROPERTY(QString udi READ udi)
39
MMModemInterface( const QString & path, MMModemManager * manager, QObject * parent );
40
MMModemInterface( MMModemInterfacePrivate &dd, MMModemManager * manager, QObject * parent );
41
virtual ~MMModemInterface();
45
// From org.freedesktop.ModemManager.Modem
46
void enable(const bool enable);
47
void connectModem(const QString & number);
48
void disconnectModem();
49
Solid::Control::ModemInterface::Ip4ConfigType getIp4Config();
50
Solid::Control::ModemInterface::InfoType getInfo();
52
QString device() const;
53
QString masterDevice() const;
54
QString driver() const;
55
Solid::Control::ModemInterface::Type type() const;
57
QString unlockRequired() const;
58
Solid::Control::ModemInterface::Method ipMethod() const;
60
// From org.freedesktop.ModemManager.Modem.Simple
61
void connectModem(const QVariantMap & properties);
62
QVariantMap getStatus();
64
void propertiesChanged(const QString & interface, const QVariantMap & properties);
67
void deviceChanged(const QString & device);
68
void masterDeviceChanged(const QString & masterDevice);
69
void driverChanged(const QString & driver);
70
void typeChanged(const Solid::Control::ModemInterface::Type type);
71
void enabledChanged(const bool enabled);
72
void unlockRequiredChanged(const QString & codeRequired);
73
void ipMethodChanged(const Solid::Control::ModemInterface::Method ipMethod);
79
MMModemInterfacePrivate * d_ptr;