-
Notifications
You must be signed in to change notification settings - Fork 0
/
buddy.h
85 lines (69 loc) · 1.7 KB
/
buddy.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
#ifndef _BUDDY_H_
#define _BUDDY_H_
extern "C" {
#include "interface.h"
#include "common.h"
#include "config.h"
#include "os.h"
#include "system.h"
#include "systemip.h"
#include "xml.h"
#include "wm.h"
#include "dom.h"
#include "activityObject.h"
#include "rootControllerSync.h"
#include "basic.h"
#include "mikaPosClient.h"
#include "mikaEventReceiver.h"
#include "global.h"
}
#include "mikaWidget.h"
#include "mikaSignageWidget.h"
#include "mikaGalleryWidget.h"
#include "mikaVideoWidget.h"
#include "mikaRotateWidget.h"
#include "mikaWindow.h"
#include "mikaClockWidget.h"
#include "mikaList.h"
#define _APP_W 640
#define _APP_H 640
#define _INIT_ROTATION 0
class buddyGallery {
public:
mikaWindow *window;
buddyGallery( mikaWindow *root );
~buddyGallery( );
};
class buddyPos {
public:
mikaList *list;
buddyPos( );
~buddyPos( );
};
class buddy {
public:
mikaWindow *root;
mikaWindow *window;
mikaSignageWidget *signage;
mikaGalleryWidget *gallery;
mikaVideoWidget *video;
mikaRotateWidget *rotate;
mikaClockWidget *clock;
struct mikaListDelegate posDelegate;
mikaList *posList;
struct tr_Object *up;
struct tr_Object *down;
buddyPos *pos;
buddy( );
~buddy( );
};
class buddyWidget : public mikaWidget {
public:
buddyWidget( struct mikaWidgetData *data );
~buddyWidget( );
void onButtonDown( struct mikaEvent *event );
void onButtonUp( struct mikaEvent *event );
void onEvent( struct mikaEvent *event );
};
extern buddy *gbuddy;
#endif