summaryrefslogtreecommitdiff
path: root/rockworkd/platformintegration/testing/testingplatform.h
blob: 8c820a0d99e67a4497079bca98a33b9b2a6dbcfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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<CalendarEvent> organizerItems() const override;
    void actionTriggered(const QString &actToken) override;
signals:

private:
    QQuickView *m_view;
};

#endif // TESTINGPLATFORM_H