mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
32 lines
776 B
C
32 lines
776 B
C
|
#ifndef __TVGUIDE_TIMER_H
|
||
|
#define __TVGUIDE_TIMER_H
|
||
|
|
||
|
// --- cMyTime -------------------------------------------------------------
|
||
|
|
||
|
class cMyTime {
|
||
|
private:
|
||
|
time_t t;
|
||
|
time_t tStart;
|
||
|
time_t tStop;
|
||
|
public:
|
||
|
cMyTime(){};
|
||
|
virtual ~cMyTime(void);
|
||
|
void Now();
|
||
|
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 GetStop() {return tStop;};
|
||
|
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();
|
||
|
void debug();
|
||
|
};
|
||
|
|
||
|
#endif //__TVGUIDE_TIMER_H
|