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 processDeleteRecResume();
69 int processMoveRecording();
70 int processGetChannelsList();
71 int processStartStreamingChannel();
72 int processGetBlock();
73 int processStopStreaming();
74 int processStartStreamingRecording();
75 int processGetChannelSchedule();
76 int processGetTimers();
77 int processSetTimer();
78 int processPositionFromFrameNumber();
79 int processFrameNumberFromPosition();
80 int processGetIFrame();
81 int processGetRecInfo();
82 int processGetMarks();
83 int processGetChannelPids();
84 int processDeleteTimer();
85 int processReScanRecording(); // FIXME obselete
86 int processVDRShutdown();
87 int processGetRecScraperEventType();
88 int processGetScraperMovieInfo();
89 int processGetScraperSeriesInfo();
90 int processLoadTvMedia();
91 int processLoadTvMediaRecThumb();
92 int processGetEventScraperEventType();
93 int processLoadTvMediaEventThumb();
94 int processLoadChannelLogo();
98 int processConfigSave();
99 int processConfigLoad();
100 int processGetMediaList();
101 int processOpenMedia();
102 int processGetMediaBlock();
103 int processGetMediaInfo();
104 int processCloseMediaChannel();
105 int processGetLanguageList();
106 int processGetLanguageContent();
107 int processSetCharset();
113 RequestPacketQueue req_queue;
114 ResponsePacket* resp;
115 static ULONG VOMP_PROTOCOL_VERSION_MIN;
116 static ULONG VOMP_PROTOCOL_VERSION_MAX;