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

« back to all changes in this revision

Viewing changes to solid/modemmanager-0.4/manager.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_MODEMMANAGER_H
 
23
#define MM04_MODEMMANAGER_H
 
24
 
 
25
#include "solid/control/ifaces/modemmanager.h"
 
26
#include <QDBusObjectPath>
 
27
#include <kdemacros.h>
 
28
 
 
29
class MMModemManagerPrivate;
 
30
 
 
31
class KDE_EXPORT MMModemManager : public Solid::Control::Ifaces::ModemManager
 
32
{
 
33
Q_OBJECT
 
34
Q_DECLARE_PRIVATE(MMModemManager)
 
35
Q_INTERFACES(Solid::Control::Ifaces::ModemManager)
 
36
 
 
37
public:
 
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;
 
42
 
 
43
    MMModemManager(QObject * parent, const QVariantList & args);
 
44
    ~MMModemManager();
 
45
    Solid::Networking::Status status() const;
 
46
    QStringList modemInterfaces() const;
 
47
    QObject *createModemInterface(const QString &udi, const Solid::Control::ModemInterface::GsmInterfaceType ifaceType);
 
48
 
 
49
Q_SIGNALS:
 
50
    void statusChanged(Solid::Networking::Status status);
 
51
    void modemInterfaceAdded(const QString & udi);
 
52
    void modemInterfaceRemoved(const QString & udi);
 
53
 
 
54
protected Q_SLOTS:
 
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);
 
59
 
 
60
private:
 
61
    MMModemManagerPrivate * d_ptr;
 
62
};
 
63
 
 
64
#endif
 
65