|
WeeklyTimer
System.Timers.WeeklyTimer for .NET 2.0 and QWeeklyTimer for Qt 4.6.0
Featured IntroductionThe WeeklyTimer is an easy to use timer with applications that need to run tasks on weekly basis. DetailsThis class is very similar in use to the original System.Timers.Timer class. In fact all you have to do to schedule a task every Monday at 09:00am is as follows. WeeklyTimer timer = new WeeklyTimer(DayOfWeek.Monday, 9, 0); timer.Elapsed += new ElapsedEventHandler(timer_Elapsed); timer.Start(); To achieve the same result in C++ using Nokia Qt, use the QWeeklyTimer class as follows. QWeeklyTimer* timer = new QWeeklyTimer(Qt::Monday, 9, 0); connect((timer, SIGNAL(timeout()), this, SLOT(timer_elapsed())); timer->start(); |