<%pre> #include #include #include #include "setup.h" #include "tools.h" #include "timers.h" using namespace vdrlive; <%args> timerid; <{ ReadLock channelsLock( Channels ); if (!channelsLock) return DECLINED; // XXX error page { ReadLock channelsLock2( Channels ); if (!channelsLock2)return DECLINED; } cMutexLock timersLock( &LiveTimerManager() ); SortedTimers& timers = LiveTimerManager().GetTimers(); cTimer* timer = 0; if ( !timerid.empty() ) { timer = timers.GetByTimerId( timerid ); if ( timer == 0 ) return DECLINED; // XXX error page } bool active = timer ? timer->Flags() & tfActive : true; std::string channel = timer ? *timer->Channel()->GetChannelID().ToString() : ""; std::string title = timer ? timer->File() : ""; int day = ( !timer || timer->Day() ) ? StringToInt( FormatDateTime( "%d", timer ? timer->Day() : time( 0 ) ) ) : 0; bool wday_mon = timer ? timer->WeekDays() & 0x01 : false; bool wday_tue = timer ? timer->WeekDays() & 0x02 : false; bool wday_wed = timer ? timer->WeekDays() & 0x04 : false; bool wday_thu = timer ? timer->WeekDays() & 0x08 : false; bool wday_fri = timer ? timer->WeekDays() & 0x10 : false; bool wday_sat = timer ? timer->WeekDays() & 0x20 : false; bool wday_sun = timer ? timer->WeekDays() & 0x40 : false; int start_h = timer ? ( timer->Start() / 100 ) % 100 : StringToInt( FormatDateTime( "%H", time( 0 ) ) ); int start_m = timer ? timer->Start() % 100 : StringToInt( FormatDateTime( "%M", time( 0 ) ) ); int end_h = timer ? ( timer->Stop() / 100 ) % 100 : StringToInt( FormatDateTime( "%H", time( 0 ) ) ); int end_m = timer ? timer->Stop() % 100 : StringToInt( FormatDateTime( "%M", time( 0 ) ) ); bool vps = timer ? timer->Flags() & tfVps : ::Setup.UseVps; int priority = timer ? timer->Priority() : ::Setup.DefaultPriority; int lifetime = timer ? timer->Lifetime() : ::Setup.DefaultLifetime; }> VDR Live - <$ timer ? tr("Edit timer") : tr("New timer") $>
VDR Live! <& menu >
<$ timer ? tr("Edit timer") : tr("New timer") $>
Timer aktiv: type="radio">Ja type="radio">Nein
Kanal: <& channels_widget name=("channel") selected=(channel) &>
Titel
Tag der Aufnahme
Wochentag /> Montag /> Dienstag /> Mittwoch /> Donnerstag /> Freitag /> Samstag /> Sonntag
Startzeit: :
Endzeit: :
VPS verwenden />
Priorität:
Lebensdauer: