From 0b62aff0e3385ed0c11fda145c2a5167bbc1c56d Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 1 Nov 2004 10:40:38 +0100 Subject: Now using qsort() to sort cListBase lists --- recording.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'recording.h') diff --git a/recording.h b/recording.h index 88b90d3b..184f49ef 100644 --- a/recording.h +++ b/recording.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.h 1.31 2004/07/17 11:09:49 kls Exp $ + * $Id: recording.h 1.32 2004/10/31 16:24:38 kls Exp $ */ #ifndef __RECORDING_H @@ -36,12 +36,12 @@ class cRecording : public cListObject { private: mutable int resume; mutable char *titleBuffer; - char *sortBuffer; + mutable char *sortBuffer; mutable char *fileName; mutable char *name; char *summary; - char *StripEpisodeName(char *s); - char *SortName(void); + static char *StripEpisodeName(char *s); + char *SortName(void) const; int GetResume(void) const; public: time_t start; @@ -50,7 +50,7 @@ public: cRecording(cTimer *Timer, const char *Title, const char *Subtitle, const char *Summary); cRecording(const char *FileName); ~cRecording(); - virtual bool operator< (const cListObject &ListObject); + virtual int Compare(const cListObject &ListObject) const; const char *Name(void) const { return name; } const char *FileName(void) const; const char *Title(char Delimiter = ' ', bool NewIndicator = false, int Level = -1) const; -- cgit v1.2.3