Results 1 to 4 of 4

Thread: Cron or Quartz-like event scheduling?

  1. #1
    Join Date
    Aug 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Cron or Quartz-like event scheduling?

    Hi,

    I need to create event schedules programmed like cron or quartz-scheduler (every 30mins, or every Tuesday at 1pm, etc.). The schedule needs to persist whether the app is running or not and the app needs to react to these events when it is active.

    Is there any popular framework for this in Qt/C++? I see mention of a Calendar API in the roadmap but only find information about the Calendar widget.

    Cheers!

  2. #2
    Join Date
    Aug 2007
    Posts
    166
    Thanks
    16
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cron or Quartz-like event scheduling?

    Well why you would need a special framework for a scheduler? I think you can just use a 1 second timer for example to check if it is time to run specific task.

  3. #3
    Join Date
    Aug 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Cron or Quartz-like event scheduling?

    I don't think QTimer is tied to the system clock? I.e. start event at 06:00.000.

    Also I'd rather not code all the complex rules and tests for every 2nd Tuesday at 8pm, every first Thursday in the month, etc. I'd rather have a library to do this so I can carry on and code the business logic.

  4. #4
    Join Date
    Aug 2007
    Posts
    166
    Thanks
    16
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cron or Quartz-like event scheduling?

    QTimer is not tied to the system clock but you can check the clock when your timer calls a slot.

    I don't think that library of your request exist. I mean that this is complete product you can hardly call it library if it can do all the scheduling. So if you like to add some business logic( I can't imagine what this would be ) just get some of the already created open source projects and write some new stuff.

Similar Threads

  1. Scheduling
    By stevey in forum Qt Programming
    Replies: 2
    Last Post: 18th June 2011, 06:31
  2. Timer event & paint event, priority
    By Teuniz in forum Qt Programming
    Replies: 0
    Last Post: 2nd February 2010, 13:33
  3. Replies: 10
    Last Post: 15th January 2010, 14:35
  4. mouseMoveEvent(QMouseEvent* event), event->button()
    By faraslacks in forum Qt Programming
    Replies: 1
    Last Post: 17th December 2008, 05:22
  5. Replies: 0
    Last Post: 23rd October 2008, 12:43

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.