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);
55 static ULONG getProtocolVersion();
58 bool recvRequest(RequestPacket*);
62 void sendPacket(SerializeBuffer *b);
64 #ifndef VOMPSTANDALONE
65 int processGetRecordingsList();
66 int processDeleteRecording();
67 int processMoveRecording();
68 int processGetChannelsList();
69 int processStartStreamingChannel();
70 int processGetBlock();
71 int processStopStreaming();
72 int processStartStreamingRecording();
73 int processGetChannelSchedule();
74 int processGetTimers();
75 int processSetTimer();
76 int processPositionFromFrameNumber();
77 int processFrameNumberFromPosition();
78 int processGetIFrame();
79 int processGetRecInfo();
80 int processGetMarks();
81 int processGetChannelPids();
82 int processDeleteTimer();
83 int processReScanRecording(); // FIXME obselete
84 int processVDRShutdown();
87 int processConfigSave();
88 int processConfigLoad();
89 int processGetMediaList();
90 int processOpenMedia();
91 int processGetMediaBlock();
92 int processGetMediaInfo();
93 int processCloseMediaChannel();
94 int processGetLanguageList();
95 int processGetLanguageContent();
96 int processSetCharset();
102 RequestPacketQueue req_queue;
103 ResponsePacket* resp;
104 static ULONG VOMP_PROTOCOL_VERSION;