Documents > BPS V2 C++ API
BpsScheduleCalendarWidget Class Reference

Schedule calendar widget. More...

#include <bpsschedulecalendarwidget.h>

List of all members.

Public Member Functions

 BpsScheduleCalendarWidget (QWidget *aParent=0)
bool gotoNextScheduleDate (const QDate &aDate)
 Set the current date to the next schedule date after the given date.
bool isScheduleDate (const QDate &aDate) const
 Convenience function to check if a certain date is a schedule date.
BpsScheduleschedule () const
QDateTime selectedDateTime () const
void setCronText (const QString &aCronText)
 Set the CRON text defining the schedule.

Detailed Description

Schedule calendar widget.

A extended QCalendarWidget where schedule dates are painted with a light green background, and the current date is painted with dark green background if it is on a schedule date.


Constructor & Destructor Documentation

BpsScheduleCalendarWidget::BpsScheduleCalendarWidget ( QWidget *  aParent = 0)
Parameters:
[in]aParentThe parent widget.

Member Function Documentation

bool BpsScheduleCalendarWidget::gotoNextScheduleDate ( const QDate &  aDate)

Set the current date to the next schedule date after the given date.

Parameters:
[in]aDateThe given date to start searching after.
Returns:
True if success, false if not and current date stays unchanged.
bool BpsScheduleCalendarWidget::isScheduleDate ( const QDate &  aDate) const

Convenience function to check if a certain date is a schedule date.

Parameters:
[in]aDateThe date to check.
Returns:
True if the date is a schedule date, false otherwise.
BpsSchedule* BpsScheduleCalendarWidget::schedule ( ) const
Returns:
The internal schedule object.
QDateTime BpsScheduleCalendarWidget::selectedDateTime ( ) const
Returns:
The date/time of the first schedule time on the selected date.
void BpsScheduleCalendarWidget::setCronText ( const QString &  aCronText)

Set the CRON text defining the schedule.

See also:
BpsSchedule
Parameters:
[in]aCronTextThe schedule expressed as CRON text.

The documentation for this class was generated from the following file: