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 getProtocolVersionMin();
56 static ULONG getProtocolVersionMax();
59 bool recvRequest(RequestPacket*);
63 void sendPacket(SerializeBuffer *b);
65 #ifndef VOMPSTANDALONE
66 int processGetRecordingsList();
67 int processDeleteRecording();
68 int processMoveRecording();
69 int processGetChannelsList();
70 int processStartStreamingChannel();
71 int processGetBlock();
72 int processStopStreaming();
73 int processStartStreamingRecording();
74 int processGetChannelSchedule();
75 int processGetTimers();
76 int processSetTimer();
77 int processPositionFromFrameNumber();
78 int processFrameNumberFromPosition();
79 int processGetIFrame();
80 int processGetRecInfo();
81 int processGetMarks();
82 int processGetChannelPids();
83 int processDeleteTimer();
84 int processReScanRecording(); // FIXME obselete
85 int processVDRShutdown();
86 int processGetRecScraperEventType();
87 int processGetScraperMovieInfo();
88 int processGetScraperSeriesInfo();
89 int processLoadTvMedia();
90 int processLoadTvMediaRecThumb();
93 int processConfigSave();
94 int processConfigLoad();
95 int processGetMediaList();
96 int processOpenMedia();
97 int processGetMediaBlock();
98 int processGetMediaInfo();
99 int processCloseMediaChannel();
100 int processGetLanguageList();
101 int processGetLanguageContent();
102 int processSetCharset();
108 RequestPacketQueue req_queue;
109 ResponsePacket* resp;
110 static ULONG VOMP_PROTOCOL_VERSION_MIN;
111 static ULONG VOMP_PROTOCOL_VERSION_MAX;