diff options
author | Fabian Bumberger <fbumberger@rim.com> | 2014-06-25 13:52:48 +0200 |
---|---|---|
committer | Fabian Bumberger <fbumberger@rim.com> | 2014-07-02 01:15:07 +0200 |
commit | 1727e5b732d3c6603bd12cf0839508cf267272e2 (patch) | |
tree | 0e52e43f5e490e7ee5b3e3398088cfaa10a379d6 /src | |
parent | c86882a9d1969613811204109ffd263ef69048ec (diff) |
Add neard Tag dbus interface
Change-Id: Id4152a5c6d622d8a0195d30d28b9ac8714491b92
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/nfc/neard/neard.pri | 6 | ||||
-rw-r--r-- | src/nfc/neard/org.neard.Tag.xml | 22 | ||||
-rw-r--r-- | src/nfc/neard/tag.cpp | 26 | ||||
-rw-r--r-- | src/nfc/neard/tag_p.h | 68 |
4 files changed, 120 insertions, 2 deletions
diff --git a/src/nfc/neard/neard.pri b/src/nfc/neard/neard.pri index a82c7f5b..5330fd05 100644 --- a/src/nfc/neard/neard.pri +++ b/src/nfc/neard/neard.pri @@ -1,5 +1,7 @@ HEADERS += neard/adapter_p.h \ - neard/manager_p.h + neard/manager_p.h \ + neard/tag_p.h SOURCES += neard/adapter.cpp \ - neard/manager.cpp + neard/manager.cpp \ + neard/tag.cpp diff --git a/src/nfc/neard/org.neard.Tag.xml b/src/nfc/neard/org.neard.Tag.xml new file mode 100644 index 00000000..ce92dff6 --- /dev/null +++ b/src/nfc/neard/org.neard.Tag.xml @@ -0,0 +1,22 @@ +<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" +"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> +<node> + <interface name="org.neard.Tag"> + <method name="GetProperties"> + <arg name="properties" type="a{sv}" direction="out"/> + <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QVariantMap"/> + </method> + <method name="SetProperty"> + <arg name="name" type="s" direction="in"/> + <arg name="value" type="v" direction="in"/> + </method> + <method name="Write"> + <arg name="attributes" type="a{sv}" direction="in"/> + <annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="QVariantMap"/> + </method> + <signal name="PropertyChanged"> + <arg name="name" type="s"/> + <arg name="value" type="v"/> + </signal> + </interface> +</node> diff --git a/src/nfc/neard/tag.cpp b/src/nfc/neard/tag.cpp new file mode 100644 index 00000000..a0c4e1ef --- /dev/null +++ b/src/nfc/neard/tag.cpp @@ -0,0 +1,26 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp -v org.neard.Tag.xml -p tag -v + * + * qdbusxml2cpp is Copyright (C) 2013 Digia Plc 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 "tag_p.h" + +/* + * Implementation of interface class OrgNeardTagInterface + */ + +OrgNeardTagInterface::OrgNeardTagInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent) + : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent) +{ +} + +OrgNeardTagInterface::~OrgNeardTagInterface() +{ +} + diff --git a/src/nfc/neard/tag_p.h b/src/nfc/neard/tag_p.h new file mode 100644 index 00000000..65cfd9b4 --- /dev/null +++ b/src/nfc/neard/tag_p.h @@ -0,0 +1,68 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp -v org.neard.Tag.xml -p tag -v + * + * qdbusxml2cpp is Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#ifndef TAG_H_1403696363 +#define TAG_H_1403696363 + +#include <QtCore/QObject> +#include <QtCore/QByteArray> +#include <QtCore/QList> +#include <QtCore/QMap> +#include <QtCore/QString> +#include <QtCore/QStringList> +#include <QtCore/QVariant> +#include <QtDBus/QtDBus> + +/* + * Proxy class for interface org.neard.Tag + */ +class OrgNeardTagInterface: public QDBusAbstractInterface +{ + Q_OBJECT +public: + static inline const char *staticInterfaceName() + { return "org.neard.Tag"; } + +public: + OrgNeardTagInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); + + ~OrgNeardTagInterface(); + +public Q_SLOTS: // METHODS + inline QDBusPendingReply<QVariantMap> GetProperties() + { + QList<QVariant> argumentList; + return asyncCallWithArgumentList(QLatin1String("GetProperties"), argumentList); + } + + inline QDBusPendingReply<> SetProperty(const QString &name, const QDBusVariant &value) + { + QList<QVariant> argumentList; + argumentList << QVariant::fromValue(name) << QVariant::fromValue(value); + return asyncCallWithArgumentList(QLatin1String("SetProperty"), argumentList); + } + + inline QDBusPendingReply<> Write(const QVariantMap &attributes) + { + QList<QVariant> argumentList; + argumentList << QVariant::fromValue(attributes); + return asyncCallWithArgumentList(QLatin1String("Write"), argumentList); + } + +Q_SIGNALS: // SIGNALS + void PropertyChanged(const QString &name, const QDBusVariant &value); +}; + +namespace org { + namespace neard { + typedef ::OrgNeardTagInterface Tag; + } +} +#endif |