summaryrefslogtreecommitdiff
path: root/daemon/dbusadaptor.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-12-01 04:13:06 +0100
committerJavier <dev.git@javispedro.com>2014-12-01 04:13:06 +0100
commit81f91639969de0f3852a3fe73db13b4cb0ecf3b4 (patch)
treeac5f3146707e0b46723bfdf13b7ced5cdf16633d /daemon/dbusadaptor.h
parentbe139d8ff95160782b424134a025b30c82083e28 (diff)
hackily implement openURL by signalling the URLs via D-Bus to the
settings app, which pops a webview
Diffstat (limited to 'daemon/dbusadaptor.h')
-rw-r--r--daemon/dbusadaptor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/daemon/dbusadaptor.h b/daemon/dbusadaptor.h
index 54a0963..f347f92 100644
--- a/daemon/dbusadaptor.h
+++ b/daemon/dbusadaptor.h
@@ -47,6 +47,12 @@ class PebbledAdaptor: public QDBusAbstractAdaptor
" <method name=\"disconnect\"/>\n"
" <method name=\"reconnect\"/>\n"
" <method name=\"test\"/>\n"
+" <signal name=\"openUrl\">\n"
+" <arg type=\"s\" name=\"url\"/>\n"
+" </signal>\n"
+" <method name=\"webviewClosed\">\n"
+" <arg direction=\"in\" type=\"s\" name=\"result\"/>\n"
+" </method>\n"
" </interface>\n"
"")
public:
@@ -72,9 +78,11 @@ public Q_SLOTS: // METHODS
void time();
void reconnect();
void test();
+ void webviewClosed(const QString &result);
Q_SIGNALS: // SIGNALS
void connectedChanged();
void pebbleChanged();
+ void openUrl(const QString &s);
};
#endif