From 5ff172c987fc2c6c516c38a2d5018ac1726c54b7 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Thu, 11 Jul 2019 14:40:41 +0200 Subject: Rename timer.* to timemanager.* --- timer.h | 52 ---------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 timer.h (limited to 'timer.h') diff --git a/timer.h b/timer.h deleted file mode 100644 index 35f28c7..0000000 --- a/timer.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef __TVGUIDE_TIMEMANAGER_H -#define __TVGUIDE_TIMEMANAGER_H - -#include - -// --- cTimeManager ------------------------------------------------------------- - -class cTimeManager { - private: - time_t t; - time_t tStart; - time_t tEnd; - public: - cTimeManager(){}; - virtual ~cTimeManager(void); - static cString printTime(time_t displayTime); - void Now(); - time_t GetNow() { return t; }; - void AddStep(int step); - bool DelStep(int step); - void SetTime(time_t newTime); - time_t Get() {return t;}; - time_t GetStart() {return tStart;}; - time_t GetEnd() {return tEnd;}; - cString GetCurrentTime(); - cString GetDate(); - cString GetWeekday(); - time_t getPrevPrimetime(time_t current); - time_t getNextPrimetime(time_t current); - bool tooFarInPast(time_t current); - int GetTimelineOffset(); - time_t GetRounded(); - bool NowVisible(void); - void debug(); -}; - -// --- cTimeInterval ------------------------------------------------------------- - -class cTimeInterval { - private: - time_t start; - time_t stop; - public: - cTimeInterval(time_t start, time_t stop); - virtual ~cTimeInterval(void); - time_t Start(void) { return start; }; - time_t Stop(void) { return stop; }; - cTimeInterval *Intersect(cTimeInterval *interval); - cTimeInterval *Union(cTimeInterval *interval); -}; - -#endif //__TVGUIDE_TIMEMANAGER_H -- cgit v1.2.3