From 89b1f72af23666afb9361c0e02902c3aec8987ba Mon Sep 17 00:00:00 2001 From: Kevron Rees Date: Wed, 25 May 2011 10:24:57 -0700 Subject: [PATCH] reorganized bluetooth-qt and added declarative plugin --- bluetooth-qt.pro | 77 +---- adapter.xml => bluetooth-qt/adapter.xml | 0 agentadaptor.cpp => bluetooth-qt/agentadaptor.cpp | 0 agentadaptor.h => bluetooth-qt/agentadaptor.h | 0 asyncagent.cpp => bluetooth-qt/asyncagent.cpp | 0 asyncagent.h => bluetooth-qt/asyncagent.h | 0 bluetooth-qt/audio.cpp | 26 ++ bluetooth-qt/audio.h | 66 +++++ audio.xml => bluetooth-qt/audio.xml | 0 bluetooth-qt/audiosink.cpp | 26 ++ bluetooth-qt/audiosink.h | 76 +++++ audiosink.xml => bluetooth-qt/audiosink.xml | 0 bluetooth-qt/audiosource.cpp | 26 ++ bluetooth-qt/audiosource.h | 66 +++++ audiosrc.xml => bluetooth-qt/audiosrc.xml | 0 bluetooth-qt/blueadapter.cpp | 26 ++ bluetooth-qt/blueadapter.h | 144 ++++++++++ bluetooth-qt/bluedevice.cpp | 26 ++ bluetooth-qt/bluedevice.h | 82 ++++++ bluetooth-qt/bluemanager.cpp | 26 ++ bluetooth-qt/bluemanager.h | 76 +++++ .../bluetooth-qt.conf | 0 bluetooth-qt/bluetooth-qt.pro | 74 +++++ .../bluetoothbaseagent.cpp | 0 .../bluetoothbaseagent.h | 0 .../bluetoothdevice.cpp | 0 .../bluetoothdevice.h | 0 .../bluetoothdevicemodel.cpp | 0 .../bluetoothdevicemodel.h | 0 btprofiles.h => bluetooth-qt/btprofiles.h | 0 device.xml => bluetooth-qt/device.xml | 0 devicetypes.h => bluetooth-qt/devicetypes.h | 0 bluetooth-qt/headset.cpp | 26 ++ bluetooth-qt/headset.h | 143 ++++++++++ headset.xml => bluetooth-qt/headset.xml | 0 bluetooth-qt/input.cpp | 26 ++ bluetooth-qt/input.h | 66 +++++ input.xml => bluetooth-qt/input.xml | 0 manager.xml => bluetooth-qt/manager.xml | 0 bluetooth-qt/moc_agentadaptor.cpp | 107 +++++++ bluetooth-qt/moc_asyncagent.cpp | 86 ++++++ bluetooth-qt/moc_audio.cpp | 101 +++++++ bluetooth-qt/moc_audiosink.cpp | 138 +++++++++ bluetooth-qt/moc_audiosource.cpp | 101 +++++++ bluetooth-qt/moc_blueadapter.cpp | 183 ++++++++++++ bluetooth-qt/moc_bluedevice.cpp | 117 ++++++++ bluetooth-qt/moc_bluemanager.cpp | 137 +++++++++ bluetooth-qt/moc_bluetoothbaseagent.cpp | 108 +++++++ bluetooth-qt/moc_bluetoothdevice.cpp | 269 ++++++++++++++++++ bluetooth-qt/moc_bluetoothdevicemodel.cpp | 255 +++++++++++++++++ bluetooth-qt/moc_headset.cpp | 210 ++++++++++++++ bluetooth-qt/moc_input.cpp | 101 +++++++ bluetooth-qt/moc_nearbydevicesmodel.cpp | 314 +++++++++++++++++++++ bluetooth-qt/moc_obexagent.cpp | 103 +++++++ bluetooth-qt/moc_obexclient.cpp | 100 +++++++ bluetooth-qt/moc_obexftp.cpp | 144 ++++++++++ bluetooth-qt/moc_obexsession.cpp | 181 ++++++++++++ bluetooth-qt/moc_obextransfer.cpp | 86 ++++++ .../nearbydevicesmodel.cpp | 0 .../nearbydevicesmodel.h | 0 {obex => bluetooth-qt/obex}/agent.xml | 0 {obex => bluetooth-qt/obex}/client.xml | 0 {obex => bluetooth-qt/obex}/obex.pri | 0 bluetooth-qt/obex/obexagent.cpp | 59 ++++ bluetooth-qt/obex/obexagent.h | 60 ++++ bluetooth-qt/obex/obexclient.cpp | 26 ++ bluetooth-qt/obex/obexclient.h | 82 ++++++ {obex => bluetooth-qt/obex}/obexftp.cpp | 0 {obex => bluetooth-qt/obex}/obexftp.h | 0 bluetooth-qt/obex/obexsession.cpp | 39 +++ bluetooth-qt/obex/obexsession.h | 149 ++++++++++ bluetooth-qt/obex/obextransfer.cpp | 26 ++ bluetooth-qt/obex/obextransfer.h | 59 ++++ {obex => bluetooth-qt/obex}/session.xml | 0 {obex => bluetooth-qt/obex}/transfer.xml | 0 {obex => bluetooth-qt/obex}/types.h | 0 declarative/components.cpp | 28 ++ declarative/components.h | 24 ++ declarative/declarative.pro | 27 ++ declarative/qmldir | 1 + 80 files changed, 4425 insertions(+), 74 deletions(-) rename adapter.xml => bluetooth-qt/adapter.xml (100%) rename agentadaptor.cpp => bluetooth-qt/agentadaptor.cpp (100%) rename agentadaptor.h => bluetooth-qt/agentadaptor.h (100%) rename asyncagent.cpp => bluetooth-qt/asyncagent.cpp (100%) rename asyncagent.h => bluetooth-qt/asyncagent.h (100%) create mode 100644 bluetooth-qt/audio.cpp create mode 100644 bluetooth-qt/audio.h rename audio.xml => bluetooth-qt/audio.xml (100%) create mode 100644 bluetooth-qt/audiosink.cpp create mode 100644 bluetooth-qt/audiosink.h rename audiosink.xml => bluetooth-qt/audiosink.xml (100%) create mode 100644 bluetooth-qt/audiosource.cpp create mode 100644 bluetooth-qt/audiosource.h rename audiosrc.xml => bluetooth-qt/audiosrc.xml (100%) create mode 100644 bluetooth-qt/blueadapter.cpp create mode 100644 bluetooth-qt/blueadapter.h create mode 100644 bluetooth-qt/bluedevice.cpp create mode 100644 bluetooth-qt/bluedevice.h create mode 100644 bluetooth-qt/bluemanager.cpp create mode 100644 bluetooth-qt/bluemanager.h rename bluetooth-qt.conf => bluetooth-qt/bluetooth-qt.conf (100%) create mode 100644 bluetooth-qt/bluetooth-qt.pro rename bluetoothbaseagent.cpp => bluetooth-qt/bluetoothbaseagent.cpp (100%) rename bluetoothbaseagent.h => bluetooth-qt/bluetoothbaseagent.h (100%) rename bluetoothdevice.cpp => bluetooth-qt/bluetoothdevice.cpp (100%) rename bluetoothdevice.h => bluetooth-qt/bluetoothdevice.h (100%) rename bluetoothdevicemodel.cpp => bluetooth-qt/bluetoothdevicemodel.cpp (100%) rename bluetoothdevicemodel.h => bluetooth-qt/bluetoothdevicemodel.h (100%) rename btprofiles.h => bluetooth-qt/btprofiles.h (100%) rename device.xml => bluetooth-qt/device.xml (100%) rename devicetypes.h => bluetooth-qt/devicetypes.h (100%) create mode 100644 bluetooth-qt/headset.cpp create mode 100644 bluetooth-qt/headset.h rename headset.xml => bluetooth-qt/headset.xml (100%) create mode 100644 bluetooth-qt/input.cpp create mode 100644 bluetooth-qt/input.h rename input.xml => bluetooth-qt/input.xml (100%) rename manager.xml => bluetooth-qt/manager.xml (100%) create mode 100644 bluetooth-qt/moc_agentadaptor.cpp create mode 100644 bluetooth-qt/moc_asyncagent.cpp create mode 100644 bluetooth-qt/moc_audio.cpp create mode 100644 bluetooth-qt/moc_audiosink.cpp create mode 100644 bluetooth-qt/moc_audiosource.cpp create mode 100644 bluetooth-qt/moc_blueadapter.cpp create mode 100644 bluetooth-qt/moc_bluedevice.cpp create mode 100644 bluetooth-qt/moc_bluemanager.cpp create mode 100644 bluetooth-qt/moc_bluetoothbaseagent.cpp create mode 100644 bluetooth-qt/moc_bluetoothdevice.cpp create mode 100644 bluetooth-qt/moc_bluetoothdevicemodel.cpp create mode 100644 bluetooth-qt/moc_headset.cpp create mode 100644 bluetooth-qt/moc_input.cpp create mode 100644 bluetooth-qt/moc_nearbydevicesmodel.cpp create mode 100644 bluetooth-qt/moc_obexagent.cpp create mode 100644 bluetooth-qt/moc_obexclient.cpp create mode 100644 bluetooth-qt/moc_obexftp.cpp create mode 100644 bluetooth-qt/moc_obexsession.cpp create mode 100644 bluetooth-qt/moc_obextransfer.cpp rename nearbydevicesmodel.cpp => bluetooth-qt/nearbydevicesmodel.cpp (100%) rename nearbydevicesmodel.h => bluetooth-qt/nearbydevicesmodel.h (100%) rename {obex => bluetooth-qt/obex}/agent.xml (100%) rename {obex => bluetooth-qt/obex}/client.xml (100%) rename {obex => bluetooth-qt/obex}/obex.pri (100%) create mode 100644 bluetooth-qt/obex/obexagent.cpp create mode 100644 bluetooth-qt/obex/obexagent.h create mode 100644 bluetooth-qt/obex/obexclient.cpp create mode 100644 bluetooth-qt/obex/obexclient.h rename {obex => bluetooth-qt/obex}/obexftp.cpp (100%) rename {obex => bluetooth-qt/obex}/obexftp.h (100%) create mode 100644 bluetooth-qt/obex/obexsession.cpp create mode 100644 bluetooth-qt/obex/obexsession.h create mode 100644 bluetooth-qt/obex/obextransfer.cpp create mode 100644 bluetooth-qt/obex/obextransfer.h rename {obex => bluetooth-qt/obex}/session.xml (100%) rename {obex => bluetooth-qt/obex}/transfer.xml (100%) rename {obex => bluetooth-qt/obex}/types.h (100%) create mode 100644 declarative/components.cpp create mode 100644 declarative/components.h create mode 100644 declarative/declarative.pro create mode 100644 declarative/qmldir diff --git a/bluetooth-qt.pro b/bluetooth-qt.pro index 6aacc53..52e0afc 100644 --- a/bluetooth-qt.pro +++ b/bluetooth-qt.pro @@ -1,74 +1,3 @@ -system(qdbusxml2cpp -p bluemanager.h:bluemanager.cpp manager.xml) -system(qdbusxml2cpp -p blueadapter.h:blueadapter.cpp adapter.xml) -system(qdbusxml2cpp -p bluedevice.h:bluedevice.cpp -i devicetypes.h device.xml) -system(qdbusxml2cpp -p audio.h:audio.cpp audio.xml) -system(qdbusxml2cpp -p audiosink.h:audiosink.cpp audiosink.xml) -system(qdbusxml2cpp -p audiosource.h:audiosource.cpp audiosrc.xml) -system(qdbusxml2cpp -p headset.h:headset.cpp headset.xml) -system(qdbusxml2cpp -p input.h:input.cpp input.xml) -include(obex/obex.pri) - -VERSION+= 0.0.7 - -TEMPLATE = lib -TARGET = bluetooth-qt -QT += dbus -CONFIG += link_pkgconfig \ - debug -OTHER_FILES += bluetooth-qt.conf \ - manager.xml \ - device.xml \ - audiosrc.xml \ - audiosink.xml \ - adapter.xml \ - headset.xml \ - input.xml -HEADERS += agentadaptor.h \ - bluemanager.h \ - bluedevice.h \ - blueadapter.h \ - audiosource.h \ - audiosink.h \ - headset.h \ - btprofiles.h \ - nearbydevicesmodel.h \ - bluetoothbaseagent.h \ - asyncagent.h \ - devicetypes.h \ - bluetoothdevice.h \ - bluetoothdevicemodel.h \ - audio.h \ - input.h -SOURCES += agentadaptor.cpp \ - bluemanager.cpp \ - bluedevice.cpp \ - blueadapter.cpp \ - audiosource.cpp \ - audiosink.cpp \ - headset.cpp \ - nearbydevicesmodel.cpp \ - bluetoothbaseagent.cpp \ - asyncagent.cpp \ - bluetoothdevice.cpp \ - bluetoothdevicemodel.cpp \ - audio.cpp \ - input.cpp - -target.path = $$INSTALL_ROOT/usr/lib -headers.path = $$INSTALL_ROOT/usr/include/bluetooth-qt/ -headers.files = $$HEADERS -INSTALLS += target \ - headers - -CONFIG += create_pc create_prl -QMAKE_PKGCONFIG_DESCRIPTION = Qt Bluetooth Library -QMAKE_PKGCONFIG_INCDIR = $$headers.path -pkgconfig.path = $$INSTALL_ROOT/usr/lib/pkgconfig -pkgconfig.files = bluetooth-qt.pc - -INSTALLS += pkgconfig - -dbusfiles.path = $$INSTALL_ROOT/etc/dbus-1/system.d -dbusfiles.files = bluetooth-qt.conf - -INSTALLS += dbusfiles +TEMPLATE = subdirs +SUBDIRS += bluetooth-qt declarative +CONFIG += ordered diff --git a/adapter.xml b/bluetooth-qt/adapter.xml similarity index 100% rename from adapter.xml rename to bluetooth-qt/adapter.xml diff --git a/agentadaptor.cpp b/bluetooth-qt/agentadaptor.cpp similarity index 100% rename from agentadaptor.cpp rename to bluetooth-qt/agentadaptor.cpp diff --git a/agentadaptor.h b/bluetooth-qt/agentadaptor.h similarity index 100% rename from agentadaptor.h rename to bluetooth-qt/agentadaptor.h diff --git a/asyncagent.cpp b/bluetooth-qt/asyncagent.cpp similarity index 100% rename from asyncagent.cpp rename to bluetooth-qt/asyncagent.cpp diff --git a/asyncagent.h b/bluetooth-qt/asyncagent.h similarity index 100% rename from asyncagent.h rename to bluetooth-qt/asyncagent.h diff --git a/bluetooth-qt/audio.cpp b/bluetooth-qt/audio.cpp new file mode 100644 index 0000000..f23c88c --- /dev/null +++ b/bluetooth-qt/audio.cpp @@ -0,0 +1,26 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p audio.h:audio.cpp audio.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 "audio.h" + +/* + * Implementation of interface class OrgBluezAudioInterface + */ + +OrgBluezAudioInterface::OrgBluezAudioInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent) + : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent) +{ +} + +OrgBluezAudioInterface::~OrgBluezAudioInterface() +{ +} + diff --git a/bluetooth-qt/audio.h b/bluetooth-qt/audio.h new file mode 100644 index 0000000..65da434 --- /dev/null +++ b/bluetooth-qt/audio.h @@ -0,0 +1,66 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p audio.h:audio.cpp audio.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 AUDIO_H_1306343853 +#define AUDIO_H_1306343853 + +#include +#include +#include +#include +#include +#include +#include +#include + +/* + * Proxy class for interface org.bluez.Audio + */ +class OrgBluezAudioInterface: public QDBusAbstractInterface +{ + Q_OBJECT +public: + static inline const char *staticInterfaceName() + { return "org.bluez.Audio"; } + +public: + OrgBluezAudioInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); + + ~OrgBluezAudioInterface(); + +public Q_SLOTS: // METHODS + inline QDBusPendingReply<> Connect() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("Connect"), argumentList); + } + + inline QDBusPendingReply<> Disconnect() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("Disconnect"), argumentList); + } + + inline QDBusPendingReply GetProperties() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("GetProperties"), argumentList); + } + +Q_SIGNALS: // SIGNALS + void PropertyChanged(const QString &in0, const QDBusVariant &in1); +}; + +namespace org { + namespace bluez { + typedef ::OrgBluezAudioInterface Audio; + } +} +#endif diff --git a/audio.xml b/bluetooth-qt/audio.xml similarity index 100% rename from audio.xml rename to bluetooth-qt/audio.xml diff --git a/bluetooth-qt/audiosink.cpp b/bluetooth-qt/audiosink.cpp new file mode 100644 index 0000000..e9cf6eb --- /dev/null +++ b/bluetooth-qt/audiosink.cpp @@ -0,0 +1,26 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p audiosink.h:audiosink.cpp audiosink.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 "audiosink.h" + +/* + * Implementation of interface class OrgBluezAudioSinkInterface + */ + +OrgBluezAudioSinkInterface::OrgBluezAudioSinkInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent) + : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent) +{ +} + +OrgBluezAudioSinkInterface::~OrgBluezAudioSinkInterface() +{ +} + diff --git a/bluetooth-qt/audiosink.h b/bluetooth-qt/audiosink.h new file mode 100644 index 0000000..3d4e1e5 --- /dev/null +++ b/bluetooth-qt/audiosink.h @@ -0,0 +1,76 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p audiosink.h:audiosink.cpp audiosink.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 AUDIOSINK_H_1306343853 +#define AUDIOSINK_H_1306343853 + +#include +#include +#include +#include +#include +#include +#include +#include + +/* + * Proxy class for interface org.bluez.AudioSink + */ +class OrgBluezAudioSinkInterface: public QDBusAbstractInterface +{ + Q_OBJECT +public: + static inline const char *staticInterfaceName() + { return "org.bluez.AudioSink"; } + +public: + OrgBluezAudioSinkInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); + + ~OrgBluezAudioSinkInterface(); + +public Q_SLOTS: // METHODS + inline QDBusPendingReply<> Connect() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("Connect"), argumentList); + } + + inline QDBusPendingReply<> Disconnect() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("Disconnect"), argumentList); + } + + inline QDBusPendingReply GetProperties() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("GetProperties"), argumentList); + } + + inline QDBusPendingReply IsConnected() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("IsConnected"), argumentList); + } + +Q_SIGNALS: // SIGNALS + void Connected(); + void Disconnected(); + void Playing(); + void PropertyChanged(const QString &in0, const QDBusVariant &in1); + void Stopped(); +}; + +namespace org { + namespace bluez { + typedef ::OrgBluezAudioSinkInterface AudioSink; + } +} +#endif diff --git a/audiosink.xml b/bluetooth-qt/audiosink.xml similarity index 100% rename from audiosink.xml rename to bluetooth-qt/audiosink.xml diff --git a/bluetooth-qt/audiosource.cpp b/bluetooth-qt/audiosource.cpp new file mode 100644 index 0000000..1e839e0 --- /dev/null +++ b/bluetooth-qt/audiosource.cpp @@ -0,0 +1,26 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p audiosource.h:audiosource.cpp audiosrc.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 "audiosource.h" + +/* + * Implementation of interface class OrgBluezAudioSourceInterface + */ + +OrgBluezAudioSourceInterface::OrgBluezAudioSourceInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent) + : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent) +{ +} + +OrgBluezAudioSourceInterface::~OrgBluezAudioSourceInterface() +{ +} + diff --git a/bluetooth-qt/audiosource.h b/bluetooth-qt/audiosource.h new file mode 100644 index 0000000..7d98d06 --- /dev/null +++ b/bluetooth-qt/audiosource.h @@ -0,0 +1,66 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p audiosource.h:audiosource.cpp audiosrc.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 AUDIOSOURCE_H_1306343853 +#define AUDIOSOURCE_H_1306343853 + +#include +#include +#include +#include +#include +#include +#include +#include + +/* + * Proxy class for interface org.bluez.AudioSource + */ +class OrgBluezAudioSourceInterface: public QDBusAbstractInterface +{ + Q_OBJECT +public: + static inline const char *staticInterfaceName() + { return "org.bluez.AudioSource"; } + +public: + OrgBluezAudioSourceInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); + + ~OrgBluezAudioSourceInterface(); + +public Q_SLOTS: // METHODS + inline QDBusPendingReply<> Connect() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("Connect"), argumentList); + } + + inline QDBusPendingReply<> Disconnect() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("Disconnect"), argumentList); + } + + inline QDBusPendingReply GetProperties() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("GetProperties"), argumentList); + } + +Q_SIGNALS: // SIGNALS + void PropertyChanged(const QString &in0, const QDBusVariant &in1); +}; + +namespace org { + namespace bluez { + typedef ::OrgBluezAudioSourceInterface AudioSource; + } +} +#endif diff --git a/audiosrc.xml b/bluetooth-qt/audiosrc.xml similarity index 100% rename from audiosrc.xml rename to bluetooth-qt/audiosrc.xml diff --git a/bluetooth-qt/blueadapter.cpp b/bluetooth-qt/blueadapter.cpp new file mode 100644 index 0000000..e488354 --- /dev/null +++ b/bluetooth-qt/blueadapter.cpp @@ -0,0 +1,26 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p blueadapter.h:blueadapter.cpp adapter.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 "blueadapter.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/bluetooth-qt/blueadapter.h b/bluetooth-qt/blueadapter.h new file mode 100644 index 0000000..b83a5c5 --- /dev/null +++ b/bluetooth-qt/blueadapter.h @@ -0,0 +1,144 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p blueadapter.h:blueadapter.cpp adapter.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 BLUEADAPTER_H_1306343853 +#define BLUEADAPTER_H_1306343853 + +#include +#include +#include +#include +#include +#include +#include +#include + +/* + * 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 argumentList; + argumentList << qVariantFromValue(in0); + return asyncCallWithArgumentList(QLatin1String("CancelDeviceCreation"), argumentList); + } + + inline QDBusPendingReply CreateDevice(const QString &in0) + { + QList argumentList; + argumentList << qVariantFromValue(in0); + return asyncCallWithArgumentList(QLatin1String("CreateDevice"), argumentList); + } + + inline QDBusPendingReply CreatePairedDevice(const QString &in0, const QDBusObjectPath &in1, const QString &in2) + { + QList argumentList; + argumentList << qVariantFromValue(in0) << qVariantFromValue(in1) << qVariantFromValue(in2); + return asyncCallWithArgumentList(QLatin1String("CreatePairedDevice"), argumentList); + } + + inline QDBusPendingReply FindDevice(const QString &in0) + { + QList argumentList; + argumentList << qVariantFromValue(in0); + return asyncCallWithArgumentList(QLatin1String("FindDevice"), argumentList); + } + + inline QDBusPendingReply GetProperties() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("GetProperties"), argumentList); + } + + inline QDBusPendingReply > ListDevices() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("ListDevices"), argumentList); + } + + inline QDBusPendingReply<> RegisterAgent(const QDBusObjectPath &in0, const QString &in1) + { + QList argumentList; + argumentList << qVariantFromValue(in0) << qVariantFromValue(in1); + return asyncCallWithArgumentList(QLatin1String("RegisterAgent"), argumentList); + } + + inline QDBusPendingReply<> ReleaseSession() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("ReleaseSession"), argumentList); + } + + inline QDBusPendingReply<> RemoveDevice(const QDBusObjectPath &in0) + { + QList argumentList; + argumentList << qVariantFromValue(in0); + return asyncCallWithArgumentList(QLatin1String("RemoveDevice"), argumentList); + } + + inline QDBusPendingReply<> RequestSession() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("RequestSession"), argumentList); + } + + inline QDBusPendingReply<> SetProperty(const QString &in0, const QDBusVariant &in1) + { + QList argumentList; + argumentList << qVariantFromValue(in0) << qVariantFromValue(in1); + return asyncCallWithArgumentList(QLatin1String("SetProperty"), argumentList); + } + + inline QDBusPendingReply<> StartDiscovery() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("StartDiscovery"), argumentList); + } + + inline QDBusPendingReply<> StopDiscovery() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("StopDiscovery"), argumentList); + } + + inline QDBusPendingReply<> UnregisterAgent(const QDBusObjectPath &in0) + { + QList 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/bluetooth-qt/bluedevice.cpp b/bluetooth-qt/bluedevice.cpp new file mode 100644 index 0000000..e9a73f3 --- /dev/null +++ b/bluetooth-qt/bluedevice.cpp @@ -0,0 +1,26 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p bluedevice.h:bluedevice.cpp -i devicetypes.h device.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 "bluedevice.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/bluetooth-qt/bluedevice.h b/bluetooth-qt/bluedevice.h new file mode 100644 index 0000000..b08dfb0 --- /dev/null +++ b/bluetooth-qt/bluedevice.h @@ -0,0 +1,82 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p bluedevice.h:bluedevice.cpp -i devicetypes.h device.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 BLUEDEVICE_H_1306343853 +#define BLUEDEVICE_H_1306343853 + +#include +#include +#include +#include +#include +#include +#include +#include +#include "devicetypes.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 argumentList; + return asyncCallWithArgumentList(QLatin1String("CancelDiscovery"), argumentList); + } + + inline QDBusPendingReply<> Disconnect() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("Disconnect"), argumentList); + } + + inline QDBusPendingReply DiscoverServices(const QString &in0) + { + QList argumentList; + argumentList << qVariantFromValue(in0); + return asyncCallWithArgumentList(QLatin1String("DiscoverServices"), argumentList); + } + + inline QDBusPendingReply GetProperties() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("GetProperties"), argumentList); + } + + inline QDBusPendingReply<> SetProperty(const QString &in0, const QDBusVariant &in1) + { + QList argumentList; + argumentList << qVariantFromValue(in0) << qVariantFromValue(in1); + return asyncCallWithArgumentList(QLatin1String("SetProperty"), argumentList); + } + +Q_SIGNALS: // SIGNALS + void DisconnectRequested(); + void PropertyChanged(const QString &in0, const QDBusVariant &in1); +}; + +namespace org { + namespace bluez { + typedef ::OrgBluezDeviceInterface Device; + } +} +#endif diff --git a/bluetooth-qt/bluemanager.cpp b/bluetooth-qt/bluemanager.cpp new file mode 100644 index 0000000..54886bc --- /dev/null +++ b/bluetooth-qt/bluemanager.cpp @@ -0,0 +1,26 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p bluemanager.h:bluemanager.cpp manager.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 "bluemanager.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/bluetooth-qt/bluemanager.h b/bluetooth-qt/bluemanager.h new file mode 100644 index 0000000..559af96 --- /dev/null +++ b/bluetooth-qt/bluemanager.h @@ -0,0 +1,76 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p bluemanager.h:bluemanager.cpp manager.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 BLUEMANAGER_H_1306343853 +#define BLUEMANAGER_H_1306343853 + +#include +#include +#include +#include +#include +#include +#include +#include + +/* + * 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 DefaultAdapter() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("DefaultAdapter"), argumentList); + } + + inline QDBusPendingReply FindAdapter(const QString &in0) + { + QList argumentList; + argumentList << qVariantFromValue(in0); + return asyncCallWithArgumentList(QLatin1String("FindAdapter"), argumentList); + } + + inline QDBusPendingReply GetProperties() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("GetProperties"), argumentList); + } + + inline QDBusPendingReply > ListAdapters() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("ListAdapters"), argumentList); + } + +Q_SIGNALS: // SIGNALS + void AdapterAdded(const QDBusObjectPath &in0); + void AdapterRemoved(const QDBusObjectPath &in0); + void DefaultAdapterChanged(const QDBusObjectPath &in0); + void PropertyChanged(const QString &in0, const QDBusVariant &in1); +}; + +namespace org { + namespace bluez { + typedef ::OrgBluezManagerInterface Manager; + } +} +#endif diff --git a/bluetooth-qt.conf b/bluetooth-qt/bluetooth-qt.conf similarity index 100% rename from bluetooth-qt.conf rename to bluetooth-qt/bluetooth-qt.conf diff --git a/bluetooth-qt/bluetooth-qt.pro b/bluetooth-qt/bluetooth-qt.pro new file mode 100644 index 0000000..6aacc53 --- /dev/null +++ b/bluetooth-qt/bluetooth-qt.pro @@ -0,0 +1,74 @@ +system(qdbusxml2cpp -p bluemanager.h:bluemanager.cpp manager.xml) +system(qdbusxml2cpp -p blueadapter.h:blueadapter.cpp adapter.xml) +system(qdbusxml2cpp -p bluedevice.h:bluedevice.cpp -i devicetypes.h device.xml) +system(qdbusxml2cpp -p audio.h:audio.cpp audio.xml) +system(qdbusxml2cpp -p audiosink.h:audiosink.cpp audiosink.xml) +system(qdbusxml2cpp -p audiosource.h:audiosource.cpp audiosrc.xml) +system(qdbusxml2cpp -p headset.h:headset.cpp headset.xml) +system(qdbusxml2cpp -p input.h:input.cpp input.xml) +include(obex/obex.pri) + +VERSION+= 0.0.7 + +TEMPLATE = lib +TARGET = bluetooth-qt +QT += dbus +CONFIG += link_pkgconfig \ + debug +OTHER_FILES += bluetooth-qt.conf \ + manager.xml \ + device.xml \ + audiosrc.xml \ + audiosink.xml \ + adapter.xml \ + headset.xml \ + input.xml +HEADERS += agentadaptor.h \ + bluemanager.h \ + bluedevice.h \ + blueadapter.h \ + audiosource.h \ + audiosink.h \ + headset.h \ + btprofiles.h \ + nearbydevicesmodel.h \ + bluetoothbaseagent.h \ + asyncagent.h \ + devicetypes.h \ + bluetoothdevice.h \ + bluetoothdevicemodel.h \ + audio.h \ + input.h +SOURCES += agentadaptor.cpp \ + bluemanager.cpp \ + bluedevice.cpp \ + blueadapter.cpp \ + audiosource.cpp \ + audiosink.cpp \ + headset.cpp \ + nearbydevicesmodel.cpp \ + bluetoothbaseagent.cpp \ + asyncagent.cpp \ + bluetoothdevice.cpp \ + bluetoothdevicemodel.cpp \ + audio.cpp \ + input.cpp + +target.path = $$INSTALL_ROOT/usr/lib +headers.path = $$INSTALL_ROOT/usr/include/bluetooth-qt/ +headers.files = $$HEADERS +INSTALLS += target \ + headers + +CONFIG += create_pc create_prl +QMAKE_PKGCONFIG_DESCRIPTION = Qt Bluetooth Library +QMAKE_PKGCONFIG_INCDIR = $$headers.path +pkgconfig.path = $$INSTALL_ROOT/usr/lib/pkgconfig +pkgconfig.files = bluetooth-qt.pc + +INSTALLS += pkgconfig + +dbusfiles.path = $$INSTALL_ROOT/etc/dbus-1/system.d +dbusfiles.files = bluetooth-qt.conf + +INSTALLS += dbusfiles diff --git a/bluetoothbaseagent.cpp b/bluetooth-qt/bluetoothbaseagent.cpp similarity index 100% rename from bluetoothbaseagent.cpp rename to bluetooth-qt/bluetoothbaseagent.cpp diff --git a/bluetoothbaseagent.h b/bluetooth-qt/bluetoothbaseagent.h similarity index 100% rename from bluetoothbaseagent.h rename to bluetooth-qt/bluetoothbaseagent.h diff --git a/bluetoothdevice.cpp b/bluetooth-qt/bluetoothdevice.cpp similarity index 100% rename from bluetoothdevice.cpp rename to bluetooth-qt/bluetoothdevice.cpp diff --git a/bluetoothdevice.h b/bluetooth-qt/bluetoothdevice.h similarity index 100% rename from bluetoothdevice.h rename to bluetooth-qt/bluetoothdevice.h diff --git a/bluetoothdevicemodel.cpp b/bluetooth-qt/bluetoothdevicemodel.cpp similarity index 100% rename from bluetoothdevicemodel.cpp rename to bluetooth-qt/bluetoothdevicemodel.cpp diff --git a/bluetoothdevicemodel.h b/bluetooth-qt/bluetoothdevicemodel.h similarity index 100% rename from bluetoothdevicemodel.h rename to bluetooth-qt/bluetoothdevicemodel.h diff --git a/btprofiles.h b/bluetooth-qt/btprofiles.h similarity index 100% rename from btprofiles.h rename to bluetooth-qt/btprofiles.h diff --git a/device.xml b/bluetooth-qt/device.xml similarity index 100% rename from device.xml rename to bluetooth-qt/device.xml diff --git a/devicetypes.h b/bluetooth-qt/devicetypes.h similarity index 100% rename from devicetypes.h rename to bluetooth-qt/devicetypes.h diff --git a/bluetooth-qt/headset.cpp b/bluetooth-qt/headset.cpp new file mode 100644 index 0000000..59d5dfa --- /dev/null +++ b/bluetooth-qt/headset.cpp @@ -0,0 +1,26 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p headset.h:headset.cpp headset.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 "headset.h" + +/* + * Implementation of interface class OrgBluezHeadsetInterface + */ + +OrgBluezHeadsetInterface::OrgBluezHeadsetInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent) + : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent) +{ +} + +OrgBluezHeadsetInterface::~OrgBluezHeadsetInterface() +{ +} + diff --git a/bluetooth-qt/headset.h b/bluetooth-qt/headset.h new file mode 100644 index 0000000..c3cd2c9 --- /dev/null +++ b/bluetooth-qt/headset.h @@ -0,0 +1,143 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p headset.h:headset.cpp headset.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 HEADSET_H_1306343853 +#define HEADSET_H_1306343853 + +#include +#include +#include +#include +#include +#include +#include +#include + +/* + * Proxy class for interface org.bluez.Headset + */ +class OrgBluezHeadsetInterface: public QDBusAbstractInterface +{ + Q_OBJECT +public: + static inline const char *staticInterfaceName() + { return "org.bluez.Headset"; } + +public: + OrgBluezHeadsetInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); + + ~OrgBluezHeadsetInterface(); + +public Q_SLOTS: // METHODS + inline QDBusPendingReply<> CancelCall() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("CancelCall"), argumentList); + } + + inline QDBusPendingReply<> Connect() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("Connect"), argumentList); + } + + inline QDBusPendingReply<> Disconnect() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("Disconnect"), argumentList); + } + + inline QDBusPendingReply GetMicrophoneGain() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("GetMicrophoneGain"), argumentList); + } + + inline QDBusPendingReply GetProperties() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("GetProperties"), argumentList); + } + + inline QDBusPendingReply GetSpeakerGain() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("GetSpeakerGain"), argumentList); + } + + inline QDBusPendingReply<> IndicateCall() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("IndicateCall"), argumentList); + } + + inline QDBusPendingReply IsConnected() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("IsConnected"), argumentList); + } + + inline QDBusPendingReply IsPlaying() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("IsPlaying"), argumentList); + } + + inline QDBusPendingReply<> Play() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("Play"), argumentList); + } + + inline QDBusPendingReply<> SetMicrophoneGain(ushort in0) + { + QList argumentList; + argumentList << qVariantFromValue(in0); + return asyncCallWithArgumentList(QLatin1String("SetMicrophoneGain"), argumentList); + } + + inline QDBusPendingReply<> SetProperty(const QString &in0, const QDBusVariant &in1) + { + QList argumentList; + argumentList << qVariantFromValue(in0) << qVariantFromValue(in1); + return asyncCallWithArgumentList(QLatin1String("SetProperty"), argumentList); + } + + inline QDBusPendingReply<> SetSpeakerGain(ushort in0) + { + QList argumentList; + argumentList << qVariantFromValue(in0); + return asyncCallWithArgumentList(QLatin1String("SetSpeakerGain"), argumentList); + } + + inline QDBusPendingReply<> Stop() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("Stop"), argumentList); + } + +Q_SIGNALS: // SIGNALS + void AnswerRequested(); + void CallTerminated(); + void Connected(); + void Disconnected(); + void MicrophoneGainChanged(ushort in0); + void Playing(); + void PropertyChanged(const QString &in0, const QDBusVariant &in1); + void SpeakerGainChanged(ushort in0); + void Stopped(); +}; + +namespace org { + namespace bluez { + typedef ::OrgBluezHeadsetInterface Headset; + } +} +#endif diff --git a/headset.xml b/bluetooth-qt/headset.xml similarity index 100% rename from headset.xml rename to bluetooth-qt/headset.xml diff --git a/bluetooth-qt/input.cpp b/bluetooth-qt/input.cpp new file mode 100644 index 0000000..189d061 --- /dev/null +++ b/bluetooth-qt/input.cpp @@ -0,0 +1,26 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p input.h:input.cpp input.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 "input.h" + +/* + * Implementation of interface class OrgBluezInputInterface + */ + +OrgBluezInputInterface::OrgBluezInputInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent) + : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent) +{ +} + +OrgBluezInputInterface::~OrgBluezInputInterface() +{ +} + diff --git a/bluetooth-qt/input.h b/bluetooth-qt/input.h new file mode 100644 index 0000000..a02d0f6 --- /dev/null +++ b/bluetooth-qt/input.h @@ -0,0 +1,66 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p input.h:input.cpp input.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 INPUT_H_1306343853 +#define INPUT_H_1306343853 + +#include +#include +#include +#include +#include +#include +#include +#include + +/* + * Proxy class for interface org.bluez.Input + */ +class OrgBluezInputInterface: public QDBusAbstractInterface +{ + Q_OBJECT +public: + static inline const char *staticInterfaceName() + { return "org.bluez.Input"; } + +public: + OrgBluezInputInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); + + ~OrgBluezInputInterface(); + +public Q_SLOTS: // METHODS + inline QDBusPendingReply<> Connect() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("Connect"), argumentList); + } + + inline QDBusPendingReply<> Disconnect() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("Disconnect"), argumentList); + } + + inline QDBusPendingReply GetProperties() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("GetProperties"), argumentList); + } + +Q_SIGNALS: // SIGNALS + void PropertyChanged(const QString &in0, const QDBusVariant &in1); +}; + +namespace org { + namespace bluez { + typedef ::OrgBluezInputInterface Input; + } +} +#endif diff --git a/input.xml b/bluetooth-qt/input.xml similarity index 100% rename from input.xml rename to bluetooth-qt/input.xml diff --git a/manager.xml b/bluetooth-qt/manager.xml similarity index 100% rename from manager.xml rename to bluetooth-qt/manager.xml diff --git a/bluetooth-qt/moc_agentadaptor.cpp b/bluetooth-qt/moc_agentadaptor.cpp new file mode 100644 index 0000000..76062fd --- /dev/null +++ b/bluetooth-qt/moc_agentadaptor.cpp @@ -0,0 +1,107 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'agentadaptor.h' +** +** Created: Wed May 25 10:17:40 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "agentadaptor.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'agentadaptor.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_AgentAdaptor[] = { + + // content: + 5, // revision + 0, // classname + 1, 14, // classinfo + 8, 16, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + // classinfo: key, value + 29, 13, + + // slots: signature, parameters, type, tag, flags + 58, 46, 45, 45, 0x0a, + 93, 45, 45, 45, 0x0a, + 107, 102, 45, 45, 0x0a, + 157, 134, 45, 45, 0x0a, + 199, 45, 45, 45, 0x0a, + 224, 209, 45, 45, 0x0a, + 278, 271, 266, 45, 0x0a, + 318, 271, 310, 45, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_AgentAdaptor[] = { + "AgentAdaptor\0org.bluez.Agent\0" + "D-Bus Interface\0\0device,uuid\0" + "Authorize(QDBusObjectPath,QString)\0" + "Cancel()\0mode\0ConfirmModeChange(QString)\0" + "device,passkey,entered\0" + "DisplayPasskey(QDBusObjectPath,uint,uint)\0" + "Release()\0device,passkey\0" + "RequestConfirmation(QDBusObjectPath,uint)\0" + "uint\0device\0RequestPasskey(QDBusObjectPath)\0" + "QString\0RequestPinCode(QDBusObjectPath)\0" +}; + +const QMetaObject AgentAdaptor::staticMetaObject = { + { &QDBusAbstractAdaptor::staticMetaObject, qt_meta_stringdata_AgentAdaptor, + qt_meta_data_AgentAdaptor, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &AgentAdaptor::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *AgentAdaptor::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *AgentAdaptor::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_AgentAdaptor)) + return static_cast(const_cast< AgentAdaptor*>(this)); + return QDBusAbstractAdaptor::qt_metacast(_clname); +} + +int AgentAdaptor::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDBusAbstractAdaptor::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: Authorize((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break; + case 1: Cancel(); break; + case 2: ConfirmModeChange((*reinterpret_cast< const QString(*)>(_a[1]))); break; + case 3: DisplayPasskey((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2])),(*reinterpret_cast< uint(*)>(_a[3]))); break; + case 4: Release(); break; + case 5: RequestConfirmation((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2]))); break; + case 6: { uint _r = RequestPasskey((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< uint*>(_a[0]) = _r; } break; + case 7: { QString _r = RequestPinCode((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; } break; + default: ; + } + _id -= 8; + } + return _id; +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_asyncagent.cpp b/bluetooth-qt/moc_asyncagent.cpp new file mode 100644 index 0000000..7280834 --- /dev/null +++ b/bluetooth-qt/moc_asyncagent.cpp @@ -0,0 +1,86 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'asyncagent.h' +** +** Created: Wed May 25 10:17:40 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "asyncagent.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'asyncagent.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_AsyncAgent[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 3, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + // slots: signature, parameters, type, tag, flags + 22, 12, 11, 11, 0x0a, + 61, 53, 11, 11, 0x0a, + 88, 80, 11, 11, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_AsyncAgent[] = { + "AsyncAgent\0\0confirmed\0" + "replyRequestConfirmation(bool)\0passkey\0" + "replyPasskey(uint)\0pidCode\0" + "replyRequestPidCode(QString)\0" +}; + +const QMetaObject AsyncAgent::staticMetaObject = { + { &BluetoothBaseAgent::staticMetaObject, qt_meta_stringdata_AsyncAgent, + qt_meta_data_AsyncAgent, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &AsyncAgent::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *AsyncAgent::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *AsyncAgent::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_AsyncAgent)) + return static_cast(const_cast< AsyncAgent*>(this)); + return BluetoothBaseAgent::qt_metacast(_clname); +} + +int AsyncAgent::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = BluetoothBaseAgent::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: replyRequestConfirmation((*reinterpret_cast< bool(*)>(_a[1]))); break; + case 1: replyPasskey((*reinterpret_cast< uint(*)>(_a[1]))); break; + case 2: replyRequestPidCode((*reinterpret_cast< QString(*)>(_a[1]))); break; + default: ; + } + _id -= 3; + } + return _id; +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_audio.cpp b/bluetooth-qt/moc_audio.cpp new file mode 100644 index 0000000..f911d77 --- /dev/null +++ b/bluetooth-qt/moc_audio.cpp @@ -0,0 +1,101 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'audio.h' +** +** Created: Wed May 25 10:17:40 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "audio.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'audio.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_OrgBluezAudioInterface[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 4, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 1, // signalCount + + // signals: signature, parameters, type, tag, flags + 32, 24, 23, 23, 0x05, + + // slots: signature, parameters, type, tag, flags + 90, 23, 70, 23, 0x0a, + 100, 23, 70, 23, 0x0a, + 144, 23, 113, 23, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_OrgBluezAudioInterface[] = { + "OrgBluezAudioInterface\0\0in0,in1\0" + "PropertyChanged(QString,QDBusVariant)\0" + "QDBusPendingReply<>\0Connect()\0" + "Disconnect()\0QDBusPendingReply\0" + "GetProperties()\0" +}; + +const QMetaObject OrgBluezAudioInterface::staticMetaObject = { + { &QDBusAbstractInterface::staticMetaObject, qt_meta_stringdata_OrgBluezAudioInterface, + qt_meta_data_OrgBluezAudioInterface, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &OrgBluezAudioInterface::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *OrgBluezAudioInterface::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *OrgBluezAudioInterface::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_OrgBluezAudioInterface)) + return static_cast(const_cast< OrgBluezAudioInterface*>(this)); + return QDBusAbstractInterface::qt_metacast(_clname); +} + +int OrgBluezAudioInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: PropertyChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QDBusVariant(*)>(_a[2]))); break; + case 1: { QDBusPendingReply<> _r = Connect(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 2: { QDBusPendingReply<> _r = Disconnect(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 3: { QDBusPendingReply _r = GetProperties(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + default: ; + } + _id -= 4; + } + return _id; +} + +// SIGNAL 0 +void OrgBluezAudioInterface::PropertyChanged(const QString & _t1, const QDBusVariant & _t2) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)), const_cast(reinterpret_cast(&_t2)) }; + QMetaObject::activate(this, &staticMetaObject, 0, _a); +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_audiosink.cpp b/bluetooth-qt/moc_audiosink.cpp new file mode 100644 index 0000000..8cab75a --- /dev/null +++ b/bluetooth-qt/moc_audiosink.cpp @@ -0,0 +1,138 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'audiosink.h' +** +** Created: Wed May 25 10:17:40 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "audiosink.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'audiosink.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_OrgBluezAudioSinkInterface[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 9, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 5, // signalCount + + // signals: signature, parameters, type, tag, flags + 28, 27, 27, 27, 0x05, + 40, 27, 27, 27, 0x05, + 55, 27, 27, 27, 0x05, + 73, 65, 27, 27, 0x05, + 111, 27, 27, 27, 0x05, + + // slots: signature, parameters, type, tag, flags + 141, 27, 121, 27, 0x0a, + 151, 27, 121, 27, 0x0a, + 195, 27, 164, 27, 0x0a, + 235, 27, 211, 27, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_OrgBluezAudioSinkInterface[] = { + "OrgBluezAudioSinkInterface\0\0Connected()\0" + "Disconnected()\0Playing()\0in0,in1\0" + "PropertyChanged(QString,QDBusVariant)\0" + "Stopped()\0QDBusPendingReply<>\0Connect()\0" + "Disconnect()\0QDBusPendingReply\0" + "GetProperties()\0QDBusPendingReply\0" + "IsConnected()\0" +}; + +const QMetaObject OrgBluezAudioSinkInterface::staticMetaObject = { + { &QDBusAbstractInterface::staticMetaObject, qt_meta_stringdata_OrgBluezAudioSinkInterface, + qt_meta_data_OrgBluezAudioSinkInterface, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &OrgBluezAudioSinkInterface::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *OrgBluezAudioSinkInterface::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *OrgBluezAudioSinkInterface::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_OrgBluezAudioSinkInterface)) + return static_cast(const_cast< OrgBluezAudioSinkInterface*>(this)); + return QDBusAbstractInterface::qt_metacast(_clname); +} + +int OrgBluezAudioSinkInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: Connected(); break; + case 1: Disconnected(); break; + case 2: Playing(); break; + case 3: PropertyChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QDBusVariant(*)>(_a[2]))); break; + case 4: Stopped(); break; + case 5: { QDBusPendingReply<> _r = Connect(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 6: { QDBusPendingReply<> _r = Disconnect(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 7: { QDBusPendingReply _r = GetProperties(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 8: { QDBusPendingReply _r = IsConnected(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + default: ; + } + _id -= 9; + } + return _id; +} + +// SIGNAL 0 +void OrgBluezAudioSinkInterface::Connected() +{ + QMetaObject::activate(this, &staticMetaObject, 0, 0); +} + +// SIGNAL 1 +void OrgBluezAudioSinkInterface::Disconnected() +{ + QMetaObject::activate(this, &staticMetaObject, 1, 0); +} + +// SIGNAL 2 +void OrgBluezAudioSinkInterface::Playing() +{ + QMetaObject::activate(this, &staticMetaObject, 2, 0); +} + +// SIGNAL 3 +void OrgBluezAudioSinkInterface::PropertyChanged(const QString & _t1, const QDBusVariant & _t2) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)), const_cast(reinterpret_cast(&_t2)) }; + QMetaObject::activate(this, &staticMetaObject, 3, _a); +} + +// SIGNAL 4 +void OrgBluezAudioSinkInterface::Stopped() +{ + QMetaObject::activate(this, &staticMetaObject, 4, 0); +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_audiosource.cpp b/bluetooth-qt/moc_audiosource.cpp new file mode 100644 index 0000000..41762e4 --- /dev/null +++ b/bluetooth-qt/moc_audiosource.cpp @@ -0,0 +1,101 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'audiosource.h' +** +** Created: Wed May 25 10:17:40 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "audiosource.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'audiosource.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_OrgBluezAudioSourceInterface[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 4, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 1, // signalCount + + // signals: signature, parameters, type, tag, flags + 38, 30, 29, 29, 0x05, + + // slots: signature, parameters, type, tag, flags + 96, 29, 76, 29, 0x0a, + 106, 29, 76, 29, 0x0a, + 150, 29, 119, 29, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_OrgBluezAudioSourceInterface[] = { + "OrgBluezAudioSourceInterface\0\0in0,in1\0" + "PropertyChanged(QString,QDBusVariant)\0" + "QDBusPendingReply<>\0Connect()\0" + "Disconnect()\0QDBusPendingReply\0" + "GetProperties()\0" +}; + +const QMetaObject OrgBluezAudioSourceInterface::staticMetaObject = { + { &QDBusAbstractInterface::staticMetaObject, qt_meta_stringdata_OrgBluezAudioSourceInterface, + qt_meta_data_OrgBluezAudioSourceInterface, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &OrgBluezAudioSourceInterface::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *OrgBluezAudioSourceInterface::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *OrgBluezAudioSourceInterface::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_OrgBluezAudioSourceInterface)) + return static_cast(const_cast< OrgBluezAudioSourceInterface*>(this)); + return QDBusAbstractInterface::qt_metacast(_clname); +} + +int OrgBluezAudioSourceInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: PropertyChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QDBusVariant(*)>(_a[2]))); break; + case 1: { QDBusPendingReply<> _r = Connect(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 2: { QDBusPendingReply<> _r = Disconnect(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 3: { QDBusPendingReply _r = GetProperties(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + default: ; + } + _id -= 4; + } + return _id; +} + +// SIGNAL 0 +void OrgBluezAudioSourceInterface::PropertyChanged(const QString & _t1, const QDBusVariant & _t2) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)), const_cast(reinterpret_cast(&_t2)) }; + QMetaObject::activate(this, &staticMetaObject, 0, _a); +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_blueadapter.cpp b/bluetooth-qt/moc_blueadapter.cpp new file mode 100644 index 0000000..1c12b91 --- /dev/null +++ b/bluetooth-qt/moc_blueadapter.cpp @@ -0,0 +1,183 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'blueadapter.h' +** +** Created: Wed May 25 10:17:40 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "blueadapter.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'blueadapter.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_OrgBluezAdapterInterface[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 19, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 5, // signalCount + + // signals: signature, parameters, type, tag, flags + 30, 26, 25, 25, 0x05, + 61, 26, 25, 25, 0x05, + 96, 88, 25, 25, 0x05, + 129, 26, 25, 25, 0x05, + 160, 88, 25, 25, 0x05, + + // slots: signature, parameters, type, tag, flags + 218, 26, 198, 25, 0x0a, + 283, 26, 248, 25, 0x0a, + 317, 305, 248, 25, 0x0a, + 369, 26, 248, 25, 0x0a, + 420, 25, 389, 25, 0x0a, + 479, 25, 436, 25, 0x0a, + 493, 88, 198, 25, 0x0a, + 532, 25, 198, 25, 0x0a, + 549, 26, 198, 25, 0x0a, + 579, 25, 198, 25, 0x0a, + 596, 88, 198, 25, 0x0a, + 630, 25, 198, 25, 0x0a, + 647, 25, 198, 25, 0x0a, + 663, 26, 198, 25, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_OrgBluezAdapterInterface[] = { + "OrgBluezAdapterInterface\0\0in0\0" + "DeviceCreated(QDBusObjectPath)\0" + "DeviceDisappeared(QString)\0in0,in1\0" + "DeviceFound(QString,QVariantMap)\0" + "DeviceRemoved(QDBusObjectPath)\0" + "PropertyChanged(QString,QDBusVariant)\0" + "QDBusPendingReply<>\0CancelDeviceCreation(QString)\0" + "QDBusPendingReply\0" + "CreateDevice(QString)\0in0,in1,in2\0" + "CreatePairedDevice(QString,QDBusObjectPath,QString)\0" + "FindDevice(QString)\0QDBusPendingReply\0" + "GetProperties()\0" + "QDBusPendingReply >\0" + "ListDevices()\0RegisterAgent(QDBusObjectPath,QString)\0" + "ReleaseSession()\0RemoveDevice(QDBusObjectPath)\0" + "RequestSession()\0SetProperty(QString,QDBusVariant)\0" + "StartDiscovery()\0StopDiscovery()\0" + "UnregisterAgent(QDBusObjectPath)\0" +}; + +const QMetaObject OrgBluezAdapterInterface::staticMetaObject = { + { &QDBusAbstractInterface::staticMetaObject, qt_meta_stringdata_OrgBluezAdapterInterface, + qt_meta_data_OrgBluezAdapterInterface, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &OrgBluezAdapterInterface::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *OrgBluezAdapterInterface::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *OrgBluezAdapterInterface::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_OrgBluezAdapterInterface)) + return static_cast(const_cast< OrgBluezAdapterInterface*>(this)); + return QDBusAbstractInterface::qt_metacast(_clname); +} + +int OrgBluezAdapterInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: DeviceCreated((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1]))); break; + case 1: DeviceDisappeared((*reinterpret_cast< const QString(*)>(_a[1]))); break; + case 2: DeviceFound((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QVariantMap(*)>(_a[2]))); break; + case 3: DeviceRemoved((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1]))); break; + case 4: PropertyChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QDBusVariant(*)>(_a[2]))); break; + case 5: { QDBusPendingReply<> _r = CancelDeviceCreation((*reinterpret_cast< const QString(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 6: { QDBusPendingReply _r = CreateDevice((*reinterpret_cast< const QString(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 7: { QDBusPendingReply _r = CreatePairedDevice((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QDBusObjectPath(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 8: { QDBusPendingReply _r = FindDevice((*reinterpret_cast< const QString(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 9: { QDBusPendingReply _r = GetProperties(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 10: { QDBusPendingReply > _r = ListDevices(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply >*>(_a[0]) = _r; } break; + case 11: { QDBusPendingReply<> _r = RegisterAgent((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 12: { QDBusPendingReply<> _r = ReleaseSession(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 13: { QDBusPendingReply<> _r = RemoveDevice((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 14: { QDBusPendingReply<> _r = RequestSession(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 15: { QDBusPendingReply<> _r = SetProperty((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QDBusVariant(*)>(_a[2]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 16: { QDBusPendingReply<> _r = StartDiscovery(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 17: { QDBusPendingReply<> _r = StopDiscovery(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 18: { QDBusPendingReply<> _r = UnregisterAgent((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + default: ; + } + _id -= 19; + } + return _id; +} + +// SIGNAL 0 +void OrgBluezAdapterInterface::DeviceCreated(const QDBusObjectPath & _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 0, _a); +} + +// SIGNAL 1 +void OrgBluezAdapterInterface::DeviceDisappeared(const QString & _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 1, _a); +} + +// SIGNAL 2 +void OrgBluezAdapterInterface::DeviceFound(const QString & _t1, const QVariantMap & _t2) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)), const_cast(reinterpret_cast(&_t2)) }; + QMetaObject::activate(this, &staticMetaObject, 2, _a); +} + +// SIGNAL 3 +void OrgBluezAdapterInterface::DeviceRemoved(const QDBusObjectPath & _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 3, _a); +} + +// SIGNAL 4 +void OrgBluezAdapterInterface::PropertyChanged(const QString & _t1, const QDBusVariant & _t2) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)), const_cast(reinterpret_cast(&_t2)) }; + QMetaObject::activate(this, &staticMetaObject, 4, _a); +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_bluedevice.cpp b/bluetooth-qt/moc_bluedevice.cpp new file mode 100644 index 0000000..9367496 --- /dev/null +++ b/bluetooth-qt/moc_bluedevice.cpp @@ -0,0 +1,117 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'bluedevice.h' +** +** Created: Wed May 25 10:17:40 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "bluedevice.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'bluedevice.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_OrgBluezDeviceInterface[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 7, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 2, // signalCount + + // signals: signature, parameters, type, tag, flags + 25, 24, 24, 24, 0x05, + 55, 47, 24, 24, 0x05, + + // slots: signature, parameters, type, tag, flags + 113, 24, 93, 24, 0x0a, + 131, 24, 93, 24, 0x0a, + 181, 177, 144, 24, 0x0a, + 238, 24, 207, 24, 0x0a, + 254, 47, 93, 24, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_OrgBluezDeviceInterface[] = { + "OrgBluezDeviceInterface\0\0DisconnectRequested()\0" + "in0,in1\0PropertyChanged(QString,QDBusVariant)\0" + "QDBusPendingReply<>\0CancelDiscovery()\0" + "Disconnect()\0QDBusPendingReply\0" + "in0\0DiscoverServices(QString)\0" + "QDBusPendingReply\0" + "GetProperties()\0SetProperty(QString,QDBusVariant)\0" +}; + +const QMetaObject OrgBluezDeviceInterface::staticMetaObject = { + { &QDBusAbstractInterface::staticMetaObject, qt_meta_stringdata_OrgBluezDeviceInterface, + qt_meta_data_OrgBluezDeviceInterface, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &OrgBluezDeviceInterface::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *OrgBluezDeviceInterface::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *OrgBluezDeviceInterface::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_OrgBluezDeviceInterface)) + return static_cast(const_cast< OrgBluezDeviceInterface*>(this)); + return QDBusAbstractInterface::qt_metacast(_clname); +} + +int OrgBluezDeviceInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: DisconnectRequested(); break; + case 1: PropertyChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QDBusVariant(*)>(_a[2]))); break; + case 2: { QDBusPendingReply<> _r = CancelDiscovery(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 3: { QDBusPendingReply<> _r = Disconnect(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 4: { QDBusPendingReply _r = DiscoverServices((*reinterpret_cast< const QString(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 5: { QDBusPendingReply _r = GetProperties(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 6: { QDBusPendingReply<> _r = SetProperty((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QDBusVariant(*)>(_a[2]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + default: ; + } + _id -= 7; + } + return _id; +} + +// SIGNAL 0 +void OrgBluezDeviceInterface::DisconnectRequested() +{ + QMetaObject::activate(this, &staticMetaObject, 0, 0); +} + +// SIGNAL 1 +void OrgBluezDeviceInterface::PropertyChanged(const QString & _t1, const QDBusVariant & _t2) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)), const_cast(reinterpret_cast(&_t2)) }; + QMetaObject::activate(this, &staticMetaObject, 1, _a); +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_bluemanager.cpp b/bluetooth-qt/moc_bluemanager.cpp new file mode 100644 index 0000000..fea1700 --- /dev/null +++ b/bluetooth-qt/moc_bluemanager.cpp @@ -0,0 +1,137 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'bluemanager.h' +** +** Created: Wed May 25 10:17:40 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "bluemanager.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'bluemanager.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_OrgBluezManagerInterface[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 8, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 4, // signalCount + + // signals: signature, parameters, type, tag, flags + 30, 26, 25, 25, 0x05, + 60, 26, 25, 25, 0x05, + 92, 26, 25, 25, 0x05, + 139, 131, 25, 25, 0x05, + + // slots: signature, parameters, type, tag, flags + 212, 25, 177, 25, 0x0a, + 229, 26, 177, 25, 0x0a, + 281, 25, 250, 25, 0x0a, + 340, 25, 297, 25, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_OrgBluezManagerInterface[] = { + "OrgBluezManagerInterface\0\0in0\0" + "AdapterAdded(QDBusObjectPath)\0" + "AdapterRemoved(QDBusObjectPath)\0" + "DefaultAdapterChanged(QDBusObjectPath)\0" + "in0,in1\0PropertyChanged(QString,QDBusVariant)\0" + "QDBusPendingReply\0" + "DefaultAdapter()\0FindAdapter(QString)\0" + "QDBusPendingReply\0" + "GetProperties()\0" + "QDBusPendingReply >\0" + "ListAdapters()\0" +}; + +const QMetaObject OrgBluezManagerInterface::staticMetaObject = { + { &QDBusAbstractInterface::staticMetaObject, qt_meta_stringdata_OrgBluezManagerInterface, + qt_meta_data_OrgBluezManagerInterface, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &OrgBluezManagerInterface::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *OrgBluezManagerInterface::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *OrgBluezManagerInterface::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_OrgBluezManagerInterface)) + return static_cast(const_cast< OrgBluezManagerInterface*>(this)); + return QDBusAbstractInterface::qt_metacast(_clname); +} + +int OrgBluezManagerInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: AdapterAdded((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1]))); break; + case 1: AdapterRemoved((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1]))); break; + case 2: DefaultAdapterChanged((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1]))); break; + case 3: PropertyChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QDBusVariant(*)>(_a[2]))); break; + case 4: { QDBusPendingReply _r = DefaultAdapter(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 5: { QDBusPendingReply _r = FindAdapter((*reinterpret_cast< const QString(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 6: { QDBusPendingReply _r = GetProperties(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 7: { QDBusPendingReply > _r = ListAdapters(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply >*>(_a[0]) = _r; } break; + default: ; + } + _id -= 8; + } + return _id; +} + +// SIGNAL 0 +void OrgBluezManagerInterface::AdapterAdded(const QDBusObjectPath & _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 0, _a); +} + +// SIGNAL 1 +void OrgBluezManagerInterface::AdapterRemoved(const QDBusObjectPath & _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 1, _a); +} + +// SIGNAL 2 +void OrgBluezManagerInterface::DefaultAdapterChanged(const QDBusObjectPath & _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 2, _a); +} + +// SIGNAL 3 +void OrgBluezManagerInterface::PropertyChanged(const QString & _t1, const QDBusVariant & _t2) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)), const_cast(reinterpret_cast(&_t2)) }; + QMetaObject::activate(this, &staticMetaObject, 3, _a); +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_bluetoothbaseagent.cpp b/bluetooth-qt/moc_bluetoothbaseagent.cpp new file mode 100644 index 0000000..b29921a --- /dev/null +++ b/bluetooth-qt/moc_bluetoothbaseagent.cpp @@ -0,0 +1,108 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'bluetoothbaseagent.h' +** +** Created: Wed May 25 10:17:40 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "bluetoothbaseagent.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'bluetoothbaseagent.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_BluetoothBaseAgent[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 9, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + // slots: signature, parameters, type, tag, flags + 28, 20, 19, 19, 0x0a, + 72, 19, 19, 19, 0x0a, + 88, 19, 19, 19, 0x0a, + 97, 19, 19, 19, 0x0a, + 143, 124, 19, 19, 0x0a, + 194, 19, 19, 19, 0x0a, + 215, 204, 19, 19, 0x0a, + 278, 271, 266, 19, 0x0a, + 327, 271, 319, 19, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_BluetoothBaseAgent[] = { + "BluetoothBaseAgent\0\0device,\0" + "authorize(OrgBluezDeviceInterface&,QString)\0" + "registerAgent()\0cancel()\0" + "confirmModeChange(QString)\0" + "device,key,entered\0" + "displayPasskey(OrgBluezDeviceInterface&,uint,uint)\0" + "release()\0device,key\0" + "requestConfirmation(OrgBluezDeviceInterface&,uint)\0" + "uint\0device\0requestPasskey(OrgBluezDeviceInterface&)\0" + "QString\0requestPidCode(OrgBluezDeviceInterface&)\0" +}; + +const QMetaObject BluetoothBaseAgent::staticMetaObject = { + { &QObject::staticMetaObject, qt_meta_stringdata_BluetoothBaseAgent, + qt_meta_data_BluetoothBaseAgent, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &BluetoothBaseAgent::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *BluetoothBaseAgent::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *BluetoothBaseAgent::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_BluetoothBaseAgent)) + return static_cast(const_cast< BluetoothBaseAgent*>(this)); + if (!strcmp(_clname, "QDBusContext")) + return static_cast< QDBusContext*>(const_cast< BluetoothBaseAgent*>(this)); + return QObject::qt_metacast(_clname); +} + +int BluetoothBaseAgent::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QObject::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: authorize((*reinterpret_cast< OrgBluezDeviceInterface(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break; + case 1: registerAgent(); break; + case 2: cancel(); break; + case 3: confirmModeChange((*reinterpret_cast< QString(*)>(_a[1]))); break; + case 4: displayPasskey((*reinterpret_cast< OrgBluezDeviceInterface(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2])),(*reinterpret_cast< uint(*)>(_a[3]))); break; + case 5: release(); break; + case 6: requestConfirmation((*reinterpret_cast< OrgBluezDeviceInterface(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2]))); break; + case 7: { uint _r = requestPasskey((*reinterpret_cast< OrgBluezDeviceInterface(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< uint*>(_a[0]) = _r; } break; + case 8: { QString _r = requestPidCode((*reinterpret_cast< OrgBluezDeviceInterface(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; } break; + default: ; + } + _id -= 9; + } + return _id; +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_bluetoothdevice.cpp b/bluetooth-qt/moc_bluetoothdevice.cpp new file mode 100644 index 0000000..a844349 --- /dev/null +++ b/bluetooth-qt/moc_bluetoothdevice.cpp @@ -0,0 +1,269 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'bluetoothdevice.h' +** +** Created: Wed May 25 10:17:40 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "bluetoothdevice.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'bluetoothdevice.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_BluetoothDevice[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 28, 14, // methods + 10, 154, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 6, // signalCount + + // signals: signature, parameters, type, tag, flags + 29, 17, 16, 16, 0x05, + 52, 17, 16, 16, 0x05, + 80, 17, 16, 16, 0x05, + 119, 108, 16, 16, 0x05, + 159, 153, 16, 16, 0x05, + 194, 188, 16, 16, 0x05, + + // slots: signature, parameters, type, tag, flags + 215, 16, 16, 16, 0x0a, + 224, 16, 16, 16, 0x0a, + 239, 16, 16, 16, 0x0a, + 265, 16, 257, 16, 0x0a, + 281, 16, 16, 16, 0x0a, + 296, 16, 16, 16, 0x0a, + 309, 16, 16, 16, 0x0a, + 332, 16, 327, 16, 0x0a, + 342, 188, 16, 16, 0x0a, + 371, 16, 359, 16, 0x0a, + 390, 382, 327, 16, 0x0a, + 418, 16, 327, 16, 0x0a, + 430, 16, 327, 16, 0x0a, + 447, 16, 327, 16, 0x0a, + 464, 16, 257, 16, 0x0a, + 472, 16, 257, 16, 0x0a, + 479, 16, 257, 16, 0x0a, + 489, 16, 257, 16, 0x0a, + 496, 16, 257, 16, 0x0a, + 503, 108, 16, 16, 0x08, + 541, 108, 16, 16, 0x08, + 586, 108, 16, 16, 0x08, + + // properties: name, type, flags + 631, 327, 0x01495001, + 641, 327, 0x01495001, + 656, 327, 0x01495001, + 671, 327, 0x01495103, + 679, 359, 0x0b495001, + 688, 257, 0x0a095001, + 694, 257, 0x0a095001, + 699, 257, 0x0a095001, + 707, 257, 0x0a095001, + 712, 257, 0x0a095001, + + // properties: notify_signal_id + 0, + 1, + 2, + 5, + 4, + 0, + 0, + 0, + 0, + 0, + + 0 // eod +}; + +static const char qt_meta_stringdata_BluetoothDevice[] = { + "BluetoothDevice\0\0isConnected\0" + "connectedChanged(bool)\0" + "audioConnectedChanged(bool)\0" + "inputConnectedChanged(bool)\0name,value\0" + "propertyChanged(QString,QVariant)\0" + "uuids\0profilesChanged(QStringList)\0" + "trust\0trustedChanged(bool)\0unpair()\0" + "connectAudio()\0connectAudioSrc()\0" + "QString\0connectSerial()\0connectInput()\0" + "disconnect()\0disconnectAudio()\0bool\0" + "trusted()\0setTrusted(bool)\0QStringList\0" + "profiles()\0profile\0isProfileSupported(QString)\0" + "connected()\0audioConnected()\0" + "inputConnected()\0alias()\0name()\0" + "address()\0icon()\0path()\0" + "propertyChanged(QString,QDBusVariant)\0" + "audioPropertiesChanged(QString,QDBusVariant)\0" + "inputPropertiesChanged(QString,QDBusVariant)\0" + "connected\0audioConnected\0inputConnected\0" + "trusted\0profiles\0alias\0name\0address\0" + "icon\0path\0" +}; + +const QMetaObject BluetoothDevice::staticMetaObject = { + { &QObject::staticMetaObject, qt_meta_stringdata_BluetoothDevice, + qt_meta_data_BluetoothDevice, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &BluetoothDevice::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *BluetoothDevice::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *BluetoothDevice::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_BluetoothDevice)) + return static_cast(const_cast< BluetoothDevice*>(this)); + return QObject::qt_metacast(_clname); +} + +int BluetoothDevice::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QObject::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: connectedChanged((*reinterpret_cast< bool(*)>(_a[1]))); break; + case 1: audioConnectedChanged((*reinterpret_cast< bool(*)>(_a[1]))); break; + case 2: inputConnectedChanged((*reinterpret_cast< bool(*)>(_a[1]))); break; + case 3: propertyChanged((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QVariant(*)>(_a[2]))); break; + case 4: profilesChanged((*reinterpret_cast< QStringList(*)>(_a[1]))); break; + case 5: trustedChanged((*reinterpret_cast< bool(*)>(_a[1]))); break; + case 6: unpair(); break; + case 7: connectAudio(); break; + case 8: connectAudioSrc(); break; + case 9: { QString _r = connectSerial(); + if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; } break; + case 10: connectInput(); break; + case 11: disconnect(); break; + case 12: disconnectAudio(); break; + case 13: { bool _r = trusted(); + if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; + case 14: setTrusted((*reinterpret_cast< bool(*)>(_a[1]))); break; + case 15: { QStringList _r = profiles(); + if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = _r; } break; + case 16: { bool _r = isProfileSupported((*reinterpret_cast< QString(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; + case 17: { bool _r = connected(); + if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; + case 18: { bool _r = audioConnected(); + if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; + case 19: { bool _r = inputConnected(); + if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; + case 20: { QString _r = alias(); + if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; } break; + case 21: { QString _r = name(); + if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; } break; + case 22: { QString _r = address(); + if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; } break; + case 23: { QString _r = icon(); + if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; } break; + case 24: { QString _r = path(); + if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; } break; + case 25: propertyChanged((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QDBusVariant(*)>(_a[2]))); break; + case 26: audioPropertiesChanged((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QDBusVariant(*)>(_a[2]))); break; + case 27: inputPropertiesChanged((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QDBusVariant(*)>(_a[2]))); break; + default: ; + } + _id -= 28; + } +#ifndef QT_NO_PROPERTIES + else if (_c == QMetaObject::ReadProperty) { + void *_v = _a[0]; + switch (_id) { + case 0: *reinterpret_cast< bool*>(_v) = connected(); break; + case 1: *reinterpret_cast< bool*>(_v) = audioConnected(); break; + case 2: *reinterpret_cast< bool*>(_v) = inputConnected(); break; + case 3: *reinterpret_cast< bool*>(_v) = trusted(); break; + case 4: *reinterpret_cast< QStringList*>(_v) = profiles(); break; + case 5: *reinterpret_cast< QString*>(_v) = alias(); break; + case 6: *reinterpret_cast< QString*>(_v) = name(); break; + case 7: *reinterpret_cast< QString*>(_v) = address(); break; + case 8: *reinterpret_cast< QString*>(_v) = icon(); break; + case 9: *reinterpret_cast< QString*>(_v) = path(); break; + } + _id -= 10; + } else if (_c == QMetaObject::WriteProperty) { + void *_v = _a[0]; + switch (_id) { + case 3: setTrusted(*reinterpret_cast< bool*>(_v)); break; + } + _id -= 10; + } else if (_c == QMetaObject::ResetProperty) { + _id -= 10; + } else if (_c == QMetaObject::QueryPropertyDesignable) { + _id -= 10; + } else if (_c == QMetaObject::QueryPropertyScriptable) { + _id -= 10; + } else if (_c == QMetaObject::QueryPropertyStored) { + _id -= 10; + } else if (_c == QMetaObject::QueryPropertyEditable) { + _id -= 10; + } else if (_c == QMetaObject::QueryPropertyUser) { + _id -= 10; + } +#endif // QT_NO_PROPERTIES + return _id; +} + +// SIGNAL 0 +void BluetoothDevice::connectedChanged(bool _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 0, _a); +} + +// SIGNAL 1 +void BluetoothDevice::audioConnectedChanged(bool _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 1, _a); +} + +// SIGNAL 2 +void BluetoothDevice::inputConnectedChanged(bool _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 2, _a); +} + +// SIGNAL 3 +void BluetoothDevice::propertyChanged(QString _t1, QVariant _t2) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)), const_cast(reinterpret_cast(&_t2)) }; + QMetaObject::activate(this, &staticMetaObject, 3, _a); +} + +// SIGNAL 4 +void BluetoothDevice::profilesChanged(QStringList _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 4, _a); +} + +// SIGNAL 5 +void BluetoothDevice::trustedChanged(bool _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 5, _a); +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_bluetoothdevicemodel.cpp b/bluetooth-qt/moc_bluetoothdevicemodel.cpp new file mode 100644 index 0000000..017934d --- /dev/null +++ b/bluetooth-qt/moc_bluetoothdevicemodel.cpp @@ -0,0 +1,255 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'bluetoothdevicemodel.h' +** +** Created: Wed May 25 10:17:40 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "bluetoothdevicemodel.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'bluetoothdevicemodel.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_BluetoothDevicesModel[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 26, 14, // methods + 5, 144, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 6, // signalCount + + // signals: signature, parameters, type, tag, flags + 31, 23, 22, 22, 0x05, + 60, 52, 22, 22, 0x05, + 99, 92, 22, 22, 0x05, + 143, 130, 22, 22, 0x05, + 184, 169, 22, 22, 0x05, + 217, 205, 22, 22, 0x05, + + // slots: signature, parameters, type, tag, flags + 244, 22, 240, 22, 0x0a, + 276, 269, 240, 22, 0x0a, + 298, 22, 240, 22, 0x2a, + 329, 318, 309, 22, 0x0a, + 364, 359, 351, 22, 0x0a, + 408, 22, 384, 22, 0x0a, + 423, 22, 418, 22, 0x0a, + 457, 452, 435, 22, 0x0a, + 486, 473, 22, 22, 0x0a, + 504, 22, 418, 22, 0x0a, + 532, 514, 22, 22, 0x0a, + 555, 22, 418, 22, 0x0a, + 570, 22, 240, 22, 0x0a, + 592, 52, 22, 22, 0x0a, + 620, 22, 22, 22, 0x08, + 650, 22, 22, 22, 0x08, + 682, 22, 22, 22, 0x08, + 713, 22, 22, 22, 0x08, + 755, 744, 22, 22, 0x08, + 795, 744, 22, 22, 0x08, + + // properties: name, type, flags + 23, 418, 0x01495003, + 130, 418, 0x01495003, + 840, 240, 0x02495103, + 169, 418, 0x01495001, + 860, 418, 0x01495001, + + // properties: notify_signal_id + 0, + 3, + 1, + 4, + 5, + + 0 // eod +}; + +static const char qt_meta_stringdata_BluetoothDevicesModel[] = { + "BluetoothDevicesModel\0\0powered\0" + "poweredChanged(bool)\0timeout\0" + "discoverableTimeoutChanged(int)\0device\0" + "devicePaired(BluetoothDevice*)\0" + "discoverable\0discoverableChanged(bool)\0" + "adapterPresent\0adapterChanged(bool)\0" + "isConnected\0connectedChanged(bool)\0" + "int\0columnCount(QModelIndex)\0parent\0" + "rowCount(QModelIndex)\0rowCount()\0" + "QVariant\0index,role\0data(QModelIndex,int)\0" + "QString\0name\0devicePath(QString)\0" + "QList\0devices()\0" + "bool\0connected()\0BluetoothDevice*\0" + "path\0device(QString)\0poweredValue\0" + "makePowered(bool)\0powered()\0" + "discoverableValue\0makeDiscoverable(bool)\0" + "discoverable()\0discoverableTimeout()\0" + "setDiscoverableTimeout(int)\0" + "adapterAdded(QDBusObjectPath)\0" + "adapterRemoved(QDBusObjectPath)\0" + "deviceCreated(QDBusObjectPath)\0" + "deviceRemoved(QDBusObjectPath)\0" + "name,value\0devicePropertyChanged(QString,QVariant)\0" + "adapterPropertyChanged(QString,QDBusVariant)\0" + "discoverableTimeout\0connected\0" +}; + +const QMetaObject BluetoothDevicesModel::staticMetaObject = { + { &QAbstractListModel::staticMetaObject, qt_meta_stringdata_BluetoothDevicesModel, + qt_meta_data_BluetoothDevicesModel, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &BluetoothDevicesModel::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *BluetoothDevicesModel::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *BluetoothDevicesModel::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_BluetoothDevicesModel)) + return static_cast(const_cast< BluetoothDevicesModel*>(this)); + return QAbstractListModel::qt_metacast(_clname); +} + +int BluetoothDevicesModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QAbstractListModel::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: poweredChanged((*reinterpret_cast< bool(*)>(_a[1]))); break; + case 1: discoverableTimeoutChanged((*reinterpret_cast< int(*)>(_a[1]))); break; + case 2: devicePaired((*reinterpret_cast< BluetoothDevice*(*)>(_a[1]))); break; + case 3: discoverableChanged((*reinterpret_cast< bool(*)>(_a[1]))); break; + case 4: adapterChanged((*reinterpret_cast< bool(*)>(_a[1]))); break; + case 5: connectedChanged((*reinterpret_cast< bool(*)>(_a[1]))); break; + case 6: { int _r = columnCount((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; } break; + case 7: { int _r = rowCount((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; } break; + case 8: { int _r = rowCount(); + if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; } break; + case 9: { QVariant _r = data((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); + if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = _r; } break; + case 10: { QString _r = devicePath((*reinterpret_cast< QString(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; } break; + case 11: { QList _r = devices(); + if (_a[0]) *reinterpret_cast< QList*>(_a[0]) = _r; } break; + case 12: { bool _r = connected(); + if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; + case 13: { BluetoothDevice* _r = device((*reinterpret_cast< QString(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< BluetoothDevice**>(_a[0]) = _r; } break; + case 14: makePowered((*reinterpret_cast< bool(*)>(_a[1]))); break; + case 15: { bool _r = powered(); + if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; + case 16: makeDiscoverable((*reinterpret_cast< bool(*)>(_a[1]))); break; + case 17: { bool _r = discoverable(); + if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; + case 18: { int _r = discoverableTimeout(); + if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; } break; + case 19: setDiscoverableTimeout((*reinterpret_cast< int(*)>(_a[1]))); break; + case 20: adapterAdded((*reinterpret_cast< QDBusObjectPath(*)>(_a[1]))); break; + case 21: adapterRemoved((*reinterpret_cast< QDBusObjectPath(*)>(_a[1]))); break; + case 22: deviceCreated((*reinterpret_cast< QDBusObjectPath(*)>(_a[1]))); break; + case 23: deviceRemoved((*reinterpret_cast< QDBusObjectPath(*)>(_a[1]))); break; + case 24: devicePropertyChanged((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QVariant(*)>(_a[2]))); break; + case 25: adapterPropertyChanged((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QDBusVariant(*)>(_a[2]))); break; + default: ; + } + _id -= 26; + } +#ifndef QT_NO_PROPERTIES + else if (_c == QMetaObject::ReadProperty) { + void *_v = _a[0]; + switch (_id) { + case 0: *reinterpret_cast< bool*>(_v) = powered(); break; + case 1: *reinterpret_cast< bool*>(_v) = discoverable(); break; + case 2: *reinterpret_cast< int*>(_v) = discoverableTimeout(); break; + case 3: *reinterpret_cast< bool*>(_v) = adapterPresent(); break; + case 4: *reinterpret_cast< bool*>(_v) = connected(); break; + } + _id -= 5; + } else if (_c == QMetaObject::WriteProperty) { + void *_v = _a[0]; + switch (_id) { + case 0: makePowered(*reinterpret_cast< bool*>(_v)); break; + case 1: makeDiscoverable(*reinterpret_cast< bool*>(_v)); break; + case 2: setDiscoverableTimeout(*reinterpret_cast< int*>(_v)); break; + } + _id -= 5; + } else if (_c == QMetaObject::ResetProperty) { + _id -= 5; + } else if (_c == QMetaObject::QueryPropertyDesignable) { + _id -= 5; + } else if (_c == QMetaObject::QueryPropertyScriptable) { + _id -= 5; + } else if (_c == QMetaObject::QueryPropertyStored) { + _id -= 5; + } else if (_c == QMetaObject::QueryPropertyEditable) { + _id -= 5; + } else if (_c == QMetaObject::QueryPropertyUser) { + _id -= 5; + } +#endif // QT_NO_PROPERTIES + return _id; +} + +// SIGNAL 0 +void BluetoothDevicesModel::poweredChanged(bool _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 0, _a); +} + +// SIGNAL 1 +void BluetoothDevicesModel::discoverableTimeoutChanged(int _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 1, _a); +} + +// SIGNAL 2 +void BluetoothDevicesModel::devicePaired(BluetoothDevice * _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 2, _a); +} + +// SIGNAL 3 +void BluetoothDevicesModel::discoverableChanged(bool _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 3, _a); +} + +// SIGNAL 4 +void BluetoothDevicesModel::adapterChanged(bool _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 4, _a); +} + +// SIGNAL 5 +void BluetoothDevicesModel::connectedChanged(bool _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 5, _a); +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_headset.cpp b/bluetooth-qt/moc_headset.cpp new file mode 100644 index 0000000..e11392c --- /dev/null +++ b/bluetooth-qt/moc_headset.cpp @@ -0,0 +1,210 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'headset.h' +** +** Created: Wed May 25 10:17:40 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "headset.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'headset.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_OrgBluezHeadsetInterface[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 23, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 9, // signalCount + + // signals: signature, parameters, type, tag, flags + 26, 25, 25, 25, 0x05, + 44, 25, 25, 25, 0x05, + 61, 25, 25, 25, 0x05, + 73, 25, 25, 25, 0x05, + 92, 88, 25, 25, 0x05, + 122, 25, 25, 25, 0x05, + 140, 132, 25, 25, 0x05, + 178, 88, 25, 25, 0x05, + 205, 25, 25, 25, 0x05, + + // slots: signature, parameters, type, tag, flags + 235, 25, 215, 25, 0x0a, + 248, 25, 215, 25, 0x0a, + 258, 25, 215, 25, 0x0a, + 297, 25, 271, 25, 0x0a, + 348, 25, 317, 25, 0x0a, + 364, 25, 271, 25, 0x0a, + 381, 25, 215, 25, 0x0a, + 420, 25, 396, 25, 0x0a, + 434, 25, 396, 25, 0x0a, + 446, 25, 215, 25, 0x0a, + 453, 88, 215, 25, 0x0a, + 479, 132, 215, 25, 0x0a, + 513, 88, 215, 25, 0x0a, + 536, 25, 215, 25, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_OrgBluezHeadsetInterface[] = { + "OrgBluezHeadsetInterface\0\0AnswerRequested()\0" + "CallTerminated()\0Connected()\0" + "Disconnected()\0in0\0MicrophoneGainChanged(ushort)\0" + "Playing()\0in0,in1\0" + "PropertyChanged(QString,QDBusVariant)\0" + "SpeakerGainChanged(ushort)\0Stopped()\0" + "QDBusPendingReply<>\0CancelCall()\0" + "Connect()\0Disconnect()\0QDBusPendingReply\0" + "GetMicrophoneGain()\0QDBusPendingReply\0" + "GetProperties()\0GetSpeakerGain()\0" + "IndicateCall()\0QDBusPendingReply\0" + "IsConnected()\0IsPlaying()\0Play()\0" + "SetMicrophoneGain(ushort)\0" + "SetProperty(QString,QDBusVariant)\0" + "SetSpeakerGain(ushort)\0Stop()\0" +}; + +const QMetaObject OrgBluezHeadsetInterface::staticMetaObject = { + { &QDBusAbstractInterface::staticMetaObject, qt_meta_stringdata_OrgBluezHeadsetInterface, + qt_meta_data_OrgBluezHeadsetInterface, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &OrgBluezHeadsetInterface::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *OrgBluezHeadsetInterface::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *OrgBluezHeadsetInterface::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_OrgBluezHeadsetInterface)) + return static_cast(const_cast< OrgBluezHeadsetInterface*>(this)); + return QDBusAbstractInterface::qt_metacast(_clname); +} + +int OrgBluezHeadsetInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: AnswerRequested(); break; + case 1: CallTerminated(); break; + case 2: Connected(); break; + case 3: Disconnected(); break; + case 4: MicrophoneGainChanged((*reinterpret_cast< ushort(*)>(_a[1]))); break; + case 5: Playing(); break; + case 6: PropertyChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QDBusVariant(*)>(_a[2]))); break; + case 7: SpeakerGainChanged((*reinterpret_cast< ushort(*)>(_a[1]))); break; + case 8: Stopped(); break; + case 9: { QDBusPendingReply<> _r = CancelCall(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 10: { QDBusPendingReply<> _r = Connect(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 11: { QDBusPendingReply<> _r = Disconnect(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 12: { QDBusPendingReply _r = GetMicrophoneGain(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 13: { QDBusPendingReply _r = GetProperties(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 14: { QDBusPendingReply _r = GetSpeakerGain(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 15: { QDBusPendingReply<> _r = IndicateCall(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 16: { QDBusPendingReply _r = IsConnected(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 17: { QDBusPendingReply _r = IsPlaying(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 18: { QDBusPendingReply<> _r = Play(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 19: { QDBusPendingReply<> _r = SetMicrophoneGain((*reinterpret_cast< ushort(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 20: { QDBusPendingReply<> _r = SetProperty((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QDBusVariant(*)>(_a[2]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 21: { QDBusPendingReply<> _r = SetSpeakerGain((*reinterpret_cast< ushort(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 22: { QDBusPendingReply<> _r = Stop(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + default: ; + } + _id -= 23; + } + return _id; +} + +// SIGNAL 0 +void OrgBluezHeadsetInterface::AnswerRequested() +{ + QMetaObject::activate(this, &staticMetaObject, 0, 0); +} + +// SIGNAL 1 +void OrgBluezHeadsetInterface::CallTerminated() +{ + QMetaObject::activate(this, &staticMetaObject, 1, 0); +} + +// SIGNAL 2 +void OrgBluezHeadsetInterface::Connected() +{ + QMetaObject::activate(this, &staticMetaObject, 2, 0); +} + +// SIGNAL 3 +void OrgBluezHeadsetInterface::Disconnected() +{ + QMetaObject::activate(this, &staticMetaObject, 3, 0); +} + +// SIGNAL 4 +void OrgBluezHeadsetInterface::MicrophoneGainChanged(ushort _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 4, _a); +} + +// SIGNAL 5 +void OrgBluezHeadsetInterface::Playing() +{ + QMetaObject::activate(this, &staticMetaObject, 5, 0); +} + +// SIGNAL 6 +void OrgBluezHeadsetInterface::PropertyChanged(const QString & _t1, const QDBusVariant & _t2) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)), const_cast(reinterpret_cast(&_t2)) }; + QMetaObject::activate(this, &staticMetaObject, 6, _a); +} + +// SIGNAL 7 +void OrgBluezHeadsetInterface::SpeakerGainChanged(ushort _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 7, _a); +} + +// SIGNAL 8 +void OrgBluezHeadsetInterface::Stopped() +{ + QMetaObject::activate(this, &staticMetaObject, 8, 0); +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_input.cpp b/bluetooth-qt/moc_input.cpp new file mode 100644 index 0000000..8126cfa --- /dev/null +++ b/bluetooth-qt/moc_input.cpp @@ -0,0 +1,101 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'input.h' +** +** Created: Wed May 25 10:17:40 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "input.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'input.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_OrgBluezInputInterface[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 4, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 1, // signalCount + + // signals: signature, parameters, type, tag, flags + 32, 24, 23, 23, 0x05, + + // slots: signature, parameters, type, tag, flags + 90, 23, 70, 23, 0x0a, + 100, 23, 70, 23, 0x0a, + 144, 23, 113, 23, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_OrgBluezInputInterface[] = { + "OrgBluezInputInterface\0\0in0,in1\0" + "PropertyChanged(QString,QDBusVariant)\0" + "QDBusPendingReply<>\0Connect()\0" + "Disconnect()\0QDBusPendingReply\0" + "GetProperties()\0" +}; + +const QMetaObject OrgBluezInputInterface::staticMetaObject = { + { &QDBusAbstractInterface::staticMetaObject, qt_meta_stringdata_OrgBluezInputInterface, + qt_meta_data_OrgBluezInputInterface, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &OrgBluezInputInterface::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *OrgBluezInputInterface::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *OrgBluezInputInterface::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_OrgBluezInputInterface)) + return static_cast(const_cast< OrgBluezInputInterface*>(this)); + return QDBusAbstractInterface::qt_metacast(_clname); +} + +int OrgBluezInputInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: PropertyChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QDBusVariant(*)>(_a[2]))); break; + case 1: { QDBusPendingReply<> _r = Connect(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 2: { QDBusPendingReply<> _r = Disconnect(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 3: { QDBusPendingReply _r = GetProperties(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + default: ; + } + _id -= 4; + } + return _id; +} + +// SIGNAL 0 +void OrgBluezInputInterface::PropertyChanged(const QString & _t1, const QDBusVariant & _t2) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)), const_cast(reinterpret_cast(&_t2)) }; + QMetaObject::activate(this, &staticMetaObject, 0, _a); +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_nearbydevicesmodel.cpp b/bluetooth-qt/moc_nearbydevicesmodel.cpp new file mode 100644 index 0000000..a6305ad --- /dev/null +++ b/bluetooth-qt/moc_nearbydevicesmodel.cpp @@ -0,0 +1,314 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'nearbydevicesmodel.h' +** +** Created: Wed May 25 10:17:40 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "nearbydevicesmodel.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'nearbydevicesmodel.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_NearbyItem[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 0, 0, // methods + 4, 14, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + // properties: name, type, flags + 19, 11, 0x0a095001, + 24, 11, 0x0a095001, + 32, 11, 0x0a095001, + 42, 37, 0x01095001, + + 0 // eod +}; + +static const char qt_meta_stringdata_NearbyItem[] = { + "NearbyItem\0QString\0name\0address\0icon\0" + "bool\0legacyPairing\0" +}; + +const QMetaObject NearbyItem::staticMetaObject = { + { &QObject::staticMetaObject, qt_meta_stringdata_NearbyItem, + qt_meta_data_NearbyItem, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &NearbyItem::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *NearbyItem::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *NearbyItem::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_NearbyItem)) + return static_cast(const_cast< NearbyItem*>(this)); + return QObject::qt_metacast(_clname); +} + +int NearbyItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QObject::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + +#ifndef QT_NO_PROPERTIES + if (_c == QMetaObject::ReadProperty) { + void *_v = _a[0]; + switch (_id) { + case 0: *reinterpret_cast< QString*>(_v) = name(); break; + case 1: *reinterpret_cast< QString*>(_v) = address(); break; + case 2: *reinterpret_cast< QString*>(_v) = icon(); break; + case 3: *reinterpret_cast< bool*>(_v) = legacyPairing(); break; + } + _id -= 4; + } else if (_c == QMetaObject::WriteProperty) { + _id -= 4; + } else if (_c == QMetaObject::ResetProperty) { + _id -= 4; + } else if (_c == QMetaObject::QueryPropertyDesignable) { + _id -= 4; + } else if (_c == QMetaObject::QueryPropertyScriptable) { + _id -= 4; + } else if (_c == QMetaObject::QueryPropertyStored) { + _id -= 4; + } else if (_c == QMetaObject::QueryPropertyEditable) { + _id -= 4; + } else if (_c == QMetaObject::QueryPropertyUser) { + _id -= 4; + } +#endif // QT_NO_PROPERTIES + return _id; +} +static const uint qt_meta_data_NearbyDevicesModel[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 25, 14, // methods + 1, 139, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 7, // signalCount + + // signals: signature, parameters, type, tag, flags + 32, 20, 19, 19, 0x05, + 73, 66, 19, 19, 0x05, + 97, 66, 19, 19, 0x05, + 121, 19, 19, 19, 0x05, + 137, 131, 19, 19, 0x05, + 160, 131, 19, 19, 0x05, + 196, 185, 19, 19, 0x05, + + // slots: signature, parameters, type, tag, flags + 243, 19, 239, 19, 0x0a, + 275, 268, 239, 19, 0x0a, + 297, 19, 239, 19, 0x2a, + 328, 317, 308, 19, 0x0a, + 358, 131, 350, 19, 0x0a, + 373, 131, 350, 19, 0x0a, + 391, 384, 19, 19, 0x0a, + 411, 405, 19, 19, 0x0a, + 426, 19, 19, 19, 0x0a, + 452, 442, 19, 19, 0x0a, + 491, 483, 19, 19, 0x0a, + 518, 510, 19, 19, 0x0a, + 547, 185, 19, 19, 0x0a, + 584, 19, 19, 19, 0x08, + 614, 19, 19, 19, 0x08, + 664, 646, 19, 19, 0x08, + 699, 384, 19, 19, 0x08, + 726, 722, 19, 19, 0x08, + + // properties: name, type, flags + 794, 777, 0x00095009, + + 0 // eod +}; + +static const char qt_meta_stringdata_NearbyDevicesModel[] = { + "NearbyDevicesModel\0\0device,code\0" + "requestConfirmation(QString,uint)\0" + "device\0requestPasskey(QString)\0" + "requestPidCode(QString)\0release()\0" + "index\0nearbyDeviceFound(int)\0" + "nearbyDeviceRemoved(int)\0name,value\0" + "adapterPropertiesChanged(QString,QVariant)\0" + "int\0columnCount(QModelIndex)\0parent\0" + "rowCount(QModelIndex)\0rowCount()\0" + "QVariant\0index,role\0data(QModelIndex,int)\0" + "QString\0hwAddress(int)\0alias(int)\0" + "hwaddy\0pair(QString)\0start\0discover(bool)\0" + "removeAll(bool)\0confirmed\0" + "replyRequestConfirmation(bool)\0passkey\0" + "replyPasskey(uint)\0pidCode\0" + "replyRequestPidCode(QString)\0" + "setAdapterProperty(QString,QVariant)\0" + "adapterAdded(QDBusObjectPath)\0" + "adapterRemoved(QDBusObjectPath)\0" + "hwaddy,properties\0deviceCreated(QString,QVariantMap)\0" + "deviceRemoved(QString)\0n,v\0" + "adapterPropertiesChangedSlot(QString,QDBusVariant)\0" + "BluetoothDevice*\0pairingDevice\0" +}; + +const QMetaObject NearbyDevicesModel::staticMetaObject = { + { &QAbstractListModel::staticMetaObject, qt_meta_stringdata_NearbyDevicesModel, + qt_meta_data_NearbyDevicesModel, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &NearbyDevicesModel::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *NearbyDevicesModel::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *NearbyDevicesModel::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_NearbyDevicesModel)) + return static_cast(const_cast< NearbyDevicesModel*>(this)); + return QAbstractListModel::qt_metacast(_clname); +} + +int NearbyDevicesModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QAbstractListModel::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: requestConfirmation((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2]))); break; + case 1: requestPasskey((*reinterpret_cast< QString(*)>(_a[1]))); break; + case 2: requestPidCode((*reinterpret_cast< QString(*)>(_a[1]))); break; + case 3: release(); break; + case 4: nearbyDeviceFound((*reinterpret_cast< int(*)>(_a[1]))); break; + case 5: nearbyDeviceRemoved((*reinterpret_cast< int(*)>(_a[1]))); break; + case 6: adapterPropertiesChanged((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QVariant(*)>(_a[2]))); break; + case 7: { int _r = columnCount((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; } break; + case 8: { int _r = rowCount((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; } break; + case 9: { int _r = rowCount(); + if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; } break; + case 10: { QVariant _r = data((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); + if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = _r; } break; + case 11: { QString _r = hwAddress((*reinterpret_cast< int(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; } break; + case 12: { QString _r = alias((*reinterpret_cast< int(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; } break; + case 13: pair((*reinterpret_cast< QString(*)>(_a[1]))); break; + case 14: discover((*reinterpret_cast< bool(*)>(_a[1]))); break; + case 15: removeAll((*reinterpret_cast< bool(*)>(_a[1]))); break; + case 16: replyRequestConfirmation((*reinterpret_cast< bool(*)>(_a[1]))); break; + case 17: replyPasskey((*reinterpret_cast< uint(*)>(_a[1]))); break; + case 18: replyRequestPidCode((*reinterpret_cast< QString(*)>(_a[1]))); break; + case 19: setAdapterProperty((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QVariant(*)>(_a[2]))); break; + case 20: adapterAdded((*reinterpret_cast< QDBusObjectPath(*)>(_a[1]))); break; + case 21: adapterRemoved((*reinterpret_cast< QDBusObjectPath(*)>(_a[1]))); break; + case 22: deviceCreated((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QVariantMap(*)>(_a[2]))); break; + case 23: deviceRemoved((*reinterpret_cast< QString(*)>(_a[1]))); break; + case 24: adapterPropertiesChangedSlot((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QDBusVariant(*)>(_a[2]))); break; + default: ; + } + _id -= 25; + } +#ifndef QT_NO_PROPERTIES + else if (_c == QMetaObject::ReadProperty) { + void *_v = _a[0]; + switch (_id) { + case 0: *reinterpret_cast< BluetoothDevice**>(_v) = pairingDevice(); break; + } + _id -= 1; + } else if (_c == QMetaObject::WriteProperty) { + _id -= 1; + } else if (_c == QMetaObject::ResetProperty) { + _id -= 1; + } else if (_c == QMetaObject::QueryPropertyDesignable) { + _id -= 1; + } else if (_c == QMetaObject::QueryPropertyScriptable) { + _id -= 1; + } else if (_c == QMetaObject::QueryPropertyStored) { + _id -= 1; + } else if (_c == QMetaObject::QueryPropertyEditable) { + _id -= 1; + } else if (_c == QMetaObject::QueryPropertyUser) { + _id -= 1; + } +#endif // QT_NO_PROPERTIES + return _id; +} + +// SIGNAL 0 +void NearbyDevicesModel::requestConfirmation(QString _t1, uint _t2) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)), const_cast(reinterpret_cast(&_t2)) }; + QMetaObject::activate(this, &staticMetaObject, 0, _a); +} + +// SIGNAL 1 +void NearbyDevicesModel::requestPasskey(QString _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 1, _a); +} + +// SIGNAL 2 +void NearbyDevicesModel::requestPidCode(QString _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 2, _a); +} + +// SIGNAL 3 +void NearbyDevicesModel::release() +{ + QMetaObject::activate(this, &staticMetaObject, 3, 0); +} + +// SIGNAL 4 +void NearbyDevicesModel::nearbyDeviceFound(int _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 4, _a); +} + +// SIGNAL 5 +void NearbyDevicesModel::nearbyDeviceRemoved(int _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 5, _a); +} + +// SIGNAL 6 +void NearbyDevicesModel::adapterPropertiesChanged(QString _t1, QVariant _t2) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)), const_cast(reinterpret_cast(&_t2)) }; + QMetaObject::activate(this, &staticMetaObject, 6, _a); +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_obexagent.cpp b/bluetooth-qt/moc_obexagent.cpp new file mode 100644 index 0000000..dffc1ce --- /dev/null +++ b/bluetooth-qt/moc_obexagent.cpp @@ -0,0 +1,103 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'obexagent.h' +** +** Created: Wed May 25 09:44:36 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "obex/obexagent.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'obexagent.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_ObexAgentAdaptor[] = { + + // content: + 5, // revision + 0, // classname + 2, 14, // classinfo + 4, 18, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + // classinfo: key, value + 36, 17, + 516, 52, + + // slots: signature, parameters, type, tag, flags + 542, 537, 536, 536, 0x0a, + 579, 568, 536, 536, 0x0a, + 627, 610, 536, 536, 0x0a, + 664, 536, 536, 536, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_ObexAgentAdaptor[] = { + "ObexAgentAdaptor\0org.openobex.Agent\0" + "D-Bus Interface\0" + " \n \n \n \n \n \n \n \n \n \n \n \n \n \n\0" + "D-Bus Introspection\0\0path\0" + "Complete(QDBusObjectPath)\0path,error\0" + "Error(QDBusObjectPath,QString)\0" + "path,transferred\0Progress(QDBusObjectPath,qulonglong)\0" + "Release()\0" +}; + +const QMetaObject ObexAgentAdaptor::staticMetaObject = { + { &QDBusAbstractAdaptor::staticMetaObject, qt_meta_stringdata_ObexAgentAdaptor, + qt_meta_data_ObexAgentAdaptor, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &ObexAgentAdaptor::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *ObexAgentAdaptor::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *ObexAgentAdaptor::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_ObexAgentAdaptor)) + return static_cast(const_cast< ObexAgentAdaptor*>(this)); + return QDBusAbstractAdaptor::qt_metacast(_clname); +} + +int ObexAgentAdaptor::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDBusAbstractAdaptor::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: Complete((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1]))); break; + case 1: Error((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break; + case 2: Progress((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1])),(*reinterpret_cast< qulonglong(*)>(_a[2]))); break; + case 3: Release(); break; + default: ; + } + _id -= 4; + } + return _id; +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_obexclient.cpp b/bluetooth-qt/moc_obexclient.cpp new file mode 100644 index 0000000..c2a41e0 --- /dev/null +++ b/bluetooth-qt/moc_obexclient.cpp @@ -0,0 +1,100 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'obexclient.h' +** +** Created: Wed May 25 09:44:36 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "obex/obexclient.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'obexclient.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_OrgOpenobexClientInterface[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 5, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + // slots: signature, parameters, type, tag, flags + 67, 63, 28, 27, 0x0a, + 126, 114, 94, 27, 0x0a, + 204, 63, 177, 27, 0x0a, + 241, 233, 94, 27, 0x0a, + 279, 114, 94, 27, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_OrgOpenobexClientInterface[] = { + "OrgOpenobexClientInterface\0\0" + "QDBusPendingReply\0" + "in0\0CreateSession(QVariantMap)\0" + "QDBusPendingReply<>\0in0,in1,in2\0" + "ExchangeBusinessCards(QVariantMap,QString,QString)\0" + "QDBusPendingReply\0" + "GetCapabilities(QVariantMap)\0in0,in1\0" + "PullBusinessCard(QVariantMap,QString)\0" + "SendFiles(QVariantMap,QStringList,QDBusObjectPath)\0" +}; + +const QMetaObject OrgOpenobexClientInterface::staticMetaObject = { + { &QDBusAbstractInterface::staticMetaObject, qt_meta_stringdata_OrgOpenobexClientInterface, + qt_meta_data_OrgOpenobexClientInterface, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &OrgOpenobexClientInterface::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *OrgOpenobexClientInterface::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *OrgOpenobexClientInterface::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_OrgOpenobexClientInterface)) + return static_cast(const_cast< OrgOpenobexClientInterface*>(this)); + return QDBusAbstractInterface::qt_metacast(_clname); +} + +int OrgOpenobexClientInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: { QDBusPendingReply _r = CreateSession((*reinterpret_cast< const QVariantMap(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 1: { QDBusPendingReply<> _r = ExchangeBusinessCards((*reinterpret_cast< const QVariantMap(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 2: { QDBusPendingReply _r = GetCapabilities((*reinterpret_cast< const QVariantMap(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 3: { QDBusPendingReply<> _r = PullBusinessCard((*reinterpret_cast< const QVariantMap(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 4: { QDBusPendingReply<> _r = SendFiles((*reinterpret_cast< const QVariantMap(*)>(_a[1])),(*reinterpret_cast< const QStringList(*)>(_a[2])),(*reinterpret_cast< const QDBusObjectPath(*)>(_a[3]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + default: ; + } + _id -= 5; + } + return _id; +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_obexftp.cpp b/bluetooth-qt/moc_obexftp.cpp new file mode 100644 index 0000000..09c898e --- /dev/null +++ b/bluetooth-qt/moc_obexftp.cpp @@ -0,0 +1,144 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'obexftp.h' +** +** Created: Wed May 25 09:44:36 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "obex/obexftp.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'obexftp.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_ObexFtp[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 14, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 4, // signalCount + + // signals: signature, parameters, type, tag, flags + 20, 9, 8, 8, 0x05, + 54, 8, 8, 8, 0x05, + 73, 8, 8, 8, 0x05, + 88, 8, 8, 8, 0x05, + + // slots: signature, parameters, type, tag, flags + 100, 8, 8, 8, 0x0a, + 110, 8, 8, 8, 0x0a, + 123, 8, 8, 8, 0x0a, + 153, 132, 8, 8, 0x0a, + 183, 8, 8, 8, 0x08, + 226, 8, 8, 8, 0x08, + 276, 271, 8, 8, 0x08, + 313, 302, 8, 8, 0x08, + 361, 344, 8, 8, 0x08, + 398, 8, 8, 8, 0x08, + + 0 // eod +}; + +static const char qt_meta_stringdata_ObexFtp[] = { + "ObexFtp\0\0done,total\0" + "transferProgress(quint64,quint64)\0" + "transferComplete()\0error(QString)\0" + "connected()\0connect()\0disconnect()\0" + "cancel()\0localfile,remotefile\0" + "transferFile(QString,QString)\0" + "finishedTransfer(QDBusPendingCallWatcher*)\0" + "finishedConnecting(QDBusPendingCallWatcher*)\0" + "path\0Complete(QDBusObjectPath)\0" + "path,error\0Error(QDBusObjectPath,QString)\0" + "path,transferred\0Progress(QDBusObjectPath,qulonglong)\0" + "Release()\0" +}; + +const QMetaObject ObexFtp::staticMetaObject = { + { &QObject::staticMetaObject, qt_meta_stringdata_ObexFtp, + qt_meta_data_ObexFtp, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &ObexFtp::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *ObexFtp::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *ObexFtp::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_ObexFtp)) + return static_cast(const_cast< ObexFtp*>(this)); + return QObject::qt_metacast(_clname); +} + +int ObexFtp::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QObject::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: transferProgress((*reinterpret_cast< quint64(*)>(_a[1])),(*reinterpret_cast< quint64(*)>(_a[2]))); break; + case 1: transferComplete(); break; + case 2: error((*reinterpret_cast< QString(*)>(_a[1]))); break; + case 3: connected(); break; + case 4: connect(); break; + case 5: disconnect(); break; + case 6: cancel(); break; + case 7: transferFile((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break; + case 8: finishedTransfer((*reinterpret_cast< QDBusPendingCallWatcher*(*)>(_a[1]))); break; + case 9: finishedConnecting((*reinterpret_cast< QDBusPendingCallWatcher*(*)>(_a[1]))); break; + case 10: Complete((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1]))); break; + case 11: Error((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break; + case 12: Progress((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1])),(*reinterpret_cast< qulonglong(*)>(_a[2]))); break; + case 13: Release(); break; + default: ; + } + _id -= 14; + } + return _id; +} + +// SIGNAL 0 +void ObexFtp::transferProgress(quint64 _t1, quint64 _t2) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)), const_cast(reinterpret_cast(&_t2)) }; + QMetaObject::activate(this, &staticMetaObject, 0, _a); +} + +// SIGNAL 1 +void ObexFtp::transferComplete() +{ + QMetaObject::activate(this, &staticMetaObject, 1, 0); +} + +// SIGNAL 2 +void ObexFtp::error(QString _t1) +{ + void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; + QMetaObject::activate(this, &staticMetaObject, 2, _a); +} + +// SIGNAL 3 +void ObexFtp::connected() +{ + QMetaObject::activate(this, &staticMetaObject, 3, 0); +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_obexsession.cpp b/bluetooth-qt/moc_obexsession.cpp new file mode 100644 index 0000000..fda4765 --- /dev/null +++ b/bluetooth-qt/moc_obexsession.cpp @@ -0,0 +1,181 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'obexsession.h' +** +** Created: Wed May 25 09:44:36 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "obex/obexsession.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'obexsession.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_OrgOpenobexFileTransferInterface[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 8, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + // slots: signature, parameters, type, tag, flags + 58, 54, 34, 33, 0x0a, + 88, 80, 34, 33, 0x0a, + 114, 54, 34, 33, 0x0a, + 136, 54, 34, 33, 0x0a, + 152, 80, 34, 33, 0x0a, + 212, 33, 177, 33, 0x0a, + 225, 80, 34, 33, 0x0a, + 251, 80, 34, 33, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_OrgOpenobexFileTransferInterface[] = { + "OrgOpenobexFileTransferInterface\0\0" + "QDBusPendingReply<>\0in0\0ChangeFolder(QString)\0" + "in0,in1\0CopyFile(QString,QString)\0" + "CreateFolder(QString)\0Delete(QString)\0" + "GetFile(QString,QString)\0" + "QDBusPendingReply\0" + "ListFolder()\0MoveFile(QString,QString)\0" + "PutFile(QString,QString)\0" +}; + +const QMetaObject OrgOpenobexFileTransferInterface::staticMetaObject = { + { &QDBusAbstractInterface::staticMetaObject, qt_meta_stringdata_OrgOpenobexFileTransferInterface, + qt_meta_data_OrgOpenobexFileTransferInterface, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &OrgOpenobexFileTransferInterface::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *OrgOpenobexFileTransferInterface::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *OrgOpenobexFileTransferInterface::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_OrgOpenobexFileTransferInterface)) + return static_cast(const_cast< OrgOpenobexFileTransferInterface*>(this)); + return QDBusAbstractInterface::qt_metacast(_clname); +} + +int OrgOpenobexFileTransferInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: { QDBusPendingReply<> _r = ChangeFolder((*reinterpret_cast< const QString(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 1: { QDBusPendingReply<> _r = CopyFile((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 2: { QDBusPendingReply<> _r = CreateFolder((*reinterpret_cast< const QString(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 3: { QDBusPendingReply<> _r = Delete((*reinterpret_cast< const QString(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 4: { QDBusPendingReply<> _r = GetFile((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 5: { QDBusPendingReply _r = ListFolder(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 6: { QDBusPendingReply<> _r = MoveFile((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 7: { QDBusPendingReply<> _r = PutFile((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + default: ; + } + _id -= 8; + } + return _id; +} +static const uint qt_meta_data_OrgOpenobexSessionInterface[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 4, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + // slots: signature, parameters, type, tag, flags + 53, 49, 29, 28, 0x0a, + 82, 28, 29, 28, 0x0a, + 121, 28, 90, 28, 0x0a, + 137, 49, 29, 28, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_OrgOpenobexSessionInterface[] = { + "OrgOpenobexSessionInterface\0\0" + "QDBusPendingReply<>\0in0\0" + "AssignAgent(QDBusObjectPath)\0Close()\0" + "QDBusPendingReply\0" + "GetProperties()\0ReleaseAgent(QDBusObjectPath)\0" +}; + +const QMetaObject OrgOpenobexSessionInterface::staticMetaObject = { + { &QDBusAbstractInterface::staticMetaObject, qt_meta_stringdata_OrgOpenobexSessionInterface, + qt_meta_data_OrgOpenobexSessionInterface, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &OrgOpenobexSessionInterface::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *OrgOpenobexSessionInterface::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *OrgOpenobexSessionInterface::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_OrgOpenobexSessionInterface)) + return static_cast(const_cast< OrgOpenobexSessionInterface*>(this)); + return QDBusAbstractInterface::qt_metacast(_clname); +} + +int OrgOpenobexSessionInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: { QDBusPendingReply<> _r = AssignAgent((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 1: { QDBusPendingReply<> _r = Close(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 2: { QDBusPendingReply _r = GetProperties(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + case 3: { QDBusPendingReply<> _r = ReleaseAgent((*reinterpret_cast< const QDBusObjectPath(*)>(_a[1]))); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + default: ; + } + _id -= 4; + } + return _id; +} +QT_END_MOC_NAMESPACE diff --git a/bluetooth-qt/moc_obextransfer.cpp b/bluetooth-qt/moc_obextransfer.cpp new file mode 100644 index 0000000..6bc8615 --- /dev/null +++ b/bluetooth-qt/moc_obextransfer.cpp @@ -0,0 +1,86 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'obextransfer.h' +** +** Created: Wed May 25 09:44:36 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.2) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "obex/obextransfer.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'obextransfer.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.2. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_OrgOpenobexTransferInterface[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 2, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + // slots: signature, parameters, type, tag, flags + 50, 29, 30, 29, 0x0a, + 90, 29, 59, 29, 0x0a, + + 0 // eod +}; + +static const char qt_meta_stringdata_OrgOpenobexTransferInterface[] = { + "OrgOpenobexTransferInterface\0\0" + "QDBusPendingReply<>\0Cancel()\0" + "QDBusPendingReply\0" + "GetProperties()\0" +}; + +const QMetaObject OrgOpenobexTransferInterface::staticMetaObject = { + { &QDBusAbstractInterface::staticMetaObject, qt_meta_stringdata_OrgOpenobexTransferInterface, + qt_meta_data_OrgOpenobexTransferInterface, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &OrgOpenobexTransferInterface::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *OrgOpenobexTransferInterface::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *OrgOpenobexTransferInterface::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_OrgOpenobexTransferInterface)) + return static_cast(const_cast< OrgOpenobexTransferInterface*>(this)); + return QDBusAbstractInterface::qt_metacast(_clname); +} + +int OrgOpenobexTransferInterface::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDBusAbstractInterface::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + switch (_id) { + case 0: { QDBusPendingReply<> _r = Cancel(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply<>*>(_a[0]) = _r; } break; + case 1: { QDBusPendingReply _r = GetProperties(); + if (_a[0]) *reinterpret_cast< QDBusPendingReply*>(_a[0]) = _r; } break; + default: ; + } + _id -= 2; + } + return _id; +} +QT_END_MOC_NAMESPACE diff --git a/nearbydevicesmodel.cpp b/bluetooth-qt/nearbydevicesmodel.cpp similarity index 100% rename from nearbydevicesmodel.cpp rename to bluetooth-qt/nearbydevicesmodel.cpp diff --git a/nearbydevicesmodel.h b/bluetooth-qt/nearbydevicesmodel.h similarity index 100% rename from nearbydevicesmodel.h rename to bluetooth-qt/nearbydevicesmodel.h diff --git a/obex/agent.xml b/bluetooth-qt/obex/agent.xml similarity index 100% rename from obex/agent.xml rename to bluetooth-qt/obex/agent.xml diff --git a/obex/client.xml b/bluetooth-qt/obex/client.xml similarity index 100% rename from obex/client.xml rename to bluetooth-qt/obex/client.xml diff --git a/obex/obex.pri b/bluetooth-qt/obex/obex.pri similarity index 100% rename from obex/obex.pri rename to bluetooth-qt/obex/obex.pri diff --git a/bluetooth-qt/obex/obexagent.cpp b/bluetooth-qt/obex/obexagent.cpp new file mode 100644 index 0000000..71323bc --- /dev/null +++ b/bluetooth-qt/obex/obexagent.cpp @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -c ObexAgentAdaptor -a obexagent.h:obexagent.cpp agent.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 "obexagent.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ObexAgentAdaptor + */ + +ObexAgentAdaptor::ObexAgentAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ObexAgentAdaptor::~ObexAgentAdaptor() +{ + // destructor +} + +void ObexAgentAdaptor::Complete(const QDBusObjectPath &path) +{ + // handle method call org.openobex.Agent.Complete + QMetaObject::invokeMethod(parent(), "Complete", Q_ARG(QDBusObjectPath, path)); +} + +void ObexAgentAdaptor::Error(const QDBusObjectPath &path, const QString &error) +{ + // handle method call org.openobex.Agent.Error + QMetaObject::invokeMethod(parent(), "Error", Q_ARG(QDBusObjectPath, path), Q_ARG(QString, error)); +} + +void ObexAgentAdaptor::Progress(const QDBusObjectPath &path, qulonglong transferred) +{ + // handle method call org.openobex.Agent.Progress + QMetaObject::invokeMethod(parent(), "Progress", Q_ARG(QDBusObjectPath, path), Q_ARG(qulonglong, transferred)); +} + +void ObexAgentAdaptor::Release() +{ + // handle method call org.openobex.Agent.Release + QMetaObject::invokeMethod(parent(), "Release"); +} + diff --git a/bluetooth-qt/obex/obexagent.h b/bluetooth-qt/obex/obexagent.h new file mode 100644 index 0000000..07dbbff --- /dev/null +++ b/bluetooth-qt/obex/obexagent.h @@ -0,0 +1,60 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -c ObexAgentAdaptor -a obexagent.h:obexagent.cpp agent.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 OBEXAGENT_H_1306341758 +#define OBEXAGENT_H_1306341758 + +#include +#include +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; + +/* + * Adaptor class for interface org.openobex.Agent + */ +class ObexAgentAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.openobex.Agent") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ObexAgentAdaptor(QObject *parent); + virtual ~ObexAgentAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + void Complete(const QDBusObjectPath &path); + void Error(const QDBusObjectPath &path, const QString &error); + void Progress(const QDBusObjectPath &path, qulonglong transferred); + void Release(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/bluetooth-qt/obex/obexclient.cpp b/bluetooth-qt/obex/obexclient.cpp new file mode 100644 index 0000000..5295373 --- /dev/null +++ b/bluetooth-qt/obex/obexclient.cpp @@ -0,0 +1,26 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p obexclient.h:obexclient.cpp client.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 "obexclient.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/bluetooth-qt/obex/obexclient.h b/bluetooth-qt/obex/obexclient.h new file mode 100644 index 0000000..3fcbb16 --- /dev/null +++ b/bluetooth-qt/obex/obexclient.h @@ -0,0 +1,82 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p obexclient.h:obexclient.cpp client.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 OBEXCLIENT_H_1306341758 +#define OBEXCLIENT_H_1306341758 + +#include +#include +#include +#include +#include +#include +#include +#include + +/* + * 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 CreateSession(const QVariantMap &in0) + { + QList argumentList; + argumentList << qVariantFromValue(in0); + return asyncCallWithArgumentList(QLatin1String("CreateSession"), argumentList); + } + + inline QDBusPendingReply<> ExchangeBusinessCards(const QVariantMap &in0, const QString &in1, const QString &in2) + { + QList argumentList; + argumentList << qVariantFromValue(in0) << qVariantFromValue(in1) << qVariantFromValue(in2); + return asyncCallWithArgumentList(QLatin1String("ExchangeBusinessCards"), argumentList); + } + + inline QDBusPendingReply GetCapabilities(const QVariantMap &in0) + { + QList argumentList; + argumentList << qVariantFromValue(in0); + return asyncCallWithArgumentList(QLatin1String("GetCapabilities"), argumentList); + } + + inline QDBusPendingReply<> PullBusinessCard(const QVariantMap &in0, const QString &in1) + { + QList argumentList; + argumentList << qVariantFromValue(in0) << qVariantFromValue(in1); + return asyncCallWithArgumentList(QLatin1String("PullBusinessCard"), argumentList); + } + + inline QDBusPendingReply<> SendFiles(const QVariantMap &in0, const QStringList &in1, const QDBusObjectPath &in2) + { + QList 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/obex/obexftp.cpp b/bluetooth-qt/obex/obexftp.cpp similarity index 100% rename from obex/obexftp.cpp rename to bluetooth-qt/obex/obexftp.cpp diff --git a/obex/obexftp.h b/bluetooth-qt/obex/obexftp.h similarity index 100% rename from obex/obexftp.h rename to bluetooth-qt/obex/obexftp.h diff --git a/bluetooth-qt/obex/obexsession.cpp b/bluetooth-qt/obex/obexsession.cpp new file mode 100644 index 0000000..cbdfd1f --- /dev/null +++ b/bluetooth-qt/obex/obexsession.cpp @@ -0,0 +1,39 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p obexsession.h:obexsession.cpp -i types.h session.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 "obexsession.h" + +/* + * Implementation of interface class OrgOpenobexFileTransferInterface + */ + +OrgOpenobexFileTransferInterface::OrgOpenobexFileTransferInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent) + : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent) +{ +} + +OrgOpenobexFileTransferInterface::~OrgOpenobexFileTransferInterface() +{ +} + +/* + * Implementation of interface class OrgOpenobexSessionInterface + */ + +OrgOpenobexSessionInterface::OrgOpenobexSessionInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent) + : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent) +{ +} + +OrgOpenobexSessionInterface::~OrgOpenobexSessionInterface() +{ +} + diff --git a/bluetooth-qt/obex/obexsession.h b/bluetooth-qt/obex/obexsession.h new file mode 100644 index 0000000..63532bb --- /dev/null +++ b/bluetooth-qt/obex/obexsession.h @@ -0,0 +1,149 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p obexsession.h:obexsession.cpp -i types.h session.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 OBEXSESSION_H_1306341758 +#define OBEXSESSION_H_1306341758 + +#include +#include +#include +#include +#include +#include +#include +#include +#include "types.h" + +/* + * Proxy class for interface org.openobex.FileTransfer + */ +class OrgOpenobexFileTransferInterface: public QDBusAbstractInterface +{ + Q_OBJECT +public: + static inline const char *staticInterfaceName() + { return "org.openobex.FileTransfer"; } + +public: + OrgOpenobexFileTransferInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); + + ~OrgOpenobexFileTransferInterface(); + +public Q_SLOTS: // METHODS + inline QDBusPendingReply<> ChangeFolder(const QString &in0) + { + QList argumentList; + argumentList << qVariantFromValue(in0); + return asyncCallWithArgumentList(QLatin1String("ChangeFolder"), argumentList); + } + + inline QDBusPendingReply<> CopyFile(const QString &in0, const QString &in1) + { + QList argumentList; + argumentList << qVariantFromValue(in0) << qVariantFromValue(in1); + return asyncCallWithArgumentList(QLatin1String("CopyFile"), argumentList); + } + + inline QDBusPendingReply<> CreateFolder(const QString &in0) + { + QList argumentList; + argumentList << qVariantFromValue(in0); + return asyncCallWithArgumentList(QLatin1String("CreateFolder"), argumentList); + } + + inline QDBusPendingReply<> Delete(const QString &in0) + { + QList argumentList; + argumentList << qVariantFromValue(in0); + return asyncCallWithArgumentList(QLatin1String("Delete"), argumentList); + } + + inline QDBusPendingReply<> GetFile(const QString &in0, const QString &in1) + { + QList argumentList; + argumentList << qVariantFromValue(in0) << qVariantFromValue(in1); + return asyncCallWithArgumentList(QLatin1String("GetFile"), argumentList); + } + + inline QDBusPendingReply ListFolder() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("ListFolder"), argumentList); + } + + inline QDBusPendingReply<> MoveFile(const QString &in0, const QString &in1) + { + QList argumentList; + argumentList << qVariantFromValue(in0) << qVariantFromValue(in1); + return asyncCallWithArgumentList(QLatin1String("MoveFile"), argumentList); + } + + inline QDBusPendingReply<> PutFile(const QString &in0, const QString &in1) + { + QList argumentList; + argumentList << qVariantFromValue(in0) << qVariantFromValue(in1); + return asyncCallWithArgumentList(QLatin1String("PutFile"), argumentList); + } + +Q_SIGNALS: // SIGNALS +}; + +/* + * Proxy class for interface org.openobex.Session + */ +class OrgOpenobexSessionInterface: public QDBusAbstractInterface +{ + Q_OBJECT +public: + static inline const char *staticInterfaceName() + { return "org.openobex.Session"; } + +public: + OrgOpenobexSessionInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); + + ~OrgOpenobexSessionInterface(); + +public Q_SLOTS: // METHODS + inline QDBusPendingReply<> AssignAgent(const QDBusObjectPath &in0) + { + QList argumentList; + argumentList << qVariantFromValue(in0); + return asyncCallWithArgumentList(QLatin1String("AssignAgent"), argumentList); + } + + inline QDBusPendingReply<> Close() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("Close"), argumentList); + } + + inline QDBusPendingReply GetProperties() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("GetProperties"), argumentList); + } + + inline QDBusPendingReply<> ReleaseAgent(const QDBusObjectPath &in0) + { + QList argumentList; + argumentList << qVariantFromValue(in0); + return asyncCallWithArgumentList(QLatin1String("ReleaseAgent"), argumentList); + } + +Q_SIGNALS: // SIGNALS +}; + +namespace org { + namespace openobex { + typedef ::OrgOpenobexFileTransferInterface FileTransfer; + typedef ::OrgOpenobexSessionInterface Session; + } +} +#endif diff --git a/bluetooth-qt/obex/obextransfer.cpp b/bluetooth-qt/obex/obextransfer.cpp new file mode 100644 index 0000000..be139d2 --- /dev/null +++ b/bluetooth-qt/obex/obextransfer.cpp @@ -0,0 +1,26 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p obextransfer.h:obextransfer.cpp transfer.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 "obextransfer.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/bluetooth-qt/obex/obextransfer.h b/bluetooth-qt/obex/obextransfer.h new file mode 100644 index 0000000..7450eac --- /dev/null +++ b/bluetooth-qt/obex/obextransfer.h @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -p obextransfer.h:obextransfer.cpp transfer.xml + * + * qdbusxml2cpp is Copyright (C) 2011 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 OBEXTRANSFER_H_1306341758 +#define OBEXTRANSFER_H_1306341758 + +#include +#include +#include +#include +#include +#include +#include +#include + +/* + * 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 argumentList; + return asyncCallWithArgumentList(QLatin1String("Cancel"), argumentList); + } + + inline QDBusPendingReply GetProperties() + { + QList argumentList; + return asyncCallWithArgumentList(QLatin1String("GetProperties"), argumentList); + } + +Q_SIGNALS: // SIGNALS +}; + +namespace org { + namespace openobex { + typedef ::OrgOpenobexTransferInterface Transfer; + } +} +#endif diff --git a/obex/session.xml b/bluetooth-qt/obex/session.xml similarity index 100% rename from obex/session.xml rename to bluetooth-qt/obex/session.xml diff --git a/obex/transfer.xml b/bluetooth-qt/obex/transfer.xml similarity index 100% rename from obex/transfer.xml rename to bluetooth-qt/obex/transfer.xml diff --git a/obex/types.h b/bluetooth-qt/obex/types.h similarity index 100% rename from obex/types.h rename to bluetooth-qt/obex/types.h diff --git a/declarative/components.cpp b/declarative/components.cpp new file mode 100644 index 0000000..57df6d4 --- /dev/null +++ b/declarative/components.cpp @@ -0,0 +1,28 @@ +/* + * Copyright 2011 Intel Corporation. + * + * This program is licensed under the terms and conditions of the + * Apache License, version 2.0. The full text of the Apache License is at + * http://www.apache.org/licenses/LICENSE-2.0 + */ + +#include "components.h" + +#include +#include +#include + +void Components::registerTypes(const char *uri) +{ + qmlRegisterType(uri,0,0,"NearbyDevicesModel"); + qmlRegisterType(uri,0,0,"BluetoothDevice"); + qmlRegisterType(uri,0,0,"BluetoothDevicesModel"); +} + +void Components::initializeEngine(QDeclarativeEngine *engine, const char *uri) +{ + Q_UNUSED(uri); + Q_UNUSED(engine); +} + +Q_EXPORT_PLUGIN(Components); diff --git a/declarative/components.h b/declarative/components.h new file mode 100644 index 0000000..5e3813b --- /dev/null +++ b/declarative/components.h @@ -0,0 +1,24 @@ +/* + * Copyright 2011 Intel Corporation. + * + * This program is licensed under the terms and conditions of the + * Apache License, version 2.0. The full text of the Apache License is at + * http://www.apache.org/licenses/LICENSE-2.0 + */ + +#ifndef COMPONENTS_H +#define COMPONENTS_H + +#include +#include + +class Components : public QDeclarativeExtensionPlugin +{ + Q_OBJECT + +public: + void registerTypes(const char *uri); + void initializeEngine(QDeclarativeEngine *engine, const char *uri); +}; + +#endif // COMPONENTS_H diff --git a/declarative/declarative.pro b/declarative/declarative.pro new file mode 100644 index 0000000..0e3820e --- /dev/null +++ b/declarative/declarative.pro @@ -0,0 +1,27 @@ +TEMPLATE = lib +QT += declarative dbus + +CONFIG += qt \ + plugin \ + link_pkgconfig + +INCLUDEPATH += ../bluetooth-qt +LIBS += -L../bluetooth-qt -lbluetooth-qt + +TARGET = Bluetooth-qt +OBJECTS_DIR = .obj +MOC_DIR = .moc + +# Input +SOURCES += components.cpp + +OTHER_FILES += qmldir + +HEADERS += components.h + +qmldir.files += qmldir +qmldir.path = $$[QT_INSTALL_IMPORTS]/MeeGo/Bluetooth-qt + +target.path = $$[QT_INSTALL_IMPORTS]/MeeGo/Bluetooth-qt + +INSTALLS += qmldir target diff --git a/declarative/qmldir b/declarative/qmldir new file mode 100644 index 0000000..c20fc84 --- /dev/null +++ b/declarative/qmldir @@ -0,0 +1 @@ +plugin Bluetooth-qt -- 2.7.4