-
Notifications
You must be signed in to change notification settings - Fork 1
/
TrackingTab.h
96 lines (68 loc) · 1.73 KB
/
TrackingTab.h
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
* TrackingTab.h
*
* Created on: 13 mai 2013
* Author: gdr
*/
#ifndef TRACKINGTAB_H_
#define TRACKINGTAB_H_
#include <ma.h>
#include <MAUtil/String.h> // C++ String class
#include <MAUtil/Moblet.h> // Moblet class
#include <conprint.h> // lprintfln for logging
#include <NativeUI/Widgets.h>// Include all widgets
#include <MAP/DateTime.h>
#include "conf.h"
#include "Util.h"
#include "notification/LocalNotification.h"
#include "notification/NotificationManager.h"
#include <IX_CELLID.h>
#include "resource/Convert.h"
#include "IncludeFile.h"
#define BUFSIZE 1024
using namespace Wormhole;
using namespace MAUtil;
using namespace NativeUI;
using namespace MAPUtil;
using Notification::NotificationManager;
using Notification::LocalNotification;
class TrackingTab : public NativeUI::Screen, public HighLevelHttpConnection
{
public:
enum eTrakingTab {
TRACKING_LIST = 0,
};
/**
* Constructor.
*/
TrackingTab();
/**
* Destructor.
*/
virtual ~TrackingTab();
void parseJSONTrackingAlert(MAHandle data);
void connectUrl(String url, eTrakingTab fct);
void dataDownloaded(MAHandle , int );
void createUI();
void runTimerEvent();
private:
int connERR;
eTrakingTab fonction;
char mBuffer[BUFSIZE];
bool mIsConnected;
bool bCreateUI;
int count;
String contentString;
ListView *lValert;
MAPUtil::DateTime dateLastSend;
MAUtil::Map<int, MAUtil::String> mapTrackingAlertDesc;
MAUtil::Map<int, String> mapTrackingAlertDate;
MAUtil::Map<int,HorizontalLayout*> mapHLTA;
MAUtil::Map<int,ListViewItem*> mapLVITA;
MAUtil::Map<int,Label*> mapLTADesc;
MAUtil::Map<int,Label*> mapLTAHeure;
VerticalLayout* mainLayout;
STime lastSendAlert;
LocalNotification* notification;
};
#endif /* TRACKINGTAB_H_ */