PiglerAPI
QPiglerAPI.h
1
6#ifndef QPIGLERAPI
7#define QPIGLERAPI
8
9#include <QObject>
10#include <QString>
11#include <QImage>
12
13#include "PiglerAPI.h"
14
15class QPiglerAPI;
16
17class QPiglerAPI : public QObject, private IPiglerTapHandler
18{
19 Q_OBJECT
20
21private:
22 PiglerAPI *api;
23 IPiglerTapHandler *handler;
24
25public:
26 explicit QPiglerAPI(QObject* parent = 0);
28
29public slots:
33 qint32 init(QString name);
37 qint32 init();
38
43 void setAppId(qint32 appId);
44
49 QString appName();
50
58 qint32 setNotification(qint32 notificationId, QString title, QString message);
67 qint32 updateNotification(qint32 notificationId, QString title, QString message);
75 qint32 createNotification(QString title, QString message);
76
82 qint32 removeNotification(qint32 notificationId);
88
94
101 qint32 setRemoveOnTap(qint32 notificationId, bool remove);
108 qint32 setLaunchAppOnTap(qint32 notificationId, bool launch);
109
116 qint32 setNotificationIcon(qint32 notificationId, QImage icon);
117
123 qint32 getNotificationsCount();
124
131
138
144 qint32 startAnnaServer();
145
149 void close();
150
155 void setTapHandler(IPiglerTapHandler *handler);
156
157private:
158 virtual void HandleTap(TInt uid);
159
160private slots:
161 void doHandleTap(qint32 notificationId);
162
163signals:
164 void handleTap(qint32 notificationId);
165};
166
167#endif
Definition PiglerAPI.h:19
Definition PiglerAPI.h:33
Definition QPiglerAPI.h:18
qint32 setRemoveOnTap(qint32 notificationId, bool remove)
Definition QPiglerAPI.cpp:110
qint32 getNotificationsCount()
Definition QPiglerAPI.cpp:148
void setTapHandler(IPiglerTapHandler *handler)
Definition QPiglerAPI.cpp:22
qint32 getMaxNotificationsCount()
Definition QPiglerAPI.cpp:153
qint32 setNotification(qint32 notificationId, QString title, QString message)
Definition QPiglerAPI.cpp:67
qint32 updateNotification(qint32 notificationId, QString title, QString message)
Definition QPiglerAPI.cpp:90
qint32 init(QString name)
Definition QPiglerAPI.cpp:52
void setAppId(qint32 appId)
Definition QPiglerAPI.cpp:62
qint32 createNotification(QString title, QString message)
Definition QPiglerAPI.cpp:85
qint32 setLaunchAppOnTap(qint32 notificationId, bool launch)
Definition QPiglerAPI.cpp:115
qint32 setNotificationIcon(qint32 notificationId, QImage icon)
Definition QPiglerAPI.cpp:120
qint32 startAnnaServer()
Definition QPiglerAPI.cpp:163
qint32 getGlobalNotificationsCount()
Definition QPiglerAPI.cpp:158
QString appName()
Definition QPiglerAPI.cpp:46
qint32 removeAllNotifications()
Definition QPiglerAPI.cpp:100
qint32 removeNotification(qint32 notificationId)
Definition QPiglerAPI.cpp:95
void close()
Definition QPiglerAPI.cpp:168
qint32 getLastTappedNotification()
Definition QPiglerAPI.cpp:105