diff options
author | Rolf Ahrenberg <Rolf.Ahrenberg@sci.fi> | 2011-02-10 13:14:57 +0200 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2011-02-10 22:41:13 +0100 |
commit | 36485b88308aef886c2b99f07d574e4962d1969b (patch) | |
tree | edda6855c83186cf41c602ba91e6800d8b1ea7c2 /recman.h | |
parent | 23562a42a5a5d776330b42823fe844493b574830 (diff) | |
download | vdr-plugin-live-36485b88308aef886c2b99f07d574e4962d1969b.tar.gz vdr-plugin-live-36485b88308aef886c2b99f07d574e4962d1969b.tar.bz2 |
Added support for sorting recordings by name and date in both ascending and descending orders.
Diffstat (limited to 'recman.h')
-rw-r--r-- | recman.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -130,6 +130,17 @@ namespace vdrlive { cThreadLock m_recordingsLock; }; + /** + * Class containing possible recordings compare functions + */ + class RecordingsItemPtrCompare + { + public: + static bool ByAscendingDate(RecordingsItemPtr & first, RecordingsItemPtr & second); + static bool ByDescendingDate(RecordingsItemPtr & first, RecordingsItemPtr & second); + static bool ByAscendingName(RecordingsItemPtr & first, RecordingsItemPtr & second); + static bool ByDescendingName(RecordingsItemPtr & first, RecordingsItemPtr & second); + }; /** * Base class for entries in recordings tree and recordings list. |