-
Notifications
You must be signed in to change notification settings - Fork 1
/
decoderop.hpp
43 lines (34 loc) · 868 Bytes
/
decoderop.hpp
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
#ifndef DECODEROP_HPP
#define DECODEROP_HPP
class DecoderOperation;
class DecoderState;
#include <X11/Xlib.h>
#include "decoder.hpp"
class DecoderOperation {
public:
virtual void execute( DecoderState &state ) = 0;
virtual ~DecoderOperation() {}
};
class SetPictureNumber : public DecoderOperation {
private:
int picture_number;
public:
SetPictureNumber( int s_picture_number ) : picture_number( s_picture_number ) {}
~SetPictureNumber() {}
void execute( DecoderState &state ) { state.current_picture = picture_number; }
};
class XKey : public DecoderOperation {
private:
KeySym key;
public:
XKey( KeySym s_key ) : key( s_key ) {}
~XKey() {}
void execute ( DecoderState &state );
};
class DecoderShutDown : public DecoderOperation {
public:
DecoderShutDown() {}
~DecoderShutDown() {}
void execute( DecoderState &state );
};
#endif