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 proxy
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_MODEMMANAGER_H
23
#define MM04_MODEMMANAGER_H
25
#include "solid/control/ifaces/modemmanager.h"
26
#include <QDBusObjectPath>
27
#include <kdemacros.h>
29
class MMModemManagerPrivate;
31
class KDE_EXPORT MMModemManager : public Solid::Control::Ifaces::ModemManager
34
Q_DECLARE_PRIVATE(MMModemManager)
35
Q_INTERFACES(Solid::Control::Ifaces::ModemManager)
38
static const QString DBUS_SERVICE;
39
static const QString DBUS_DAEMON_PATH;
40
static const QString DBUS_USER_SETTINGS_PATH;
41
static const QString DBUS_SYSTEM_SETTINGS_PATH;
43
MMModemManager(QObject * parent, const QVariantList & args);
45
Solid::Networking::Status status() const;
46
QStringList modemInterfaces() const;
47
QObject *createModemInterface(const QString &udi, const Solid::Control::ModemInterface::GsmInterfaceType ifaceType);
50
void statusChanged(Solid::Networking::Status status);
51
void modemInterfaceAdded(const QString & udi);
52
void modemInterfaceRemoved(const QString & udi);
55
void deviceAdded(const QDBusObjectPath & device);
56
void deviceRemoved(const QDBusObjectPath & device);
57
void stateChanged(Solid::Networking::Status state);
58
void nameOwnerChanged(QString, QString, QString);
61
MMModemManagerPrivate * d_ptr;