-
Notifications
You must be signed in to change notification settings - Fork 0
/
BigScreen.h
92 lines (68 loc) · 1.83 KB
/
BigScreen.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
using namespace std;
#ifndef BIGSCREEN_H
#define BIGSCREEN_H
#include <stdio.h>
#include <main.h>
#include <main/MainEngine.h>
#include <main/MainListener.h>
#include <timer/TimerListener.h>
#include <timer/Timer.h>
#include <interface/Label.h>
#include <font/Font.h>
#include <props/Image.h>
#include <bsml/Parser.h>
#include <config/BSML2Config.h>
#include <config/Config.h>
#include <graffiti/Graffiti.h>
#include <player/PagePlayer.h>
#include <Interface/ProgressBar.h>
#include <http/HTTPThread.h>
// Stupid fars en zo
class MainEngine;
class BigScreen : public MainListener,
public TimerListener /*,
public InputListener*/ {
private:
MainEngine* engine;
// Configuration data
Config* config;
// Load at least one font for basic info output
Font* system_font;
// Main aspects of the bigscreen engine, The Page Player (the chartile thingies), and the Scrolling Sign Marquee (grafitti)
// HTTP Handling
HTTPThread* httpthread;
// Preloading thread for parrallel downloading of page and images
PreloaderThread* preloaderthread;
// Player of slideshow and animations
PagePlayer* pageplayer;
bool graffiti_enabled;
Graffiti* graffiti;
// General purpose label
Label* label_status;
Label* label_size;
// Status info update
Timer* timer_second;
// Cue/Cache refresh
Timer* timer_cacherefresh;
// Progressbar
ProgressBar* progressbar;
// Drome logo
Image* img_dromelogo;
Image* img_connection;
Image* img_update;
char buffer_time[35];
Timer* timer_uiupdate;
Image* loadImage(const string&);
public:
BigScreen();
~BigScreen();
// MainListener:
void onStart();
void onStop();
void onFrame();
// TimerListener
void onTime(Timer*);
// InputListener
// void onKeyDown(int);
};
#endif