summaryrefslogtreecommitdiff
path: root/searchtimer.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-02-07 16:07:00 +0100
committerlouis <louis.braun@gmx.de>2014-02-07 16:07:00 +0100
commit51df65e90bb7c9805e4d22cefd93a3bb8708beb0 (patch)
treeb3a74c9fba669e7d853028c2633ca237fe92436a /searchtimer.c
parent15ab7fa08b6f99cd436892bbb726c82d086b7f05 (diff)
downloadvdr-plugin-tvguide-51df65e90bb7c9805e4d22cefd93a3bb8708beb0.tar.gz
vdr-plugin-tvguide-51df65e90bb7c9805e4d22cefd93a3bb8708beb0.tar.bz2
order of search timers in search timer list in alphabetical order
Diffstat (limited to 'searchtimer.c')
-rw-r--r--searchtimer.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/searchtimer.c b/searchtimer.c
index 67dd2b3..04601fb 100644
--- a/searchtimer.c
+++ b/searchtimer.c
@@ -71,6 +71,15 @@ cTVGuideSearchTimer::cTVGuideSearchTimer(void) {
cTVGuideSearchTimer::~cTVGuideSearchTimer(void) {
}
+bool cTVGuideSearchTimer::operator < (const cTVGuideSearchTimer& other) const {
+ std::string searchStringOther = other.SearchString();
+ int comp = searchString.compare(searchStringOther);
+ if (comp < 0)
+ return true;
+ return false;
+}
+
+
void cTVGuideSearchTimer::SetTemplate(std::string tmpl) {
std::stringstream searchTimerString;
searchTimerString << "0:";