diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-07-11 11:07:13 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-07-11 11:07:13 +0200 |
commit | 7a79059414ea2f10cba1710de0e37dcbbdfbfa42 (patch) | |
tree | 3300a2389ae07acbe21561e6f1fe78ea28674054 /timer.h | |
parent | ceadc0bbfe5a82ebdb961a15e2bb3669197551ad (diff) | |
download | vdr-plugin-tvguide-7a79059414ea2f10cba1710de0e37dcbbdfbfa42.tar.gz vdr-plugin-tvguide-7a79059414ea2f10cba1710de0e37dcbbdfbfa42.tar.bz2 |
Change files to unix
Diffstat (limited to 'timer.h')
-rw-r--r-- | timer.h | 104 |
1 files changed, 52 insertions, 52 deletions
@@ -1,52 +1,52 @@ -#ifndef __TVGUIDE_TIMER_H
-#define __TVGUIDE_TIMER_H
-
-#include <vdr/tools.h>
-
-// --- cMyTime -------------------------------------------------------------
-
-class cMyTime {
- private:
- time_t t;
- time_t tStart;
- time_t tEnd;
- public:
- cMyTime(){};
- virtual ~cMyTime(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_TIMER_H
\ No newline at end of file +#ifndef __TVGUIDE_TIMER_H +#define __TVGUIDE_TIMER_H + +#include <vdr/tools.h> + +// --- cMyTime ------------------------------------------------------------- + +class cMyTime { + private: + time_t t; + time_t tStart; + time_t tEnd; + public: + cMyTime(){}; + virtual ~cMyTime(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_TIMER_H |