-
Notifications
You must be signed in to change notification settings - Fork 1
/
RainSandboxApp.h
63 lines (51 loc) · 1.11 KB
/
RainSandboxApp.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
#ifndef _RAINSANDBOXAPP_H
#define _RAINSANDBOXAPP_H
#include <wx/wx.h>
#include <wx/image.h>
#include <wx/dynload.h>
#include <wx/timer.h>
#include <wx/textctrl.h>
#include "_wxconfig.h"
namespace RAIN
{
class ConnectionPool;
class MessageCore;
class MeshCore;
class RoutingManager;
class ManifestManager;
class PieceQueue;
class PieceManager;
class NetworkServices;
namespace GUI
{
class ChatMain;
};
class SandboxApp : public wxApp, public wxThreadHelper
{
public:
virtual bool OnInit();
int OnExit();
void OnFatalException();
void * Entry();
void PollCore(wxTimerEvent& event);
/* internals */
RAIN::ConnectionPool *connections;
RAIN::MessageCore *msgCore;
RAIN::MeshCore *mesh;
RAIN::RoutingManager *router;
RAIN::ManifestManager *manifest;
RAIN::PieceQueue *pieceQueue;
RAIN::PieceManager *pieces;
RAIN::NetworkServices *networkServices;
RAIN::GUI::ChatMain *gui;
DECLARE_EVENT_TABLE();
private:
wxTimer *coreTimer;
wxSemaphore *stop;
};
}
enum
{
ID_SBA_CORETIMER
};
#endif //_RAINSANDBOXAPP_H