-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHTTPConnect.h
60 lines (44 loc) · 1019 Bytes
/
HTTPConnect.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
/*
* Connection.h
*
* Created on: 13 mai 2013
* Author: gdr
*/
#ifndef HTTPCONNECT_H_
#define HTTPCONNECT_H_
#include <matime.h>
#include <MAUtil/Moblet.h>
#include <MAUI/Screen.h>
#include <MAUI/Label.h>
#include <MAUI/Layout.h>
#include <MAUI/EditBox.h>
#include <MAUI/Font.h>
#include <NativeUI/Widgets.h>
#include <MAUtil/Connection.h>
#include <Wormhole/HighLevelHttpConnection.h>
#include <Wormhole/MessageStreamJSON.h>
#include <mastdlib.h>
#define BUFSIZE 1024
using namespace Wormhole;
using namespace MAUtil;
using namespace NativeUI;
class HTTPConnect : public HighLevelHttpConnection
{
public:
/**
* Initialize the application in the constructor.
*/
HTTPConnect();
virtual ~HTTPConnect() {}
void connectUrl(String url, String fct, Widget* ptr);
void parsingJSON();
void dataDownloaded(MAHandle , int );
private:
String fonction;
char mBuffer[BUFSIZE];
bool mIsConnected;
int count;
String contentString;
// AlertTab* pointeur;
};
#endif /* HTTPCONNECTION_H_ */