summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/bluez
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/bluez')
-rw-r--r--src/bluetooth/bluez/adapter.cpp26
-rw-r--r--src/bluetooth/bluez/adapter_p.h157
-rw-r--r--src/bluetooth/bluez/agent.cpp87
-rw-r--r--src/bluetooth/bluez/agent_p.h78
-rw-r--r--src/bluetooth/bluez/bluez.pri23
-rw-r--r--src/bluetooth/bluez/device.cpp26
-rw-r--r--src/bluetooth/bluez/device_p.h104
-rwxr-xr-xsrc/bluetooth/bluez/generate16
-rw-r--r--src/bluetooth/bluez/manager.cpp26
-rw-r--r--src/bluetooth/bluez/manager_p.h69
-rw-r--r--src/bluetooth/bluez/obex_agent.cpp67
-rw-r--r--src/bluetooth/bluez/obex_agent_p.h65
-rw-r--r--src/bluetooth/bluez/obex_client.cpp26
-rw-r--r--src/bluetooth/bluez/obex_client_p.h82
-rw-r--r--src/bluetooth/bluez/obex_manager.cpp26
-rw-r--r--src/bluetooth/bluez/obex_manager_p.h65
-rw-r--r--src/bluetooth/bluez/obex_transfer.cpp26
-rw-r--r--src/bluetooth/bluez/obex_transfer_p.h59
-rw-r--r--src/bluetooth/bluez/org.bluez.Agent.xml32
-rw-r--r--src/bluetooth/bluez/org.bluez.Device.xml41
-rw-r--r--src/bluetooth/bluez/org.bluez.Manager.xml25
-rw-r--r--src/bluetooth/bluez/org.bluez.Service.xml21
-rw-r--r--src/bluetooth/bluez/org.bluez.all.xml145
-rw-r--r--src/bluetooth/bluez/org.openobex.agent.xml24
-rw-r--r--src/bluetooth/bluez/org.openobex.all.xml31
-rw-r--r--src/bluetooth/bluez/org.openobex.client.xml40
-rw-r--r--src/bluetooth/bluez/org.openobex.transfer.xml19
-rw-r--r--src/bluetooth/bluez/service.cpp26
-rw-r--r--src/bluetooth/bluez/service_p.h81
-rw-r--r--src/bluetooth/bluez/servicemap.cpp63
-rw-r--r--src/bluetooth/bluez/servicemap_p.h55
31 files changed, 1631 insertions, 0 deletions
diff --git a/src/bluetooth/bluez/adapter.cpp b/src/bluetooth/bluez/adapter.cpp
new file mode 100644
index 00000000..495360d7
--- /dev/null
+++ b/src/bluetooth/bluez/adapter.cpp
@@ -0,0 +1,26 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -p adapter_p.h:adapter.cpp org.bluez.all.xml org.bluez.Adapter
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * This file may have been hand-edited. Look for HAND-EDIT comments
+ * before re-generating it.
+ */
+
+#include "adapter_p.h"
+
+/*
+ * Implementation of interface class OrgBluezAdapterInterface
+ */
+
+OrgBluezAdapterInterface::OrgBluezAdapterInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
+ : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
+{
+}
+
+OrgBluezAdapterInterface::~OrgBluezAdapterInterface()
+{
+}
+
diff --git a/src/bluetooth/bluez/adapter_p.h b/src/bluetooth/bluez/adapter_p.h
new file mode 100644
index 00000000..b4ba2b12
--- /dev/null
+++ b/src/bluetooth/bluez/adapter_p.h
@@ -0,0 +1,157 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -p adapter_p.h:adapter.cpp org.bluez.all.xml org.bluez.Adapter
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#ifndef ADAPTER_P_H_1273205927
+#define ADAPTER_P_H_1273205927
+
+#include <QtCore/QObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+#include <QtDBus/QtDBus>
+
+/*
+ * Proxy class for interface org.bluez.Adapter
+ */
+class OrgBluezAdapterInterface: public QDBusAbstractInterface
+{
+ Q_OBJECT
+public:
+ static inline const char *staticInterfaceName()
+ { return "org.bluez.Adapter"; }
+
+public:
+ OrgBluezAdapterInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
+
+ ~OrgBluezAdapterInterface();
+
+public Q_SLOTS: // METHODS
+ inline QDBusPendingReply<> CancelDeviceCreation(const QString &in0)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0);
+ return asyncCallWithArgumentList(QLatin1String("CancelDeviceCreation"), argumentList);
+ }
+
+ inline QDBusPendingReply<QDBusObjectPath> CreateDevice(const QString &in0)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0);
+ return asyncCallWithArgumentList(QLatin1String("CreateDevice"), argumentList);
+ }
+
+ inline QDBusPendingReply<QDBusObjectPath> CreatePairedDevice(const QString &in0, const QDBusObjectPath &in1, const QString &in2)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0) << qVariantFromValue(in1) << qVariantFromValue(in2);
+ return asyncCallWithArgumentList(QLatin1String("CreatePairedDevice"), argumentList);
+ }
+
+ inline QDBusPendingReply<QDBusObjectPath> FindDevice(const QString &in0)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0);
+ return asyncCallWithArgumentList(QLatin1String("FindDevice"), argumentList);
+ }
+
+ inline QDBusPendingReply<QVariantMap> GetProperties()
+ {
+ QList<QVariant> argumentList;
+ return asyncCallWithArgumentList(QLatin1String("GetProperties"), argumentList);
+ }
+
+ inline QDBusPendingReply<QList<QDBusObjectPath> > ListDevices()
+ {
+ QList<QVariant> argumentList;
+ return asyncCallWithArgumentList(QLatin1String("ListDevices"), argumentList);
+ }
+
+ inline QDBusPendingReply<> RegisterAgent(const QDBusObjectPath &in0, const QString &in1)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0) << qVariantFromValue(in1);
+ return asyncCallWithArgumentList(QLatin1String("RegisterAgent"), argumentList);
+ }
+
+ inline QDBusPendingReply<> ReleaseMode()
+ {
+ QList<QVariant> argumentList;
+ return asyncCallWithArgumentList(QLatin1String("ReleaseMode"), argumentList);
+ }
+
+ inline QDBusPendingReply<> ReleaseSession()
+ {
+ QList<QVariant> argumentList;
+ return asyncCallWithArgumentList(QLatin1String("ReleaseSession"), argumentList);
+ }
+
+ inline QDBusPendingReply<> RemoveDevice(const QDBusObjectPath &in0)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0);
+ return asyncCallWithArgumentList(QLatin1String("RemoveDevice"), argumentList);
+ }
+
+ inline QDBusPendingReply<> RequestMode(const QString &in0)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0);
+ return asyncCallWithArgumentList(QLatin1String("RequestMode"), argumentList);
+ }
+
+ inline QDBusPendingReply<> RequestSession()
+ {
+ QList<QVariant> argumentList;
+ return asyncCallWithArgumentList(QLatin1String("RequestSession"), argumentList);
+ }
+
+ inline QDBusPendingReply<> SetProperty(const QString &in0, const QDBusVariant &in1)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0) << qVariantFromValue(in1);
+ return asyncCallWithArgumentList(QLatin1String("SetProperty"), argumentList);
+ }
+
+ inline QDBusPendingReply<> StartDiscovery()
+ {
+ QList<QVariant> argumentList;
+ return asyncCallWithArgumentList(QLatin1String("StartDiscovery"), argumentList);
+ }
+
+ inline QDBusPendingReply<> StopDiscovery()
+ {
+ QList<QVariant> argumentList;
+ return asyncCallWithArgumentList(QLatin1String("StopDiscovery"), argumentList);
+ }
+
+ inline QDBusPendingReply<> UnregisterAgent(const QDBusObjectPath &in0)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0);
+ return asyncCallWithArgumentList(QLatin1String("UnregisterAgent"), argumentList);
+ }
+
+Q_SIGNALS: // SIGNALS
+ void DeviceCreated(const QDBusObjectPath &in0);
+ void DeviceDisappeared(const QString &in0);
+ void DeviceFound(const QString &in0, const QVariantMap &in1);
+ void DeviceRemoved(const QDBusObjectPath &in0);
+ void PropertyChanged(const QString &in0, const QDBusVariant &in1);
+};
+
+namespace org {
+ namespace bluez {
+ typedef ::OrgBluezAdapterInterface Adapter;
+ }
+}
+#endif
diff --git a/src/bluetooth/bluez/agent.cpp b/src/bluetooth/bluez/agent.cpp
new file mode 100644
index 00000000..491bd1e9
--- /dev/null
+++ b/src/bluetooth/bluez/agent.cpp
@@ -0,0 +1,87 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -c OrgBluezAgentAdaptor -a agent_p.h:agent.cpp org.bluez.Agent.xml org.bluez.Agent
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#include "agent_p.h"
+#include <QtCore/QMetaObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+
+/*
+ * Implementation of adaptor class OrgBluezAgentAdaptor
+ */
+
+OrgBluezAgentAdaptor::OrgBluezAgentAdaptor(QObject *parent)
+ : QDBusAbstractAdaptor(parent)
+{
+ // constructor
+ setAutoRelaySignals(true);
+}
+
+OrgBluezAgentAdaptor::~OrgBluezAgentAdaptor()
+{
+ // destructor
+}
+
+void OrgBluezAgentAdaptor::Authorize(const QDBusObjectPath &in0, const QString &in1)
+{
+ // handle method call org.bluez.Agent.Authorize
+ QMetaObject::invokeMethod(parent(), "Authorize", Q_ARG(QDBusObjectPath, in0), Q_ARG(QString, in1));
+}
+
+void OrgBluezAgentAdaptor::Cancel()
+{
+ // handle method call org.bluez.Agent.Cancel
+ QMetaObject::invokeMethod(parent(), "Cancel");
+}
+
+void OrgBluezAgentAdaptor::ConfirmModeChange(const QString &in0)
+{
+ // handle method call org.bluez.Agent.ConfirmModeChange
+ QMetaObject::invokeMethod(parent(), "ConfirmModeChange", Q_ARG(QString, in0));
+}
+
+void OrgBluezAgentAdaptor::DisplayPasskey(const QDBusObjectPath &in0, uint in1, uchar in2)
+{
+ // handle method call org.bluez.Agent.DisplayPasskey
+ QMetaObject::invokeMethod(parent(), "DisplayPasskey", Q_ARG(QDBusObjectPath, in0), Q_ARG(uint, in1), Q_ARG(uchar, in2));
+}
+
+void OrgBluezAgentAdaptor::Release()
+{
+ // handle method call org.bluez.Agent.Release
+ QMetaObject::invokeMethod(parent(), "Release");
+}
+
+void OrgBluezAgentAdaptor::RequestConfirmation(const QDBusObjectPath &in0, uint in1)
+{
+ // handle method call org.bluez.Agent.RequestConfirmation
+ QMetaObject::invokeMethod(parent(), "RequestConfirmation", Q_ARG(QDBusObjectPath, in0), Q_ARG(uint, in1));
+}
+
+uint OrgBluezAgentAdaptor::RequestPasskey(const QDBusObjectPath &in0)
+{
+ // handle method call org.bluez.Agent.RequestPasskey
+ uint out0;
+ QMetaObject::invokeMethod(parent(), "RequestPasskey", Q_RETURN_ARG(uint, out0), Q_ARG(QDBusObjectPath, in0));
+ return out0;
+}
+
+QString OrgBluezAgentAdaptor::RequestPinCode(const QDBusObjectPath &in0)
+{
+ // handle method call org.bluez.Agent.RequestPinCode
+ QString out0;
+ QMetaObject::invokeMethod(parent(), "RequestPinCode", Q_RETURN_ARG(QString, out0), Q_ARG(QDBusObjectPath, in0));
+ return out0;
+}
+
diff --git a/src/bluetooth/bluez/agent_p.h b/src/bluetooth/bluez/agent_p.h
new file mode 100644
index 00000000..3725928e
--- /dev/null
+++ b/src/bluetooth/bluez/agent_p.h
@@ -0,0 +1,78 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -c OrgBluezAgentAdaptor -a agent_p.h:agent.cpp org.bluez.Agent.xml org.bluez.Agent
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * This file may have been hand-edited. Look for HAND-EDIT comments
+ * before re-generating it.
+ */
+
+#ifndef AGENT_P_H_1291941396
+#define AGENT_P_H_1291941396
+
+#include <QtCore/QObject>
+#include <QtDBus/QtDBus>
+class QByteArray;
+template<class T> class QList;
+template<class Key, class Value> class QMap;
+class QString;
+class QStringList;
+class QVariant;
+
+/*
+ * Adaptor class for interface org.bluez.Agent
+ */
+class OrgBluezAgentAdaptor: public QDBusAbstractAdaptor
+{
+ Q_OBJECT
+ Q_CLASSINFO("D-Bus Interface", "org.bluez.Agent")
+ Q_CLASSINFO("D-Bus Introspection", ""
+" <interface name=\"org.bluez.Agent\">\n"
+" <method name=\"Release\"/>\n"
+" <method name=\"RequestPinCode\">\n"
+" <arg direction=\"in\" type=\"o\"/>\n"
+" <arg direction=\"out\" type=\"s\"/>\n"
+" </method>\n"
+" <method name=\"RequestPasskey\">\n"
+" <arg direction=\"in\" type=\"o\"/>\n"
+" <arg direction=\"out\" type=\"u\"/>\n"
+" </method>\n"
+" <method name=\"DisplayPasskey\">\n"
+" <arg direction=\"in\" type=\"o\"/>\n"
+" <arg direction=\"in\" type=\"u\"/>\n"
+" <arg direction=\"in\" type=\"y\"/>\n"
+" </method>\n"
+" <method name=\"RequestConfirmation\">\n"
+" <arg direction=\"in\" type=\"o\"/>\n"
+" <arg direction=\"in\" type=\"u\"/>\n"
+" </method>\n"
+" <method name=\"Authorize\">\n"
+" <arg direction=\"in\" type=\"o\"/>\n"
+" <arg direction=\"in\" type=\"s\"/>\n"
+" </method>\n"
+" <method name=\"ConfirmModeChange\">\n"
+" <arg direction=\"in\" type=\"s\"/>\n"
+" </method>\n"
+" <method name=\"Cancel\"/>\n"
+" </interface>\n"
+ "")
+public:
+ OrgBluezAgentAdaptor(QObject *parent);
+ virtual ~OrgBluezAgentAdaptor();
+
+public: // PROPERTIES
+public Q_SLOTS: // METHODS
+ void Authorize(const QDBusObjectPath &in0, const QString &in1);
+ void Cancel();
+ void ConfirmModeChange(const QString &in0);
+ void DisplayPasskey(const QDBusObjectPath &in0, uint in1, uchar in2);
+ void Release();
+ void RequestConfirmation(const QDBusObjectPath &in0, uint in1);
+ uint RequestPasskey(const QDBusObjectPath &in0);
+ QString RequestPinCode(const QDBusObjectPath &in0);
+Q_SIGNALS: // SIGNALS
+};
+
+#endif
diff --git a/src/bluetooth/bluez/bluez.pri b/src/bluetooth/bluez/bluez.pri
new file mode 100644
index 00000000..234b5ba2
--- /dev/null
+++ b/src/bluetooth/bluez/bluez.pri
@@ -0,0 +1,23 @@
+
+HEADERS += bluez/manager_p.h \
+ bluez/adapter_p.h \
+ bluez/device_p.h \
+ bluez/service_p.h \
+ bluez/agent_p.h \
+ bluez/servicemap_p.h \
+ bluez/obex_client_p.h \
+ bluez/obex_agent_p.h \
+ bluez/obex_transfer_p.h \
+ bluez/obex_manager_p.h
+
+
+SOURCES += bluez/manager.cpp \
+ bluez/adapter.cpp \
+ bluez/agent.cpp \
+ bluez/device.cpp \
+ bluez/service.cpp \
+ bluez/servicemap.cpp \
+ bluez/obex_client.cpp \
+ bluez/obex_agent.cpp \
+ bluez/obex_transfer.cpp \
+ bluez/obex_manager.cpp
diff --git a/src/bluetooth/bluez/device.cpp b/src/bluetooth/bluez/device.cpp
new file mode 100644
index 00000000..fa3f7c44
--- /dev/null
+++ b/src/bluetooth/bluez/device.cpp
@@ -0,0 +1,26 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -i servicemap_p.h -p device_p.h:device.cpp org.bluez.Device.xml org.bluez.Device
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * This file may have been hand-edited. Look for HAND-EDIT comments
+ * before re-generating it.
+ */
+
+#include "device_p.h"
+
+/*
+ * Implementation of interface class OrgBluezDeviceInterface
+ */
+
+OrgBluezDeviceInterface::OrgBluezDeviceInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
+ : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
+{
+}
+
+OrgBluezDeviceInterface::~OrgBluezDeviceInterface()
+{
+}
+
diff --git a/src/bluetooth/bluez/device_p.h b/src/bluetooth/bluez/device_p.h
new file mode 100644
index 00000000..26a00828
--- /dev/null
+++ b/src/bluetooth/bluez/device_p.h
@@ -0,0 +1,104 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -i servicemap_p.h -p device_p.h:device.cpp org.bluez.Device.xml org.bluez.Device
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#ifndef DEVICE_P_H_1273205927
+#define DEVICE_P_H_1273205927
+
+#include <QtCore/QObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+#include <QtDBus/QtDBus>
+#include "servicemap_p.h"
+
+/*
+ * Proxy class for interface org.bluez.Device
+ */
+class OrgBluezDeviceInterface: public QDBusAbstractInterface
+{
+ Q_OBJECT
+public:
+ static inline const char *staticInterfaceName()
+ { return "org.bluez.Device"; }
+
+public:
+ OrgBluezDeviceInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
+
+ ~OrgBluezDeviceInterface();
+
+public Q_SLOTS: // METHODS
+ inline QDBusPendingReply<> CancelDiscovery()
+ {
+ QList<QVariant> argumentList;
+ return asyncCallWithArgumentList(QLatin1String("CancelDiscovery"), argumentList);
+ }
+
+ inline QDBusPendingReply<QDBusObjectPath> CreateNode(const QString &in0)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0);
+ return asyncCallWithArgumentList(QLatin1String("CreateNode"), argumentList);
+ }
+
+ inline QDBusPendingReply<> Disconnect()
+ {
+ QList<QVariant> argumentList;
+ return asyncCallWithArgumentList(QLatin1String("Disconnect"), argumentList);
+ }
+
+ inline QDBusPendingReply<ServiceMap> DiscoverServices(const QString &in0)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0);
+ return asyncCallWithArgumentList(QLatin1String("DiscoverServices"), argumentList);
+ }
+
+ inline QDBusPendingReply<QVariantMap> GetProperties()
+ {
+ QList<QVariant> argumentList;
+ return asyncCallWithArgumentList(QLatin1String("GetProperties"), argumentList);
+ }
+
+ inline QDBusPendingReply<QList<QDBusObjectPath> > ListNodes()
+ {
+ QList<QVariant> argumentList;
+ return asyncCallWithArgumentList(QLatin1String("ListNodes"), argumentList);
+ }
+
+ inline QDBusPendingReply<> RemoveNode(const QDBusObjectPath &in0)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0);
+ return asyncCallWithArgumentList(QLatin1String("RemoveNode"), argumentList);
+ }
+
+ inline QDBusPendingReply<> SetProperty(const QString &in0, const QDBusVariant &in1)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0) << qVariantFromValue(in1);
+ return asyncCallWithArgumentList(QLatin1String("SetProperty"), argumentList);
+ }
+
+Q_SIGNALS: // SIGNALS
+ void DisconnectRequested();
+ void NodeCreated(const QDBusObjectPath &in0);
+ void NodeRemoved(const QDBusObjectPath &in0);
+ void PropertyChanged(const QString &in0, const QDBusVariant &in1);
+};
+
+namespace org {
+ namespace bluez {
+ typedef ::OrgBluezDeviceInterface Device;
+ }
+}
+#endif
diff --git a/src/bluetooth/bluez/generate b/src/bluetooth/bluez/generate
new file mode 100755
index 00000000..14bcaea8
--- /dev/null
+++ b/src/bluetooth/bluez/generate
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+qdbusxml2cpp -p manager_p.h:manager.cpp org.bluez.Manager.xml org.bluez.Manager
+qdbusxml2cpp -p adapter_p.h:adapter.cpp org.bluez.all.xml org.bluez.Adapter
+qdbusxml2cpp -i servicemap_p.h -p device_p.h:device.cpp org.bluez.Device.xml org.bluez.Device
+qdbusxml2cpp -p service_p.h:service.cpp org.bluez.all.xml org.bluez.Service
+qdbusxml2cpp -c OrgBluezAgentAdaptor -a agent_p.h:agent.cpp org.bluez.Agent.xml org.bluez.Agent
+qdbusxml2cpp -p obex_manager_p.h:obex_manager.cpp org.openobex.all.xml org.openobex.Manager
+qdbusxml2cpp -p obex_client_p.h:obex_client.cpp org.openobex.client.xml org.openobex.Client
+qdbusxml2cpp -p obex_transfer_p.h:obex_transfer.cpp org.openobex.transfer.xml org.openobex.Transfer
+qdbusxml2cpp -a obex_agent_p.h:obex_agent.cpp org.openobex.agent.xml org.openobex.Agent
+#qdbusxml2cpp -p serialproxymanager_p.h:serialproxymanager.cpp org.bluez.all.xml org.bluez.SerialProxyManager
+#qdbusxml2cpp -p networkpeer_p.h:networkpeer.cpp org.bluez.all.xml org.bluez.NetworkPeer
+#qdbusxml2cpp -p networkhub_p.h:networkhub.cpp org.bluez.all.xml org.bluez.NetworkHub
+#qdbusxml2cpp -p networkrouter_p.h:networkrouter.cpp org.bluez.all.xml org.bluez.NetworkRouter
+
diff --git a/src/bluetooth/bluez/manager.cpp b/src/bluetooth/bluez/manager.cpp
new file mode 100644
index 00000000..474ed694
--- /dev/null
+++ b/src/bluetooth/bluez/manager.cpp
@@ -0,0 +1,26 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -p manager_p.h:manager.cpp org.bluez.Manager.xml org.bluez.Manager
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * This file may have been hand-edited. Look for HAND-EDIT comments
+ * before re-generating it.
+ */
+
+#include "manager_p.h"
+
+/*
+ * Implementation of interface class OrgBluezManagerInterface
+ */
+
+OrgBluezManagerInterface::OrgBluezManagerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
+ : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
+{
+}
+
+OrgBluezManagerInterface::~OrgBluezManagerInterface()
+{
+}
+
diff --git a/src/bluetooth/bluez/manager_p.h b/src/bluetooth/bluez/manager_p.h
new file mode 100644
index 00000000..da38f733
--- /dev/null
+++ b/src/bluetooth/bluez/manager_p.h
@@ -0,0 +1,69 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -p manager_p.h:manager.cpp org.bluez.Manager.xml org.bluez.Manager
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#ifndef MANAGER_P_H_1273205927
+#define MANAGER_P_H_1273205927
+
+#include <QtCore/QObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+#include <QtDBus/QtDBus>
+
+/*
+ * Proxy class for interface org.bluez.Manager
+ */
+class OrgBluezManagerInterface: public QDBusAbstractInterface
+{
+ Q_OBJECT
+public:
+ static inline const char *staticInterfaceName()
+ { return "org.bluez.Manager"; }
+
+public:
+ OrgBluezManagerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
+
+ ~OrgBluezManagerInterface();
+
+public Q_SLOTS: // METHODS
+ inline QDBusPendingReply<QDBusObjectPath> DefaultAdapter()
+ {
+ QList<QVariant> argumentList;
+ return asyncCallWithArgumentList(QLatin1String("DefaultAdapter"), argumentList);
+ }
+
+ inline QDBusPendingReply<QDBusObjectPath> FindAdapter(const QString &in0)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0);
+ return asyncCallWithArgumentList(QLatin1String("FindAdapter"), argumentList);
+ }
+
+ inline QDBusPendingReply<QList<QDBusObjectPath> > ListAdapters()
+ {
+ QList<QVariant> argumentList;
+ return asyncCallWithArgumentList(QLatin1String("ListAdapters"), argumentList);
+ }
+
+Q_SIGNALS: // SIGNALS
+ void AdapterAdded(const QDBusObjectPath &in0);
+ void AdapterRemoved(const QDBusObjectPath &in0);
+ void DefaultAdapterChanged(const QDBusObjectPath &in0);
+};
+
+namespace org {
+ namespace bluez {
+ typedef ::OrgBluezManagerInterface Manager;
+ }
+}
+#endif
diff --git a/src/bluetooth/bluez/obex_agent.cpp b/src/bluetooth/bluez/obex_agent.cpp
new file mode 100644
index 00000000..c4895065
--- /dev/null
+++ b/src/bluetooth/bluez/obex_agent.cpp
@@ -0,0 +1,67 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -a obex_agent_p.h:obex_agent.cpp org.openobex.agent.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#include "obex_agent_p.h"
+#include <QtCore/QMetaObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+
+/*
+ * Implementation of adaptor class AgentAdaptor
+ */
+
+AgentAdaptor::AgentAdaptor(QObject *parent)
+ : QDBusAbstractAdaptor(parent)
+{
+ // constructor
+ setAutoRelaySignals(true);
+}
+
+AgentAdaptor::~AgentAdaptor()
+{
+ // destructor
+}
+
+void AgentAdaptor::Complete(const QDBusObjectPath &in0)
+{
+ // handle method call org.openobex.Agent.Complete
+ QMetaObject::invokeMethod(parent(), "Complete", Q_ARG(QDBusObjectPath, in0));
+}
+
+void AgentAdaptor::Error(const QDBusObjectPath &in0, const QString &in1)
+{
+ // handle method call org.openobex.Agent.Error
+ QMetaObject::invokeMethod(parent(), "Error", Q_ARG(QDBusObjectPath, in0), Q_ARG(QString, in1));
+}
+
+void AgentAdaptor::Progress(const QDBusObjectPath &in0, qulonglong in1)
+{
+ // handle method call org.openobex.Agent.Progress
+ QMetaObject::invokeMethod(parent(), "Progress", Q_ARG(QDBusObjectPath, in0), Q_ARG(qulonglong, in1));
+}
+
+void AgentAdaptor::Release()
+{
+ // handle method call org.openobex.Agent.Release
+ QMetaObject::invokeMethod(parent(), "Release");
+}
+
+QString AgentAdaptor::Request(const QDBusObjectPath &in0)
+{
+ // handle method call org.openobex.Agent.Request
+ QString out0;
+ QMetaObject::invokeMethod(parent(), "Request", Q_RETURN_ARG(QString, out0), Q_ARG(QDBusObjectPath, in0));
+ return out0;
+}
+
diff --git a/src/bluetooth/bluez/obex_agent_p.h b/src/bluetooth/bluez/obex_agent_p.h
new file mode 100644
index 00000000..11630093
--- /dev/null
+++ b/src/bluetooth/bluez/obex_agent_p.h
@@ -0,0 +1,65 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -a obex_agent_p.h:obex_agent.cpp org.openobex.agent.xml
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * This file may have been hand-edited. Look for HAND-EDIT comments
+ * before re-generating it.
+ */
+
+#ifndef OBEX_AGENT_P_H_1291359033
+#define OBEX_AGENT_P_H_1291359033
+
+#include <QtCore/QObject>
+#include <QtDBus/QtDBus>
+class QByteArray;
+template<class T> class QList;
+template<class Key, class Value> class QMap;
+class QString;
+class QStringList;
+class QVariant;
+
+/*
+ * Adaptor class for interface org.openobex.Agent
+ */
+class AgentAdaptor: public QDBusAbstractAdaptor
+{
+ Q_OBJECT
+ Q_CLASSINFO("D-Bus Interface", "org.openobex.Agent")
+ Q_CLASSINFO("D-Bus Introspection", ""
+" <interface name=\"org.openobex.Agent\">\n"
+" <method name=\"Release\"/>\n"
+" <method name=\"Request\">\n"
+" <arg direction=\"in\" type=\"o\"/>\n"
+" <arg direction=\"out\" type=\"s\"/>\n"
+" </method>\n"
+" <method name=\"Progress\">\n"
+" <arg direction=\"in\" type=\"o\"/>\n"
+" <arg direction=\"in\" type=\"t\"/>\n"
+" </method>\n"
+" <method name=\"Complete\">\n"
+" <arg direction=\"in\" type=\"o\"/>\n"
+" </method>\n"
+" <method name=\"Error\">\n"
+" <arg direction=\"in\" type=\"o\"/>\n"
+" <arg direction=\"in\" type=\"s\"/>\n"
+" </method>\n"
+" </interface>\n"
+ "")
+public:
+ AgentAdaptor(QObject *parent);
+ virtual ~AgentAdaptor();
+
+public: // PROPERTIES
+public Q_SLOTS: // METHODS
+ void Complete(const QDBusObjectPath &in0);
+ void Error(const QDBusObjectPath &in0, const QString &in1);
+ void Progress(const QDBusObjectPath &in0, qulonglong in1);
+ void Release();
+ QString Request(const QDBusObjectPath &in0);
+Q_SIGNALS: // SIGNALS
+};
+
+#endif
diff --git a/src/bluetooth/bluez/obex_client.cpp b/src/bluetooth/bluez/obex_client.cpp
new file mode 100644
index 00000000..aaf63532
--- /dev/null
+++ b/src/bluetooth/bluez/obex_client.cpp
@@ -0,0 +1,26 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -p obex_client_p.h:obex_client.cpp org.openobex.client.xml org.openobex.Client
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * This file may have been hand-edited. Look for HAND-EDIT comments
+ * before re-generating it.
+ */
+
+#include "obex_client_p.h"
+
+/*
+ * Implementation of interface class OrgOpenobexClientInterface
+ */
+
+OrgOpenobexClientInterface::OrgOpenobexClientInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
+ : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
+{
+}
+
+OrgOpenobexClientInterface::~OrgOpenobexClientInterface()
+{
+}
+
diff --git a/src/bluetooth/bluez/obex_client_p.h b/src/bluetooth/bluez/obex_client_p.h
new file mode 100644
index 00000000..fa6b1f67
--- /dev/null
+++ b/src/bluetooth/bluez/obex_client_p.h
@@ -0,0 +1,82 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -p obex_client_p.h:obex_client.cpp org.openobex.client.xml org.openobex.Client
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#ifndef OBEX_CLIENT_P_H_1291349694
+#define OBEX_CLIENT_P_H_1291349694
+
+#include <QtCore/QObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+#include <QtDBus/QtDBus>
+
+/*
+ * Proxy class for interface org.openobex.Client
+ */
+class OrgOpenobexClientInterface: public QDBusAbstractInterface
+{
+ Q_OBJECT
+public:
+ static inline const char *staticInterfaceName()
+ { return "org.openobex.Client"; }
+
+public:
+ OrgOpenobexClientInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
+
+ ~OrgOpenobexClientInterface();
+
+public Q_SLOTS: // METHODS
+ inline QDBusPendingReply<QDBusObjectPath> CreateSession(const QVariantMap &in0)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0);
+ return asyncCallWithArgumentList(QLatin1String("CreateSession"), argumentList);
+ }
+
+ inline QDBusPendingReply<> ExchangeBusinessCards(const QVariantMap &in0, const QString &in1, const QString &in2)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0) << qVariantFromValue(in1) << qVariantFromValue(in2);
+ return asyncCallWithArgumentList(QLatin1String("ExchangeBusinessCards"), argumentList);
+ }
+
+ inline QDBusPendingReply<QString> GetCapabilities(const QVariantMap &in0)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0);
+ return asyncCallWithArgumentList(QLatin1String("GetCapabilities"), argumentList);
+ }
+
+ inline QDBusPendingReply<> PullBusinessCard(const QVariantMap &in0, const QString &in1)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0) << qVariantFromValue(in1);
+ return asyncCallWithArgumentList(QLatin1String("PullBusinessCard"), argumentList);
+ }
+
+ inline QDBusPendingReply<> SendFiles(const QVariantMap &in0, const QStringList &in1, const QDBusObjectPath &in2)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0) << qVariantFromValue(in1) << qVariantFromValue(in2);
+ return asyncCallWithArgumentList(QLatin1String("SendFiles"), argumentList);
+ }
+
+Q_SIGNALS: // SIGNALS
+};
+
+namespace org {
+ namespace openobex {
+ typedef ::OrgOpenobexClientInterface Client;
+ }
+}
+#endif
diff --git a/src/bluetooth/bluez/obex_manager.cpp b/src/bluetooth/bluez/obex_manager.cpp
new file mode 100644
index 00000000..7192aba8
--- /dev/null
+++ b/src/bluetooth/bluez/obex_manager.cpp
@@ -0,0 +1,26 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -p obex_manager_p.h:obex_manager.cpp org.openobex.all.xml org.openobex.Manager
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * This file may have been hand-edited. Look for HAND-EDIT comments
+ * before re-generating it.
+ */
+
+#include "obex_manager_p.h"
+
+/*
+ * Implementation of interface class OrgOpenobexManagerInterface
+ */
+
+OrgOpenobexManagerInterface::OrgOpenobexManagerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
+ : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
+{
+}
+
+OrgOpenobexManagerInterface::~OrgOpenobexManagerInterface()
+{
+}
+
diff --git a/src/bluetooth/bluez/obex_manager_p.h b/src/bluetooth/bluez/obex_manager_p.h
new file mode 100644
index 00000000..673a0e7e
--- /dev/null
+++ b/src/bluetooth/bluez/obex_manager_p.h
@@ -0,0 +1,65 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -p obex_manager_p.h:obex_manager.cpp org.openobex.all.xml org.openobex.Manager
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#ifndef OBEX_MANAGER_P_H_1291186314
+#define OBEX_MANAGER_P_H_1291186314
+
+#include <QtCore/QObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+#include <QtDBus/QtDBus>
+
+/*
+ * Proxy class for interface org.openobex.Manager
+ */
+class OrgOpenobexManagerInterface: public QDBusAbstractInterface
+{
+ Q_OBJECT
+public:
+ static inline const char *staticInterfaceName()
+ { return "org.openobex.Manager"; }
+
+public:
+ OrgOpenobexManagerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
+
+ ~OrgOpenobexManagerInterface();
+
+public Q_SLOTS: // METHODS
+ inline QDBusPendingReply<> RegisterAgent(const QDBusObjectPath &in0)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0);
+ return asyncCallWithArgumentList(QLatin1String("RegisterAgent"), argumentList);
+ }
+
+ inline QDBusPendingReply<> UnregisterAgent(const QDBusObjectPath &in0)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0);
+ return asyncCallWithArgumentList(QLatin1String("UnregisterAgent"), argumentList);
+ }
+
+Q_SIGNALS: // SIGNALS
+ void SessionCreated(const QDBusObjectPath &in0);
+ void SessionRemoved(const QDBusObjectPath &in0);
+ void TransferCompleted(const QDBusObjectPath &in0, bool in1);
+ void TransferStarted(const QDBusObjectPath &in0);
+};
+
+namespace org {
+ namespace openobex {
+ typedef ::OrgOpenobexManagerInterface Manager;
+ }
+}
+#endif
diff --git a/src/bluetooth/bluez/obex_transfer.cpp b/src/bluetooth/bluez/obex_transfer.cpp
new file mode 100644
index 00000000..9fad44e1
--- /dev/null
+++ b/src/bluetooth/bluez/obex_transfer.cpp
@@ -0,0 +1,26 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -p obex_transfer_p.h:obex_transfer.cpp org.openobex.transfer.xml org.openobex.Transfer
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * This file may have been hand-edited. Look for HAND-EDIT comments
+ * before re-generating it.
+ */
+
+#include "obex_transfer_p.h"
+
+/*
+ * Implementation of interface class OrgOpenobexTransferInterface
+ */
+
+OrgOpenobexTransferInterface::OrgOpenobexTransferInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
+ : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
+{
+}
+
+OrgOpenobexTransferInterface::~OrgOpenobexTransferInterface()
+{
+}
+
diff --git a/src/bluetooth/bluez/obex_transfer_p.h b/src/bluetooth/bluez/obex_transfer_p.h
new file mode 100644
index 00000000..8b4fe3fd
--- /dev/null
+++ b/src/bluetooth/bluez/obex_transfer_p.h
@@ -0,0 +1,59 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -p obex_transfer_p.h:obex_transfer.cpp org.openobex.transfer.xml org.openobex.Transfer
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#ifndef OBEX_TRANSFER_P_H_1291853849
+#define OBEX_TRANSFER_P_H_1291853849
+
+#include <QtCore/QObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+#include <QtDBus/QtDBus>
+
+/*
+ * Proxy class for interface org.openobex.Transfer
+ */
+class OrgOpenobexTransferInterface: public QDBusAbstractInterface
+{
+ Q_OBJECT
+public:
+ static inline const char *staticInterfaceName()
+ { return "org.openobex.Transfer"; }
+
+public:
+ OrgOpenobexTransferInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
+
+ ~OrgOpenobexTransferInterface();
+
+public Q_SLOTS: // METHODS
+ inline QDBusPendingReply<> Cancel()
+ {
+ QList<QVariant> argumentList;
+ return asyncCallWithArgumentList(QLatin1String("Cancel"), argumentList);
+ }
+
+ inline QDBusPendingReply<QVariantMap> GetProperties()
+ {
+ QList<QVariant> argumentList;
+ return asyncCallWithArgumentList(QLatin1String("GetProperties"), argumentList);
+ }
+
+Q_SIGNALS: // SIGNALS
+};
+
+namespace org {
+ namespace openobex {
+ typedef ::OrgOpenobexTransferInterface Transfer;
+ }
+}
+#endif
diff --git a/src/bluetooth/bluez/org.bluez.Agent.xml b/src/bluetooth/bluez/org.bluez.Agent.xml
new file mode 100644
index 00000000..9a77eb1b
--- /dev/null
+++ b/src/bluetooth/bluez/org.bluez.Agent.xml
@@ -0,0 +1,32 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node name="/">
+ <interface name="org.bluez.Agent">
+ <method name="Release" />
+ <method name="RequestPinCode">
+ <arg type="o" direction="in"/>
+ <arg type="s" direction="out"/>
+ </method>
+ <method name="RequestPasskey">
+ <arg type="o" direction="in"/>
+ <arg type="u" direction="out"/>
+ </method>
+ <method name="DisplayPasskey">
+ <arg type="o" direction="in"/>
+ <arg type="u" direction="in"/>
+ <arg type="y" direction="in"/>
+ </method>
+ <method name="RequestConfirmation">
+ <arg type="o" direction="in"/>
+ <arg type="u" direction="in"/>
+ </method>
+ <method name="Authorize">
+ <arg type="o" direction="in"/>
+ <arg type="s" direction="in"/>
+ </method>
+ <method name="ConfirmModeChange">
+ <arg type="s" direction="in"/>
+ </method>
+ <method name="Cancel" />
+ </interface>
+ <node name="org"/>
+</node>
diff --git a/src/bluetooth/bluez/org.bluez.Device.xml b/src/bluetooth/bluez/org.bluez.Device.xml
new file mode 100644
index 00000000..42351c97
--- /dev/null
+++ b/src/bluetooth/bluez/org.bluez.Device.xml
@@ -0,0 +1,41 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node name="/org/bluez/3003/hci0/dev_XX_XX_XX_XX_XX_XX">
+ <interface name="org.bluez.Device">
+ <method name="GetProperties">
+ <arg type="a{sv}" direction="out"/>
+ <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="QVariantMap"/>
+ </method>
+ <method name="SetProperty">
+ <arg type="s" direction="in"/>
+ <arg type="v" direction="in"/>
+ </method>
+ <method name="DiscoverServices">
+ <arg type="s" direction="in"/>
+ <arg type="a{us}" direction="out"/>
+ <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="ServiceMap"/>
+ </method>
+ <method name="CancelDiscovery"/>
+ <method name="Disconnect"/>
+ <method name="ListNodes">
+ <arg type="ao" direction="out"/>
+ </method>
+ <method name="CreateNode">
+ <arg type="s" direction="in"/>
+ <arg type="o" direction="out"/>
+ </method>
+ <method name="RemoveNode">
+ <arg type="o" direction="in"/>
+ </method>
+ <signal name="PropertyChanged">
+ <arg type="s"/>
+ <arg type="v"/>
+ </signal>
+ <signal name="DisconnectRequested"/>
+ <signal name="NodeCreated">
+ <arg type="o"/>
+ </signal>
+ <signal name="NodeRemoved">
+ <arg type="o"/>
+ </signal>
+ </interface>
+</node>
diff --git a/src/bluetooth/bluez/org.bluez.Manager.xml b/src/bluetooth/bluez/org.bluez.Manager.xml
new file mode 100644
index 00000000..60b9baba
--- /dev/null
+++ b/src/bluetooth/bluez/org.bluez.Manager.xml
@@ -0,0 +1,25 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node name="/">
+ <interface name="org.bluez.Manager">
+ <method name="DefaultAdapter">
+ <arg type="o" direction="out"/>
+ </method>
+ <method name="FindAdapter">
+ <arg type="s" direction="in"/>
+ <arg type="o" direction="out"/>
+ </method>
+ <method name="ListAdapters">
+ <arg type="ao" direction="out"/>
+ </method>
+ <signal name="AdapterAdded">
+ <arg type="o"/>
+ </signal>
+ <signal name="AdapterRemoved">
+ <arg type="o"/>
+ </signal>
+ <signal name="DefaultAdapterChanged">
+ <arg type="o"/>
+ </signal>
+ </interface>
+ <node name="org"/>
+</node>
diff --git a/src/bluetooth/bluez/org.bluez.Service.xml b/src/bluetooth/bluez/org.bluez.Service.xml
new file mode 100644
index 00000000..e18516a3
--- /dev/null
+++ b/src/bluetooth/bluez/org.bluez.Service.xml
@@ -0,0 +1,21 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node name="/org/bluez/3003/any">
+ <interface name="org.bluez.Service">
+ <method name="AddRecord">
+ <arg type="s" direction="in"/>
+ <arg type="u" direction="out"/>
+ </method>
+ <method name="UpdateRecord">
+ <arg type="u" direction="in"/>
+ <arg type="s" direction="in"/>
+ </method>
+ <method name="RemoveRecord">
+ <arg type="u" direction="in"/>
+ </method>
+ <method name="RequestAuthorization">
+ <arg type="s" direction="in"/>
+ <arg type="u" direction="in"/>
+ </method>
+ <method name="CancelAuthorization"/>
+ </interface>
+</node>
diff --git a/src/bluetooth/bluez/org.bluez.all.xml b/src/bluetooth/bluez/org.bluez.all.xml
new file mode 100644
index 00000000..b48a01f3
--- /dev/null
+++ b/src/bluetooth/bluez/org.bluez.all.xml
@@ -0,0 +1,145 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node name="/org/bluez/3003/hci0">
+ <interface name="org.bluez.Adapter">
+ <method name="GetProperties">
+ <arg type="a{sv}" direction="out"/>
+ <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="QVariantMap"/>
+ </method>
+ <method name="SetProperty">
+ <arg type="s" direction="in"/>
+ <arg type="v" direction="in"/>
+ </method>
+ <method name="RequestMode">
+ <arg type="s" direction="in"/>
+ </method>
+ <method name="ReleaseMode"/>
+ <method name="RequestSession"/>
+ <method name="ReleaseSession"/>
+ <method name="StartDiscovery"/>
+ <method name="StopDiscovery"/>
+ <method name="ListDevices">
+ <arg type="ao" direction="out"/>
+ </method>
+ <method name="CreateDevice">
+ <arg type="s" direction="in"/>
+ <arg type="o" direction="out"/>
+ </method>
+ <method name="CreatePairedDevice">
+ <arg type="s" direction="in"/>
+ <arg type="o" direction="in"/>
+ <arg type="s" direction="in"/>
+ <arg type="o" direction="out"/>
+ </method>
+ <method name="CancelDeviceCreation">
+ <arg type="s" direction="in"/>
+ </method>
+ <method name="RemoveDevice">
+ <arg type="o" direction="in"/>
+ </method>
+ <method name="FindDevice">
+ <arg type="s" direction="in"/>
+ <arg type="o" direction="out"/>
+ </method>
+ <method name="RegisterAgent">
+ <arg type="o" direction="in"/>
+ <arg type="s" direction="in"/>
+ </method>
+ <method name="UnregisterAgent">
+ <arg type="o" direction="in"/>
+ </method>
+ <signal name="DeviceCreated">
+ <arg type="o"/>
+ </signal>
+ <signal name="DeviceRemoved">
+ <arg type="o"/>
+ </signal>
+ <signal name="DeviceFound">
+ <arg type="s"/>
+ <arg type="a{sv}"/>
+ <annotation name="com.trolltech.QtDBus.QtTypeName.In1" value="QVariantMap"/>
+ </signal>
+ <signal name="PropertyChanged">
+ <arg type="s"/>
+ <arg type="v"/>
+ </signal>
+ <signal name="DeviceDisappeared">
+ <arg type="s"/>
+ </signal>
+ </interface>
+ <interface name="org.bluez.Service">
+ <method name="AddRecord">
+ <arg type="s" direction="in"/>
+ <arg type="u" direction="out"/>
+ </method>
+ <method name="UpdateRecord">
+ <arg type="u" direction="in"/>
+ <arg type="s" direction="in"/>
+ </method>
+ <method name="RemoveRecord">
+ <arg type="u" direction="in"/>
+ </method>
+ <method name="RequestAuthorization">
+ <arg type="s" direction="in"/>
+ <arg type="u" direction="in"/>
+ </method>
+ <method name="CancelAuthorization"/>
+ </interface>
+ <interface name="org.bluez.SerialProxyManager">
+ <method name="CreateProxy">
+ <arg type="s" direction="in"/>
+ <arg type="s" direction="in"/>
+ <arg type="s" direction="out"/>
+ </method>
+ <method name="ListProxies">
+ <arg type="as" direction="out"/>
+ </method>
+ <method name="RemoveProxy">
+ <arg type="s" direction="in"/>
+ </method>
+ <signal name="ProxyCreated">
+ <arg type="s"/>
+ </signal>
+ <signal name="ProxyRemoved">
+ <arg type="s"/>
+ </signal>
+ </interface>
+ <interface name="org.bluez.NetworkPeer">
+ <method name="SetProperty">
+ <arg type="s" direction="in"/>
+ <arg type="v" direction="in"/>
+ </method>
+ <method name="GetProperties">
+ <arg type="a{sv}" direction="out"/>
+ </method>
+ <signal name="PropertyChanged">
+ <arg type="s"/>
+ <arg type="v"/>
+ </signal>
+ </interface>
+ <interface name="org.bluez.NetworkHub">
+ <method name="SetProperty">
+ <arg type="s" direction="in"/>
+ <arg type="v" direction="in"/>
+ </method>
+ <method name="GetProperties">
+ <arg type="a{sv}" direction="out"/>
+ </method>
+ <signal name="PropertyChanged">
+ <arg type="s"/>
+ <arg type="v"/>
+ </signal>
+ </interface>
+ <interface name="org.bluez.NetworkRouter">
+ <method name="SetProperty">
+ <arg type="s" direction="in"/>
+ <arg type="v" direction="in"/>
+ </method>
+ <method name="GetProperties">
+ <arg type="a{sv}" direction="out"/>
+ </method>
+ <signal name="PropertyChanged">
+ <arg type="s"/>
+ <arg type="v"/>
+ </signal>
+ </interface>
+</node>
diff --git a/src/bluetooth/bluez/org.openobex.agent.xml b/src/bluetooth/bluez/org.openobex.agent.xml
new file mode 100644
index 00000000..d21f3149
--- /dev/null
+++ b/src/bluetooth/bluez/org.openobex.agent.xml
@@ -0,0 +1,24 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node>
+ <interface name="org.openobex.Agent">
+ <method name="Release">
+ </method>
+ <method name="Request">
+ <arg type="o" direction="in"/>
+ <arg type="s" direction="out"/>
+ </method>
+ <method name="Progress">
+ <arg type="o" direction="in"/>
+ <arg type="t" direction="in"/>
+ </method>
+ <method name="Complete">
+ <arg type="o" direction="in"/>
+ </method>
+ <method name="Error">
+ <arg type="o" direction="in"/>
+ <arg type="s" direction="in"/>
+ </method>
+ </interface>
+</node>
+
diff --git a/src/bluetooth/bluez/org.openobex.all.xml b/src/bluetooth/bluez/org.openobex.all.xml
new file mode 100644
index 00000000..4e5b65b2
--- /dev/null
+++ b/src/bluetooth/bluez/org.openobex.all.xml
@@ -0,0 +1,31 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node name="/">
+ <interface name="org.freedesktop.DBus.Introspectable">
+ <method name="Introspect">
+ <arg type="s" direction="out"/>
+ </method>
+ </interface>
+ <interface name="org.openobex.Manager">
+ <method name="RegisterAgent">
+ <arg type="o" direction="in"/>
+ </method>
+ <method name="UnregisterAgent">
+ <arg type="o" direction="in"/>
+ </method>
+ <signal name="TransferStarted">
+ <arg type="o"/>
+ </signal>
+ <signal name="TransferCompleted">
+ <arg type="o"/>
+ <arg type="b"/>
+ </signal>
+ <signal name="SessionCreated">
+ <arg type="o"/>
+ </signal>
+ <signal name="SessionRemoved">
+ <arg type="o"/>
+ </signal>
+ </interface>
+</node>
+
diff --git a/src/bluetooth/bluez/org.openobex.client.xml b/src/bluetooth/bluez/org.openobex.client.xml
new file mode 100644
index 00000000..fad2f6ef
--- /dev/null
+++ b/src/bluetooth/bluez/org.openobex.client.xml
@@ -0,0 +1,40 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node name="/">
+ <interface name="org.freedesktop.DBus.Introspectable">
+ <method name="Introspect">
+ <arg type="s" direction="out"/>
+ </method>
+ </interface>
+ <interface name="org.openobex.Client">
+ <method name="SendFiles">
+ <arg type="a{sv}" direction="in"/>
+ <annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="QVariantMap"/>
+ <arg type="as" direction="in"/>
+ <arg type="o" direction="in"/>
+ </method>
+ <method name="PullBusinessCard">
+ <arg type="a{sv}" direction="in"/>
+ <annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="QVariantMap"/>
+ <arg type="s" direction="in"/>
+ </method>
+ <method name="ExchangeBusinessCards">
+ <arg type="a{sv}" direction="in"/>
+ <annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="QVariantMap"/>
+ <arg type="s" direction="in"/>
+ <arg type="s" direction="in"/>
+ </method>
+ <method name="CreateSession">
+ <arg type="a{sv}" direction="in"/>
+ <annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="QVariantMap"/>
+ <arg type="o" direction="out"/>
+ </method>
+ <method name="GetCapabilities">
+ <arg type="a{sv}" direction="in"/>
+ <annotation name="com.trolltech.QtDBus.QtTypeName.In0" value="QVariantMap"/>
+ <arg type="s" direction="out"/>
+ </method>
+ </interface>
+ <node name="org"/>
+</node>
+
diff --git a/src/bluetooth/bluez/org.openobex.transfer.xml b/src/bluetooth/bluez/org.openobex.transfer.xml
new file mode 100644
index 00000000..21033665
--- /dev/null
+++ b/src/bluetooth/bluez/org.openobex.transfer.xml
@@ -0,0 +1,19 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node name="/">
+ <interface name="org.freedesktop.DBus.Introspectable">
+ <method name="Introspect">
+ <arg type="s" direction="out"/>
+ </method>
+ </interface>
+ <interface name="org.openobex.Transfer">
+ <method name="GetProperties">
+ <arg type="a{sv}" direction="out"/>
+ <annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="QVariantMap"/>
+ </method>
+ <method name="Cancel">
+ </method>
+ </interface>
+ <node name="org"/>
+</node>
+
diff --git a/src/bluetooth/bluez/service.cpp b/src/bluetooth/bluez/service.cpp
new file mode 100644
index 00000000..811eb2fd
--- /dev/null
+++ b/src/bluetooth/bluez/service.cpp
@@ -0,0 +1,26 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -p service_p.h:service.cpp org.bluez.all.xml org.bluez.Service
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * This file may have been hand-edited. Look for HAND-EDIT comments
+ * before re-generating it.
+ */
+
+#include "service_p.h"
+
+/*
+ * Implementation of interface class OrgBluezServiceInterface
+ */
+
+OrgBluezServiceInterface::OrgBluezServiceInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
+ : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
+{
+}
+
+OrgBluezServiceInterface::~OrgBluezServiceInterface()
+{
+}
+
diff --git a/src/bluetooth/bluez/service_p.h b/src/bluetooth/bluez/service_p.h
new file mode 100644
index 00000000..dd0f69d6
--- /dev/null
+++ b/src/bluetooth/bluez/service_p.h
@@ -0,0 +1,81 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.7
+ * Command line was: qdbusxml2cpp -p service_p.h:service.cpp org.bluez.all.xml org.bluez.Service
+ *
+ * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * This is an auto-generated file.
+ * Do not edit! All changes made to it will be lost.
+ */
+
+#ifndef SERVICE_P_H_1277421939
+#define SERVICE_P_H_1277421939
+
+#include <QtCore/QObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+#include <QtDBus/QtDBus>
+
+/*
+ * Proxy class for interface org.bluez.Service
+ */
+class OrgBluezServiceInterface: public QDBusAbstractInterface
+{
+ Q_OBJECT
+public:
+ static inline const char *staticInterfaceName()
+ { return "org.bluez.Service"; }
+
+public:
+ OrgBluezServiceInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
+
+ ~OrgBluezServiceInterface();
+
+public Q_SLOTS: // METHODS
+ inline QDBusPendingReply<uint> AddRecord(const QString &in0)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0);
+ return asyncCallWithArgumentList(QLatin1String("AddRecord"), argumentList);
+ }
+
+ inline QDBusPendingReply<> CancelAuthorization()
+ {
+ QList<QVariant> argumentList;
+ return asyncCallWithArgumentList(QLatin1String("CancelAuthorization"), argumentList);
+ }
+
+ inline QDBusPendingReply<> RemoveRecord(uint in0)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0);
+ return asyncCallWithArgumentList(QLatin1String("RemoveRecord"), argumentList);
+ }
+
+ inline QDBusPendingReply<> RequestAuthorization(const QString &in0, uint in1)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0) << qVariantFromValue(in1);
+ return asyncCallWithArgumentList(QLatin1String("RequestAuthorization"), argumentList);
+ }
+
+ inline QDBusPendingReply<> UpdateRecord(uint in0, const QString &in1)
+ {
+ QList<QVariant> argumentList;
+ argumentList << qVariantFromValue(in0) << qVariantFromValue(in1);
+ return asyncCallWithArgumentList(QLatin1String("UpdateRecord"), argumentList);
+ }
+
+Q_SIGNALS: // SIGNALS
+};
+
+namespace org {
+ namespace bluez {
+ typedef ::OrgBluezServiceInterface Service;
+ }
+}
+#endif
diff --git a/src/bluetooth/bluez/servicemap.cpp b/src/bluetooth/bluez/servicemap.cpp
new file mode 100644
index 00000000..5e9a2995
--- /dev/null
+++ b/src/bluetooth/bluez/servicemap.cpp
@@ -0,0 +1,63 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the Qt Mobility Components.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** GNU Lesser General Public License Usage
+** This file may be used under the terms of the GNU Lesser General Public
+** License version 2.1 as published by the Free Software Foundation and
+** appearing in the file LICENSE.LGPL included in the packaging of this
+** file. Please review the following information to ensure the GNU Lesser
+** General Public License version 2.1 requirements will be met:
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU General
+** Public License version 3.0 as published by the Free Software Foundation
+** and appearing in the file LICENSE.GPL included in the packaging of this
+** file. Please review the following information to ensure the GNU General
+** Public License version 3.0 requirements will be met:
+** http://www.gnu.org/copyleft/gpl.html.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms and
+** conditions contained in a signed written agreement between you and Nokia.
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "servicemap_p.h"
+
+const QDBusArgument &operator>>(const QDBusArgument &argument, ServiceMap &serviceMap)
+{
+ argument.beginMap();
+
+ while (!argument.atEnd()) {
+ quint32 uuid;
+ QString service;
+
+ argument.beginMapEntry();
+ argument >> uuid;
+ argument >> service;
+ argument.endMapEntry();
+
+ serviceMap.insert(uuid, service);
+ }
+
+ argument.endMap();
+
+ return argument;
+}
diff --git a/src/bluetooth/bluez/servicemap_p.h b/src/bluetooth/bluez/servicemap_p.h
new file mode 100644
index 00000000..4504d4d6
--- /dev/null
+++ b/src/bluetooth/bluez/servicemap_p.h
@@ -0,0 +1,55 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the Qt Mobility Components.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** GNU Lesser General Public License Usage
+** This file may be used under the terms of the GNU Lesser General Public
+** License version 2.1 as published by the Free Software Foundation and
+** appearing in the file LICENSE.LGPL included in the packaging of this
+** file. Please review the following information to ensure the GNU Lesser
+** General Public License version 2.1 requirements will be met:
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU General
+** Public License version 3.0 as published by the Free Software Foundation
+** and appearing in the file LICENSE.GPL included in the packaging of this
+** file. Please review the following information to ensure the GNU General
+** Public License version 3.0 requirements will be met:
+** http://www.gnu.org/copyleft/gpl.html.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms and
+** conditions contained in a signed written agreement between you and Nokia.
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef SERVICEMAP_P_H
+#define SERVICEMAP_P_H
+
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtDBus/QDBusArgument>
+
+typedef QMap<quint32, QString> ServiceMap;
+
+const QDBusArgument &operator>>(const QDBusArgument &argument, ServiceMap &serviceMap);
+
+Q_DECLARE_METATYPE(ServiceMap)
+
+#endif // SERVICEMAP_P_H