summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-05-16 10:35:36 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-05-16 10:35:36 +0200
commit5d99df7b7760c4a2b497c737a15b609008f6d56d (patch)
treea342f2f7465a73fe2bd63848d87566af8d646dd3 /recording.c
parent7aab06d8b1c6de59d06756d44c631984acd299b3 (diff)
downloadvdr-5d99df7b7760c4a2b497c737a15b609008f6d56d.tar.gz
vdr-5d99df7b7760c4a2b497c737a15b609008f6d56d.tar.bz2
Implemented 'skins' and 'themes'
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/recording.c b/recording.c
index a181ff45..05efc440 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 1.86 2003/11/08 15:25:35 kls Exp $
+ * $Id: recording.c 1.87 2004/05/07 14:24:18 kls Exp $
*/
#include "recording.h"
@@ -18,6 +18,7 @@
#include "i18n.h"
#include "interface.h"
#include "remux.h" //XXX+ I_FRAME
+#include "skins.h"
#include "tools.h"
#include "videodir.h"
@@ -461,7 +462,7 @@ char *cRecording::SortName(void)
return sortBuffer;
}
-int cRecording::GetResume(void)
+int cRecording::GetResume(void) const
{
if (resume == RESUME_NOT_INITIALIZED) {
cResumeFile ResumeFile(FileName());
@@ -476,7 +477,7 @@ bool cRecording::operator< (const cListObject &ListObject)
return strcasecmp(SortName(), r->SortName()) < 0;
}
-const char *cRecording::FileName(void)
+const char *cRecording::FileName(void) const
{
if (!fileName) {
struct tm tm_r;
@@ -488,7 +489,7 @@ const char *cRecording::FileName(void)
return fileName;
}
-const char *cRecording::Title(char Delimiter, bool NewIndicator, int Level)
+const char *cRecording::Title(char Delimiter, bool NewIndicator, int Level) const
{
char New = NewIndicator && IsNew() ? '*' : ' ';
free(titleBuffer);
@@ -548,7 +549,7 @@ const char *cRecording::PrefixFileName(char Prefix)
return NULL;
}
-int cRecording::HierarchyLevels(void)
+int cRecording::HierarchyLevels(void) const
{
const char *s = name;
int level = 0;
@@ -559,7 +560,7 @@ int cRecording::HierarchyLevels(void)
return level;
}
-bool cRecording::IsEdited(void)
+bool cRecording::IsEdited(void) const
{
const char *s = strrchr(name, '~');
s = !s ? name : s + 1;
@@ -637,7 +638,7 @@ bool cRecordings::Load(bool Deleted)
result = Count() > 0;
}
else
- Interface->Error("Error while opening pipe!");
+ Skins.Message(mtError, "Error while opening pipe!");
free(cmd);
return result;
}