|
DailyTimer
System.Timers.DailyTimer for .NET 2.0 and QDailyTimer for Qt 4.6.0
Featured IntroductionThe DailyTimer is an easy to use timer with applications that need to run tasks on daily basis. DetailsThis class is very similar in use to the original System.Timers.Timer class. All you have to do to schedule a task everyday, except the weekends, at 09:30am is as follows. DailyTimer timer = new DailyTimer(9, 30); timer.TimeoutOnWeekends = false; timer.Elapsed += new ElapsedEventHandler(timer_Elapsed); timer.Start(); To achieve the same result in C++ using Nokia Qt, use the QDailyTimer class as follows. QDailyTimer* timer = new QDailyTimer(9, 30); timer->setTimeoutOnWeekends(false); connect((timer, SIGNAL(timeout()), this, SLOT(timer_elapsed())); timer->start(); |