]> git.vomp.tv Git - vompclient.git/blob - rectimer.h
Fix resuming recording directly after stopping it
[vompclient.git] / rectimer.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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19 */
20
21 #ifndef RECTIMER_H
22 #define RECTIMER_H
23
24 #include <stdio.h>
25 #include <string.h>
26
27 #include "defines.h"
28
29 class RecTimer
30 {
31   public:
32     RecTimer();
33     ~RecTimer();
34     void setFile(const char* tFile);
35
36     const char* getFile() { return file; }
37     const char* getDirectory() { return directory; }
38     const char* getName() { return name; }
39
40     ULONG active;
41     ULONG recording;
42     ULONG pending;
43     ULONG priority;
44     ULONG lifeTime;
45     ULONG channelNumber;
46     ULONG startTime;
47     ULONG stopTime;
48     ULONG day;
49     ULONG weekDays;
50
51 //    int index;
52
53     bool operator< (const RecTimer& op2);
54
55   private:
56     char* file;
57     char* directory;
58     char* name;
59 };
60
61 #endif
62
63
64 // File = orig VDR info = filename
65 // Directory = Base Dir
66 // Name = Prog name
67
68 /*
69 Name
70 Directory
71 Active
72 Recording
73 Pending
74 Priority
75 Lifetime
76 Channel number
77 Start time
78 Stop time
79 */