summaryrefslogtreecommitdiff
path: root/daemon/dbusadaptor.cpp
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2014-07-06 02:56:39 +0200
committerTomasz Sterna <tomek@xiaoka.com>2014-07-09 01:57:32 +0200
commit66fcda8bf06abcc557d2d435b5dc0562de3a9566 (patch)
tree5b1b53ee834514178790a7a6ef87cdcf17d0ef1e /daemon/dbusadaptor.cpp
parent558e07f125eea64436e2097b8a35c9c348b5204e (diff)
Implemented org.pebbled DBus service
Diffstat (limited to 'daemon/dbusadaptor.cpp')
-rw-r--r--daemon/dbusadaptor.cpp59
1 files changed, 59 insertions, 0 deletions
diff --git a/daemon/dbusadaptor.cpp b/daemon/dbusadaptor.cpp
new file mode 100644
index 0000000..914f9f2
--- /dev/null
+++ b/daemon/dbusadaptor.cpp
@@ -0,0 +1,59 @@
+/*
+ * This file was generated by qdbusxml2cpp version 0.8
+ * Command line was: qdbusxml2cpp -c DBusAdaptor -a dbusadaptor org.pebbled.xml
+ *
+ * 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.
+ */
+
+#include "dbusadaptor.h"
+#include <QtCore/QMetaObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+
+/*
+ * Implementation of adaptor class DBusAdaptor
+ */
+
+DBusAdaptor::DBusAdaptor(QObject *parent)
+ : QDBusAbstractAdaptor(parent)
+{
+ // constructor
+ setAutoRelaySignals(true);
+}
+
+DBusAdaptor::~DBusAdaptor()
+{
+ // destructor
+}
+
+QString DBusAdaptor::address() const
+{
+ // get the value of property address
+ return qvariant_cast< QString >(parent()->property("address"));
+}
+
+bool DBusAdaptor::connected() const
+{
+ // get the value of property connected
+ return qvariant_cast< bool >(parent()->property("connected"));
+}
+
+QString DBusAdaptor::name() const
+{
+ // get the value of property name
+ return qvariant_cast< QString >(parent()->property("name"));
+}
+
+QVariantMap DBusAdaptor::pebble() const
+{
+ // get the value of property pebble
+ return qvariant_cast< QVariantMap >(parent()->property("pebble"));
+}
+