My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
DailyTimer  
System.Timers.DailyTimer for .NET 2.0 and QDailyTimer for Qt 4.6.0
Featured
Updated Dec 2, 2009 by narmi79

Introduction

The DailyTimer is an easy to use timer with applications that need to run tasks on daily basis.

Details

This 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();
Powered by Google Project Hosting