Schedule object processing. More...
#include <bpsschedule.h>
Public Member Functions | |
| BpsSchedule () | |
| Default constructor. | |
| BpsSchedule (const BpsSchedule &aOther) | |
| Copy constructor. | |
| BpsSchedule (const QString &aCronText) | |
| QString | cronText () const |
| bool | dayOfMonth (int aDayOfMonth) const |
| QDateTime | firstDateTime (const QDate &aDate) const |
| Find the first date/time for a given date. | |
| QTime | firstTime () const |
| bool | hour (int aHour) const |
| bool | isDateIncluded (const QDate &aDate) const |
| Check if a date is included in the schedule. | |
| bool | isDateTimeIncluded (const QDateTime &aDateTime) const |
| Check if a date/time is included in the schedule. | |
| QDateTime | lastDateTime (const QDate &aDate) const |
| Find the last date/time for a given date. | |
| QTime | lastTime () const |
| bool | minute (int aMinute) const |
| bool | month (int aMonth) const |
| bool | month (const QString &aMonth) const |
| QDate | nextDate (const QDate &aStart) const |
| Find the next schedule date after the given start date. | |
| QDateTime | nextDateTime (const QDateTime &aStart) const |
| Find the next schedule date/time after the given start date/time. | |
| BpsSchedule & | operator= (const BpsSchedule &aOther) |
| Assign from other schedule. | |
| QDate | previousDate (const QDate &aStart) const |
| Find the previous schedule date before the given start date. | |
| QDateTime | previousDateTime (const QDateTime &aStart) const |
| Find the previous schedule date/time before the given start date/time. | |
| void | setCronText (const QString &aCronText) |
| Set schedule by a CRON text. | |
| void | setDayOfMonth (int aDayOfMonth, bool aEnable) |
| Change the enable state of a day of month. | |
| void | setHour (int aHour, bool aEnable) |
| Change the enable state of a hour. | |
| void | setMinute (int aMinute, bool aEnable) |
| Change the enable state of a minute. | |
| void | setMonth (int aMonth, bool aEnable) |
| Change the enable state of a month. | |
| void | setMonth (const QString &aMonth, bool aEnable) |
| Change the enable state of a month. | |
| void | setWeekday (int aWeekday, bool aEnable) |
| Change the enable state of a weekday. | |
| void | setWeekday (const QString &aWeekday, bool aEnable) |
| Change the enable state of a weekday. | |
| bool | weekday (int aWeekday) const |
| bool | weekday (const QString &aWeekday) const |
Schedule object processing.
| BpsSchedule::BpsSchedule | ( | const BpsSchedule & | aOther | ) |
Copy constructor.
| aOther | The other schedule to clone. |
| BpsSchedule::BpsSchedule | ( | const QString & | aCronText | ) |
| aCronText | The CRON text representation. |
| QString BpsSchedule::cronText | ( | ) | const |
| bool BpsSchedule::dayOfMonth | ( | int | aDayOfMonth | ) | const |
| [in] | aDayOfMonth | Must be in the range 1 ... 31 |
| QDateTime BpsSchedule::firstDateTime | ( | const QDate & | aDate | ) | const |
Find the first date/time for a given date.
| [in] | aDate | The date. |
| QTime BpsSchedule::firstTime | ( | ) | const |
| bool BpsSchedule::hour | ( | int | aHour | ) | const |
| [in] | aHour | Must be in the range 0 ... 23 |
| bool BpsSchedule::isDateIncluded | ( | const QDate & | aDate | ) | const |
Check if a date is included in the schedule.
| [in] | aDate | The date to check. |
| bool BpsSchedule::isDateTimeIncluded | ( | const QDateTime & | aDateTime | ) | const |
Check if a date/time is included in the schedule.
| [in] | aDateTime | The date/time to check. |
| QDateTime BpsSchedule::lastDateTime | ( | const QDate & | aDate | ) | const |
Find the last date/time for a given date.
| [in] | aDate | The date. |
| QTime BpsSchedule::lastTime | ( | ) | const |
| bool BpsSchedule::minute | ( | int | aMinute | ) | const |
| [in] | aMinute | Must be in the range 0 ... 59 |
| bool BpsSchedule::month | ( | int | aMonth | ) | const |
| [in] | aMonth | Must be in the range 1 ... 12 |
| bool BpsSchedule::month | ( | const QString & | aMonth | ) | const |
| [in] | aMonth | Must be one of: jan feb mar apr may jun jul aug sep oct nov dec |
| QDate BpsSchedule::nextDate | ( | const QDate & | aStart | ) | const |
Find the next schedule date after the given start date.
| [in] | aStart | The date to start searching from. |
| QDateTime BpsSchedule::nextDateTime | ( | const QDateTime & | aStart | ) | const |
Find the next schedule date/time after the given start date/time.
| [in] | aStart | The date/time to start searching from. |
| BpsSchedule& BpsSchedule::operator= | ( | const BpsSchedule & | aOther | ) |
Assign from other schedule.
| [in] | aOther | The other schedule to copy. |
| QDate BpsSchedule::previousDate | ( | const QDate & | aStart | ) | const |
Find the previous schedule date before the given start date.
| [in] | aStart | The date to start searching from. |
| QDateTime BpsSchedule::previousDateTime | ( | const QDateTime & | aStart | ) | const |
Find the previous schedule date/time before the given start date/time.
| [in] | aStart | The date/time to start searching from. |
| void BpsSchedule::setCronText | ( | const QString & | aCronText | ) |
Set schedule by a CRON text.
| [in] | aCronText | The CRON text. |
| void BpsSchedule::setDayOfMonth | ( | int | aDayOfMonth, |
| bool | aEnable | ||
| ) |
Change the enable state of a day of month.
| [in] | aDayOfMonth | Must be in the range 1 ... 31 |
| [in] | aEnable | The new enable state to set. |
| void BpsSchedule::setHour | ( | int | aHour, |
| bool | aEnable | ||
| ) |
Change the enable state of a hour.
| [in] | aHour | Must be in the range 0 ... 23 |
| [in] | aEnable | The new enable state to set. |
| void BpsSchedule::setMinute | ( | int | aMinute, |
| bool | aEnable | ||
| ) |
Change the enable state of a minute.
| [in] | aMinute | Must be in the range 0 ... 59 |
| [in] | aEnable | The new enable state to set. |
| void BpsSchedule::setMonth | ( | int | aMonth, |
| bool | aEnable | ||
| ) |
Change the enable state of a month.
| [in] | aMonth | Must be in the range 1 ... 12 |
| [in] | aEnable | The new enable state to set. |
| void BpsSchedule::setMonth | ( | const QString & | aMonth, |
| bool | aEnable | ||
| ) |
Change the enable state of a month.
| [in] | aMonth | Must be one of: jan feb mar apr may jun jul aug sep oct nov dec |
| [in] | aEnable | The new enable state to set. |
| void BpsSchedule::setWeekday | ( | int | aWeekday, |
| bool | aEnable | ||
| ) |
Change the enable state of a weekday.
| [in] | aWeekday | Must be in the range 0 ... 7, where 0/7 = sun, 1 = mon, 2 = tue, etc. |
| [in] | aEnable | The new enable state to set. |
| void BpsSchedule::setWeekday | ( | const QString & | aWeekday, |
| bool | aEnable | ||
| ) |
Change the enable state of a weekday.
| [in] | aWeekday | Must be one of: sun mon tue wed thu fri sat |
| [in] | aEnable | The new enable state to set. |
| bool BpsSchedule::weekday | ( | int | aWeekday | ) | const |
| [in] | aWeekday | Must be in the range 0 ... 7, where 0/7 = sun, 1 = mon, 2 = tue, etc. |
| bool BpsSchedule::weekday | ( | const QString & | aWeekday | ) | const |
| [in] | aWeekday | Must be one of: sun mon tue wed thu fri sat |