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

« back to all changes in this revision

Viewing changes to solid/networkmanager-0.7/dbus/nm-manager-clientinterface.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
 * This file was generated by qdbusxml2cpp version 0.7
 
3
 * Command line was: qdbusxml2cpp -N -m -p nm-manager-clientinterface introspection/nm-manager-client.xml
 
4
 *
 
5
 * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
 
6
 *
 
7
 * This is an auto-generated file.
 
8
 * Do not edit! All changes made to it will be lost.
 
9
 */
 
10
 
 
11
#ifndef NM_MANAGER_CLIENTINTERFACE_H
 
12
#define NM_MANAGER_CLIENTINTERFACE_H
 
13
 
 
14
#include <QtCore/QObject>
 
15
#include <QtCore/QByteArray>
 
16
#include <QtCore/QList>
 
17
#include <QtCore/QMap>
 
18
#include <QtCore/QString>
 
19
#include <QtCore/QStringList>
 
20
#include <QtCore/QVariant>
 
21
#include <QtDBus/QtDBus>
 
22
 
 
23
/*
 
24
 * Proxy class for interface org.freedesktop.NetworkManager
 
25
 */
 
26
class OrgFreedesktopNetworkManagerInterface: public QDBusAbstractInterface
 
27
{
 
28
    Q_OBJECT
 
29
public:
 
30
    static inline const char *staticInterfaceName()
 
31
    { return "org.freedesktop.NetworkManager"; }
 
32
 
 
33
public:
 
34
    OrgFreedesktopNetworkManagerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
 
35
 
 
36
    ~OrgFreedesktopNetworkManagerInterface();
 
37
 
 
38
    Q_PROPERTY(QList<QDBusObjectPath> ActiveConnections READ activeConnections)
 
39
    inline QList<QDBusObjectPath> activeConnections() const
 
40
    { return qvariant_cast< QList<QDBusObjectPath> >(internalPropGet("ActiveConnections")); }
 
41
 
 
42
    Q_PROPERTY(bool NetworkingEnabled READ networkingEnabled)
 
43
    inline bool networkingEnabled() const
 
44
    { return qvariant_cast< bool >(internalPropGet("NetworkingEnabled")); }
 
45
 
 
46
    Q_PROPERTY(uint State READ state)
 
47
    inline uint state() const
 
48
    { return qvariant_cast< uint >(internalPropGet("State")); }
 
49
 
 
50
    Q_PROPERTY(bool WirelessEnabled READ wirelessEnabled WRITE setWirelessEnabled)
 
51
    inline bool wirelessEnabled() const
 
52
    { return qvariant_cast< bool >(internalPropGet("WirelessEnabled")); }
 
53
    inline void setWirelessEnabled(bool value)
 
54
    { internalPropSet("WirelessEnabled", qVariantFromValue(value)); }
 
55
 
 
56
    Q_PROPERTY(bool WirelessHardwareEnabled READ wirelessHardwareEnabled)
 
57
    inline bool wirelessHardwareEnabled() const
 
58
    { return qvariant_cast< bool >(internalPropGet("WirelessHardwareEnabled")); }
 
59
 
 
60
    Q_PROPERTY(bool WwanEnabled READ wwanEnabled WRITE setWwanEnabled)
 
61
    inline bool wwanEnabled() const
 
62
    { return qvariant_cast< bool >(internalPropGet("WwanEnabled")); }
 
63
    inline void setWwanEnabled(bool value)
 
64
    { internalPropSet("WwanEnabled", qVariantFromValue(value)); }
 
65
 
 
66
    Q_PROPERTY(bool WwanHardwareEnabled READ wwanHardwareEnabled)
 
67
    inline bool wwanHardwareEnabled() const
 
68
    { return qvariant_cast< bool >(internalPropGet("WwanHardwareEnabled")); }
 
69
 
 
70
public Q_SLOTS: // METHODS
 
71
    inline QDBusPendingReply<QDBusObjectPath> ActivateConnection(const QString &service_name, const QDBusObjectPath &connection, const QDBusObjectPath &device, const QDBusObjectPath &specific_object)
 
72
    {
 
73
        QList<QVariant> argumentList;
 
74
        argumentList << qVariantFromValue(service_name) << qVariantFromValue(connection) << qVariantFromValue(device) << qVariantFromValue(specific_object);
 
75
        return asyncCallWithArgumentList(QLatin1String("ActivateConnection"), argumentList);
 
76
    }
 
77
 
 
78
    inline QDBusPendingReply<> DeactivateConnection(const QDBusObjectPath &active_connection)
 
79
    {
 
80
        QList<QVariant> argumentList;
 
81
        argumentList << qVariantFromValue(active_connection);
 
82
        return asyncCallWithArgumentList(QLatin1String("DeactivateConnection"), argumentList);
 
83
    }
 
84
 
 
85
    inline QDBusPendingReply<> Enable(bool enable)
 
86
    {
 
87
        QList<QVariant> argumentList;
 
88
        argumentList << qVariantFromValue(enable);
 
89
        return asyncCallWithArgumentList(QLatin1String("Enable"), argumentList);
 
90
    }
 
91
 
 
92
    inline QDBusPendingReply<QList<QDBusObjectPath> > GetDevices()
 
93
    {
 
94
        QList<QVariant> argumentList;
 
95
        return asyncCallWithArgumentList(QLatin1String("GetDevices"), argumentList);
 
96
    }
 
97
 
 
98
    inline QDBusPendingReply<> Sleep(bool sleep)
 
99
    {
 
100
        QList<QVariant> argumentList;
 
101
        argumentList << qVariantFromValue(sleep);
 
102
        return asyncCallWithArgumentList(QLatin1String("Sleep"), argumentList);
 
103
    }
 
104
 
 
105
Q_SIGNALS: // SIGNALS
 
106
    void DeviceAdded(const QDBusObjectPath &state);
 
107
    void DeviceRemoved(const QDBusObjectPath &state);
 
108
    void PropertiesChanged(const QVariantMap &properties);
 
109
    void StateChanged(uint state);
 
110
};
 
111
 
 
112
#endif