From 29aaea2d80a9eb1715b6cddfac2d2aacf76358bd Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Thu, 11 Feb 2016 23:55:16 +0100 Subject: launchpad ~mzanetti/rockwork/trunk r87 --- .../platformintegration/testing/testingplatform.h | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 rockworkd/platformintegration/testing/testingplatform.h (limited to 'rockworkd/platformintegration/testing/testingplatform.h') diff --git a/rockworkd/platformintegration/testing/testingplatform.h b/rockworkd/platformintegration/testing/testingplatform.h new file mode 100644 index 0000000..8c820a0 --- /dev/null +++ b/rockworkd/platformintegration/testing/testingplatform.h @@ -0,0 +1,31 @@ +#ifndef TESTINGPLATFORM_H +#define TESTINGPLATFORM_H + +#include "libpebble/platforminterface.h" + +class QQuickView; + +class TestingPlatform : public PlatformInterface +{ + Q_OBJECT +public: + explicit TestingPlatform(QObject *parent = 0); + + void sendMusicControlCommand(MusicControlButton command) override; + MusicMetaData musicMetaData() const override; + + Q_INVOKABLE void sendNotification(int type, const QString &from, const QString &subject, const QString &text); + Q_INVOKABLE void fakeIncomingCall(uint cookie, const QString &number, const QString &name); + Q_INVOKABLE void endCall(uint cookie, bool missed); + + void hangupCall(uint cookie) override; + + QList organizerItems() const override; + void actionTriggered(const QString &actToken) override; +signals: + +private: + QQuickView *m_view; +}; + +#endif // TESTINGPLATFORM_H -- cgit v1.2.3