~system-settings-touch/ubuntu-system-settings/trunk

« back to all changes in this revision

Viewing changes to plugins/bluetooth/bluez_agent1adaptor.h

  • Committer: CI Train Bot
  • Author(s): Simon Fels
  • Date: 2015-11-20 08:48:49 UTC
  • mfrom: (1528.2.42 uss-bluez5-support)
  • Revision ID: ci-train-bot@canonical.com-20151120084849-fbm0rt429fjd4ir5
Ported the Bluetooth plugin to the changed BlueZ API which comes with version 5.x. The overall device management gets a lot more reliable with this. Superfluous code was dropped when possible. Also the unit tests got a rework and all pass now. Fixes: #1499789
Approved by: Jonas G. Drange, Sebastien Bacher

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file was generated by qdbusxml2cpp version 0.8
 
3
 * Command line was: qdbusxml2cpp -a bluez_agent1adaptor -c BluezAgent1Adaptor org.bluez.Agent1.xml
 
4
 *
 
5
 * qdbusxml2cpp is Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies).
 
6
 *
 
7
 * This is an auto-generated file.
 
8
 * This file may have been hand-edited. Look for HAND-EDIT comments
 
9
 * before re-generating it.
 
10
 */
 
11
 
 
12
#ifndef BLUEZ_AGENT1ADAPTOR_H_1442560744
 
13
#define BLUEZ_AGENT1ADAPTOR_H_1442560744
 
14
 
 
15
#include <QtCore/QObject>
 
16
#include <QtDBus/QtDBus>
 
17
QT_BEGIN_NAMESPACE
 
18
class QByteArray;
 
19
template<class T> class QList;
 
20
template<class Key, class Value> class QMap;
 
21
class QString;
 
22
class QStringList;
 
23
class QVariant;
 
24
QT_END_NAMESPACE
 
25
 
 
26
/*
 
27
 * Adaptor class for interface org.bluez.Agent1
 
28
 */
 
29
class BluezAgent1Adaptor: public QDBusAbstractAdaptor
 
30
{
 
31
    Q_OBJECT
 
32
    Q_CLASSINFO("D-Bus Interface", "org.bluez.Agent1")
 
33
    Q_CLASSINFO("D-Bus Introspection", ""
 
34
"  <interface name=\"org.bluez.Agent1\">\n"
 
35
"    <method name=\"RequestPinCode\">\n"
 
36
"      <annotation value=\"\" name=\"org.freedesktop.DBus.GLib.Async\"/>\n"
 
37
"      <arg type=\"o\" name=\"device\"/>\n"
 
38
"      <arg direction=\"out\" type=\"s\" name=\"pincode\"/>\n"
 
39
"    </method>\n"
 
40
"    <method name=\"DisplayPinCode\">\n"
 
41
"      <annotation value=\"\" name=\"org.freedesktop.DBus.GLib.Async\"/>\n"
 
42
"      <arg type=\"o\" name=\"device\"/>\n"
 
43
"      <arg type=\"s\" name=\"pincode\"/>\n"
 
44
"    </method>\n"
 
45
"    <method name=\"RequestPasskey\">\n"
 
46
"      <annotation value=\"\" name=\"org.freedesktop.DBus.GLib.Async\"/>\n"
 
47
"      <arg type=\"o\" name=\"device\"/>\n"
 
48
"      <arg direction=\"out\" type=\"u\" name=\"passkey\"/>\n"
 
49
"    </method>\n"
 
50
"    <method name=\"DisplayPasskey\">\n"
 
51
"      <annotation value=\"\" name=\"org.freedesktop.DBus.GLib.Async\"/>\n"
 
52
"      <arg type=\"o\" name=\"device\"/>\n"
 
53
"      <arg type=\"u\" name=\"passkey\"/>\n"
 
54
"      <arg type=\"q\" name=\"entered\"/>\n"
 
55
"    </method>\n"
 
56
"    <method name=\"RequestConfirmation\">\n"
 
57
"      <annotation value=\"\" name=\"org.freedesktop.DBus.GLib.Async\"/>\n"
 
58
"      <arg type=\"o\" name=\"device\"/>\n"
 
59
"      <arg type=\"u\" name=\"passkey\"/>\n"
 
60
"    </method>\n"
 
61
"    <method name=\"RequestAuthorization\">\n"
 
62
"      <annotation value=\"\" name=\"org.freedesktop.DBus.GLib.Async\"/>\n"
 
63
"      <arg type=\"o\" name=\"device\"/>\n"
 
64
"    </method>\n"
 
65
"    <method name=\"AuthorizeService\">\n"
 
66
"      <annotation value=\"\" name=\"org.freedesktop.DBus.GLib.Async\"/>\n"
 
67
"      <arg type=\"o\" name=\"device\"/>\n"
 
68
"      <arg type=\"s\" name=\"uuid\"/>\n"
 
69
"    </method>\n"
 
70
"    <method name=\"Cancel\">\n"
 
71
"      <annotation value=\"\" name=\"org.freedesktop.DBus.GLib.Async\"/>\n"
 
72
"    </method>\n"
 
73
"    <method name=\"Release\">\n"
 
74
"      <annotation value=\"\" name=\"org.freedesktop.DBus.GLib.Async\"/>\n"
 
75
"    </method>\n"
 
76
"  </interface>\n"
 
77
        "")
 
78
public:
 
79
    BluezAgent1Adaptor(QObject *parent);
 
80
    virtual ~BluezAgent1Adaptor();
 
81
 
 
82
public: // PROPERTIES
 
83
public Q_SLOTS: // METHODS
 
84
    void AuthorizeService(const QDBusObjectPath &device, const QString &uuid);
 
85
    void Cancel();
 
86
    void DisplayPasskey(const QDBusObjectPath &device, uint passkey, ushort entered);
 
87
    void DisplayPinCode(const QDBusObjectPath &device, const QString &pincode);
 
88
    void Release();
 
89
    void RequestAuthorization(const QDBusObjectPath &device);
 
90
    void RequestConfirmation(const QDBusObjectPath &device, uint passkey);
 
91
    uint RequestPasskey(const QDBusObjectPath &device);
 
92
    QString RequestPinCode(const QDBusObjectPath &device);
 
93
Q_SIGNALS: // SIGNALS
 
94
};
 
95
 
 
96
#endif