Public include file for BPS CORE library macros.
#define BPSCORE_EXPORT
Declare class to be an import from the shared library.
Definition: bpscore_global.h:22
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
BPS datastore class.
Definition: bpsdatastore.h:61
Schedule object processing.
Definition: bpsschedule.h:19
void setHour(int aHour, bool aEnable)
Change the enable state of a hour.
QDate nextDate(const QDate &aStart) const
Find the next schedule date after the given start date.
void setMonth(int aMonth, bool aEnable)
Change the enable state of a month.
BpsSchedule & operator=(const BpsSchedule &aOther)
Assign from other schedule.
void loadExceptionDays(BpsDatastore *aDatastore, const QVariantList &aPartnerKeys)
Load exception days from datastore.
QDateTime firstDateTime(const QDate &aDate) const
Find the first date/time for a given date.
void setDayOfMonth(int aDayOfMonth, bool aEnable)
Change the enable state of a day of month.
bool month(int aMonth) const
void setWeekday(const QString &aWeekday, bool aEnable)
Change the enable state of a weekday.
bool month(const QString &aMonth) const
QDate previousDate(const QDate &aStart) const
Find the previous schedule date before the given start date.
bool isDateIncluded(const QDate &aDate) const
Check if a date is included in the schedule.
bool minute(int aMinute) const
QDateTime lastDateTime(const QDate &aDate) const
Find the last date/time for a given date.
void loadExceptionDays(BpsDatastore *aDatastore, const QVariant &aPartnerKey=QVariant())
Load exception days from datastore.
void setCronText(const QString &aCronText)
Set schedule by a CRON text.
QDateTime nextDateTime(const QDateTime &aStart) const
Find the next schedule date/time after the given start date/time.
void clearExceptionDays()
Clear the list of exception days.
BpsSchedule()
Default constructor.
bool hour(int aHour) const
bool weekday(int aWeekday) const
BpsSchedule(const QString &aCronText)
bool isDateTimeIncluded(const QDateTime &aDateTime) const
Check if a date/time is included in the schedule.
void setWeekday(int aWeekday, bool aEnable)
Change the enable state of a weekday.
BpsSchedule(const BpsSchedule &aOther)
Copy constructor.
bool dayOfMonth(int aDayOfMonth) const
bool weekday(const QString &aWeekday) const
void setMonth(const QString &aMonth, bool aEnable)
Change the enable state of a month.
QDateTime previousDateTime(const QDateTime &aStart) const
Find the previous schedule date/time before the given start date/time.
void setMinute(int aMinute, bool aEnable)
Change the enable state of a minute.