]> git.vomp.tv Git - vompclient.git/blob - vrecordinglist.h
Update for windows
[vompclient.git] / vrecordinglist.h
1 /*
2     Copyright 2004-2005 Chris Tallon
3
4     This file is part of VOMP.
5
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.
10
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.
15
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 */
20
21 #ifndef VRECORDINGLIST_H
22 #define VRECORDINGLIST_H
23
24 #include <stdio.h>
25 #include <string.h>
26 #include <time.h>
27 #include <vector>
28 #include <stack>
29
30 #include "view.h"
31 #include "recman.h"
32 #include "directory.h"
33 #include "recording.h"
34 #include "wselectlist.h"
35 #include "remote.h"
36 #include "wsymbol.h"
37 #include "viewman.h"
38 #include "vrecordingmenu.h"
39 #include "vdr.h"
40 #include "vvideorec.h"
41 #include "vradiorec.h"
42 #include "colour.h"
43 #include "video.h"
44 #include "i18n.h"
45 #include "command.h"
46
47 class VRecordingList : public View
48 {
49   public:
50     VRecordingList();
51     ~VRecordingList();
52
53     int handleCommand(int command);
54     void processMessage(Message* m);
55     void draw(bool doIndexPop = false);
56     bool load();
57     void drawData(bool doIndexPop = false);
58
59   private:
60     ViewMan* viewman;
61
62     bool loading;
63     RecMan* recman;
64     Directory* dir;
65
66     WSelectList sl;
67
68     void doShowingBar();
69     void doDeleteSelected();
70     int doPlay(bool resume);
71     void doMoveRecording(Directory* toDir);
72     Recording* getCurrentOptionRecording();
73
74     stack<int> slIndexStack;
75 };
76
77 #endif