-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEvents.h
executable file
·205 lines (168 loc) · 5.12 KB
/
Events.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
#ifndef EVENTS_H_INCLUDED
#define EVENTS_H_INCLUDED
#include <string>
#include "eventDefs.h"
#include "AMFCapabilityProfile.h"
class Events{
private:
int serviceInstanceID;
public :
int getServiceInstanceID();
void setServiceInstanceID(int id);
};
class AudioFocus : public Events{
private :
bool iptvFocus;
public :
bool getIptvFocus();
void setIptvFocus(bool focus);
AudioFocus();
};
class CaptionLanguageChange : public Events{
private:
std::string captionLanguage;
public:
std::string getCaptionLanguage();
void setCaptionLanguage(std::string captionLang);
CaptionLanguageChange();
};
class AudioLanguageChange : public Events{
private:
std::string audioLanguage;
public :
void setAudioLanguage(std::string audioLang);
std::string getAudioLang();
AudioLanguageChange();
};
class AudioVolume : public Events{
public:
enum VolumeDirection{
up, down, mute,unmute
};
private:
VolumeDirection volumeDirection;
public :
void setVolumeDirection(VolumeDirection volDirection);
VolumeDirection getVolumeDirection();
AudioVolume();
~AudioVolume();
};
class VideoObscure : public Events{
private :
float obscuration;
public:
void setObscuration(float obscuration);
float getObscuration();
VideoObscure();
};
class VideoZoom : public Events{
private :
float zoomFactor;
public:
float getZoomFactor();
void setZoomFactor(float zoomFactor);
VideoZoom();
};
class VideoResize : public Events{
private:
unsigned imageWidth;
unsigned imageHeight;
public:
unsigned getImageWidth();
unsigned getImageHeight();
void setImageWidth(unsigned width);
void setImageHeight(unsigned height);
VideoResize();
};
class EventCount : public Events{
private :
TimeStamp *startTime;
int eventsCounted;
public:
TimeStamp *getStartTime();
int getEventsCounted();
void setStartTime(TimeStamp *t);
void setEventsCounted(int eventsCounted);
EventCount();
~EventCount();
};
class ChannelStart : public Events{
public:
enum StartNavMethod{
UpdownArrow = 0, channelSurfing = 1,
scheduledChannelChange = 2, EPG = 3, Last_previous = 4,
Favourite = 5, numberEntry = 6, unknown = 7, other = 8
};
enum ViewMode{
Unknown = 0,
full_screen,
Picture_in_Picture,
Mosaic,
Other
};
private:
AMFCapabilityProfile::ControlDevice controlDevice;
StartNavMethod startNavMethod;
int previousServiceInstanceID;
std::string serviceIdentifier;
std::string viewMode;
float obscuration;
public:
void setControlDevice(AMFCapabilityProfile::ControlDevice ctrl);
void setStartNavMethod(StartNavMethod navMethod);
void setPreviousServiceInstanceID(int id);
void setServiceIdentifer(std::string serviceID);
void setViewMode(std::string viewMode);
void setObscuration(float obscuration);
ChannelStart();
AMFCapabilityProfile::ControlDevice getControlDevice();
StartNavMethod getStartNavMethod();
int getPreviousServiceInstanceID();
std::string getServiceIdentifer();
std::string getViewMode();
float getObscuration();
};
class ChannelStop : public Events{
public:
enum StopNavMethod{
UpDownArrow = 0, channel_surfing, scheduled_channel_change,
EPG, Last_previous, Favourite, number_entry, unknown ,other ,
turn_off_terminal_device = 999
};
private:
AMFCapabilityProfile::ControlDevice controlDevice;
StopNavMethod stopNavMethod;
public:
ChannelStop();
void setControlDevice(AMFCapabilityProfile::ControlDevice ctrl);
void setStopNavMethod(StopNavMethod stopNavMethod);
AMFCapabilityProfile::ControlDevice getControlDevice();
StopNavMethod getStopNavMethod();
};
class ChannelPlaying : public Events{
private:
std::string serviceIdentifier;
public :
void setServiceIdentifier(std::string id);
std::string getServiceIdentifier();
ChannelPlaying();
};
class VoDEvent : public Events{
private:
std::string event;
std::string serviceIdentifier;
public:
void setServiceIdentifier(std::string id);
std::string getServiceIdentifier();
void setEventName(std::string event);
std::string getEventName();
VoDEvent();
};
class VoDPlaying : public Events{
private:
std::string serviceIdentifier;
public:
std::string getServiceIdentifier();
void setServiceIdentifier(std::string identifier);
};
#endif // EVENTS_H_INCLUDED