2 Copyright 2008 Chris Tallon
4 This file is part of VOMP.
6 VOMP is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 VOMP is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with VOMP; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef VOMPCLIENTRRPROC_H
22 #define VOMPCLIENTRRPROC_H
25 #include "responsepacket.h"
27 #include "serialize.h"
29 extern bool ResumeIDLock;
39 RequestPacket(ULONG requestID, ULONG opcode, UCHAR* data, ULONG dataLength)
40 : requestID(requestID), opcode(opcode), data(data), dataLength(dataLength) {}
48 typedef queue<RequestPacket*> RequestPacketQueue;
50 class VompClientRRProc : public Thread
53 VompClientRRProc(VompClient& x);
57 bool recvRequest(RequestPacket*);
61 void sendPacket(SerializeBuffer *b);
63 #ifndef VOMPSTANDALONE
64 int processGetRecordingsList();
65 int processDeleteRecording();
66 int processMoveRecording();
67 int processGetChannelsList();
68 int processStartStreamingChannel();
69 int processGetBlock();
70 int processStopStreaming();
71 int processStartStreamingRecording();
72 int processGetChannelSchedule();
73 int processGetTimers();
74 int processSetTimer();
75 int processPositionFromFrameNumber();
76 int processFrameNumberFromPosition();
77 int processGetIFrame();
78 int processGetRecInfo();
79 int processGetMarks();
80 int processGetChannelPids();
81 int processDeleteTimer();
82 int processReScanRecording(); // FIXME obselete
85 int processConfigSave();
86 int processConfigLoad();
87 int processGetMediaList();
88 int processOpenMedia();
89 int processGetMediaBlock();
90 int processGetMediaInfo();
91 int processCloseMediaChannel();
92 int processGetLanguageList();
93 int processGetLanguageContent();
94 int processSetCharset();
100 RequestPacketQueue req_queue;
101 ResponsePacket* resp;