-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEvents.cpp
executable file
·333 lines (255 loc) · 5.73 KB
/
Events.cpp
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
#include "Events.h"
#include "AMFCapabilityProfile.h"
int Events::getServiceInstanceID()
{
return this->serviceInstanceID;
}
void Events::setServiceInstanceID(int id)
{
this->serviceInstanceID = id;
}
bool AudioFocus::getIptvFocus()
{
return this->iptvFocus;
}
void AudioFocus::setIptvFocus(bool focus)
{
this->iptvFocus = focus;
}
std::string CaptionLanguageChange::getCaptionLanguage()
{
return this->captionLanguage;
}
void CaptionLanguageChange::setCaptionLanguage(std::string captionLang)
{
this->captionLanguage = captionLang;
}
void AudioLanguageChange::setAudioLanguage(std::string audioLang)
{
this->audioLanguage = audioLang;
}
std::string AudioLanguageChange::getAudioLang()
{
return this->audioLanguage;
}
void AudioVolume::setVolumeDirection(AudioVolume::VolumeDirection volDirection)
{
this->volumeDirection = volDirection;
}
AudioVolume::VolumeDirection AudioVolume::getVolumeDirection()
{
return this->volumeDirection;
}
void VideoObscure::setObscuration(float obscuration)
{
this->obscuration = obscuration;
}
float VideoObscure::getObscuration()
{
return this->obscuration;
}
float VideoZoom::getZoomFactor()
{
return this->zoomFactor;
}
void VideoZoom::setZoomFactor(float zoomFactor)
{
this->zoomFactor = zoomFactor;
}
unsigned VideoResize::getImageWidth()
{
return this->imageWidth;
}
unsigned VideoResize::getImageHeight()
{
return this->imageHeight;
}
void VideoResize::setImageWidth(unsigned width)
{
this->imageWidth = width;
}
void VideoResize::setImageHeight(unsigned height)
{
this->imageHeight = height;
}
TimeStamp* EventCount::getStartTime()
{
return this->startTime;
}
int EventCount::getEventsCounted()
{
return this->eventsCounted;
}
void EventCount::setStartTime(TimeStamp* t)
{
this->startTime = t;
}
void EventCount::setEventsCounted(int eventsCounted)
{
this->eventsCounted = eventsCounted;
}
EventCount::~EventCount()
{
delete this->startTime;
}
void ChannelStart::setControlDevice(AMFCapabilityProfile::ControlDevice ctrl)
{
this->controlDevice = ctrl;
}
void ChannelStart::setStartNavMethod(StartNavMethod navMethod)
{
this->startNavMethod = navMethod;
}
void ChannelStart::setPreviousServiceInstanceID(int id)
{
this->previousServiceInstanceID = id;
}
void ChannelStart::setServiceIdentifer(std::string serviceID)
{
this->serviceIdentifier = serviceID;
}
void ChannelStart::setViewMode(std::string v)
{
this->viewMode = v;
}
void ChannelStart::setObscuration(float obscuration)
{
this->obscuration = obscuration;
}
AMFCapabilityProfile::ControlDevice ChannelStart::getControlDevice()
{
return this->controlDevice;
}
ChannelStart::StartNavMethod ChannelStart::getStartNavMethod()
{
return this->startNavMethod;
}
int ChannelStart::getPreviousServiceInstanceID()
{
return this->previousServiceInstanceID;
}
std::string ChannelStart::getServiceIdentifer()
{
return this->serviceIdentifier;
}
std::string ChannelStart::getViewMode()
{
return this->viewMode;
}
void ChannelStop::setControlDevice(AMFCapabilityProfile::ControlDevice ctrl)
{
this->controlDevice = ctrl;
}
void ChannelStop::setStopNavMethod(StopNavMethod stopNavMethod)
{
this->stopNavMethod = stopNavMethod;
}
AMFCapabilityProfile::ControlDevice ChannelStop::getControlDevice()
{
return this->controlDevice;
}
ChannelStop::StopNavMethod ChannelStop::getStopNavMethod()
{
return this->stopNavMethod;
}
void ChannelPlaying::setServiceIdentifier(std::string id)
{
this->serviceIdentifier = id;
}
std::string ChannelPlaying::getServiceIdentifier()
{
return this->serviceIdentifier;
}
AudioFocus::AudioFocus()
{
this->iptvFocus = false;
this->setServiceInstanceID(0);
}
CaptionLanguageChange::CaptionLanguageChange()
{
this->setServiceInstanceID(0);
}
AudioLanguageChange::AudioLanguageChange()
{
this->setServiceInstanceID(0);
}
AudioVolume::AudioVolume()
{
this->setServiceInstanceID(0);
}
VideoObscure::VideoObscure()
{
this->setServiceInstanceID(0);
this->obscuration = 0;
}
VideoZoom::VideoZoom()
{
this->setServiceInstanceID(0);
this->zoomFactor = 0;
}
VideoResize::VideoResize()
{
this->imageHeight = 0;
this->imageWidth = 0;
this->setServiceInstanceID(0);
}
EventCount::EventCount()
{
this->eventsCounted = 0;
this->setServiceInstanceID(0);
this->startTime = NULL;
}
ChannelStart::ChannelStart()
{
this->previousServiceInstanceID = 0;
this->obscuration = 0;
this->setServiceInstanceID(0);
this->controlDevice = AMFCapabilityProfile::OTHER;
this->startNavMethod = ChannelStart::unknown;
this->viewMode = ChannelStart::Unknown;
}
ChannelStop::ChannelStop()
{
this->controlDevice = AMFCapabilityProfile::OTHER;
this->setServiceInstanceID(0);
this->stopNavMethod = ChannelStop::unknown;
}
ChannelPlaying::ChannelPlaying()
{
this->setServiceInstanceID(0);
}
AudioVolume::~AudioVolume()
{
}
float ChannelStart::getObscuration()
{
return this->obscuration;
}
void VoDEvent::setServiceIdentifier(std::string id)
{
this->serviceIdentifier = id;
}
std::string VoDEvent::getServiceIdentifier()
{
return this->serviceIdentifier;
}
void VoDEvent::setEventName(std::string event)
{
this->event = event;
}
std::string VoDEvent::getEventName()
{
return this->event;
}
VoDEvent::VoDEvent()
{
this->setServiceInstanceID(2);
}
std::string VoDPlaying::getServiceIdentifier()
{
return this->serviceIdentifier;
}
void VoDPlaying::setServiceIdentifier(std::string identifier)
{
this->serviceIdentifier = identifier;
}