From 440c119b0a80d40d05f48613de46f367597a3f29 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 9 Jun 2012 14:32:29 +0200 Subject: Implemented sort mode for recordings --- recording.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'recording.h') diff --git a/recording.h b/recording.h index 56659edc..8e712306 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 2.33 2012/06/03 09:49:09 kls Exp $ + * $Id: recording.h 2.34 2012/06/09 13:55:22 kls Exp $ */ #ifndef __RECORDING_H @@ -83,7 +83,8 @@ class cRecording : public cListObject { private: mutable int resume; mutable char *titleBuffer; - mutable char *sortBuffer; + mutable char *sortBufferName; + mutable char *sortBufferTime; mutable char *fileName; mutable char *name; mutable int fileSizeMB; @@ -333,4 +334,11 @@ char *ExchangeChars(char *s, bool ToFileSystem); bool GenerateIndex(const char *FileName); +enum eRecordingsSortMode { rsmName, rsmTime }; +extern eRecordingsSortMode RecordingsSortMode; +bool HasRecordingsSortMode(const char *Directory); +void GetRecordingsSortMode(const char *Directory); +void SetRecordingsSortMode(const char *Directory, eRecordingsSortMode SortMode); +void IncRecordingsSortMode(const char *Directory); + #endif //__RECORDING_H -- cgit v1.2.3