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
WeeklyTimer  
System.Timers.WeeklyTimer for .NET 2.0 and QWeeklyTimer for Qt 4.6.0
Featured
Updated Dec 2, 2009 by narmi79

Introduction

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

Details

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