PiglerAPI
PiglerAPI.h
1
6#ifndef PIGLERAPI
7#define PIGLERAPI
8
9#include <e32base.h>
10
11class TPiglerMessage;
12class CPiglerTapServer;
13class CAknIndicatorPlugin;
14
19{
20public:
24 virtual void HandleTap(TInt uid) = 0;
25};
26
32class PiglerAPI: private RSessionBase
33{
34public:
35 PiglerAPI();
36 ~PiglerAPI();
37
47 TInt Init(TBuf<64> appName);
48
61 TInt Init();
62
69 void SetAppId(TInt appId);
70
79 TInt GetAPIVersion();
80
84 TBuf<64> GetAppName();
85
103 TInt SetNotification(TInt uid, TBuf<256> text);
104
117 TInt RemoveNotification(TInt uid);
118
128
140
155 TInt SetRemoveOnTap(TInt uid, TBool remove);
156
175 TInt SetLaunchAppOnTap(TInt uid, TBool launchOnTap);
176
192 TInt SetNotificationIcon(TInt uid, TPtrC8& iconBitmap);
193
206
219
232
238 TInt StartAnnaServer();
239
245 TInt GetBitmapSize();
246
250 void Close();
251
257 void SetTapHandler(IPiglerTapHandler *handler);
258private:
259 CPiglerTapServer *iServer;
260 TInt Connect();
261 TInt SendMessage(TInt function, const TPiglerMessage aMessage);
262 TInt Remove();
263 TBuf<64> iAppName;
264 TBool iConnected;
265 TInt iAppId;
266 TBool iRandom;
267};
268
269#endif
Definition PiglerAPI.h:19
virtual void HandleTap(TInt uid)=0
Definition PiglerAPI.h:33
TInt SetRemoveOnTap(TInt uid, TBool remove)
Definition PiglerAPI.cpp:122
TBuf< 64 > GetAppName()
Definition PiglerAPI.cpp:82
TInt GetMaxNotificationsCount()
Definition PiglerAPI.cpp:161
TInt GetGlobalNotificationsCount()
Definition PiglerAPI.cpp:167
TInt GetBitmapSize()
Definition PiglerAPI.cpp:181
TInt SetNotificationIcon(TInt uid, TPtrC8 &iconBitmap)
Definition PiglerAPI.cpp:142
TInt GetAPIVersion()
Definition PiglerAPI.cpp:76
void Close()
Definition PiglerAPI.cpp:198
TInt StartAnnaServer()
Definition PiglerAPI.cpp:187
TInt GetNotificationsCount()
Definition PiglerAPI.cpp:153
PiglerAPI()
Definition PiglerAPI.cpp:14
TInt RemoveNotification(TInt uid)
Definition PiglerAPI.cpp:97
void SetTapHandler(IPiglerTapHandler *handler)
Definition PiglerAPI.cpp:25
TInt RemoveAllNotifications()
Definition PiglerAPI.cpp:106
void SetAppId(TInt appId)
Definition PiglerAPI.cpp:30
TInt Init()
Definition PiglerAPI.cpp:58
TInt SetNotification(TInt uid, TBuf< 256 > text)
Definition PiglerAPI.cpp:87
TInt SetLaunchAppOnTap(TInt uid, TBool launchOnTap)
Definition PiglerAPI.cpp:132
TInt GetLastTappedNotification()
Definition PiglerAPI.cpp:114