Private implementation class for SyncSchedule.
More...
#include <SyncSchedule_p.h>
Private implementation class for SyncSchedule.
SyncSchedulePrivate::SyncSchedulePrivate |
( |
| ) |
|
bool SyncSchedulePrivate::adjustDate |
( |
QDateTime & |
aTime, |
|
|
const DaySet & |
aDays |
|
) |
| const |
Adjusts given date to be in the set of given week days.
Day is increased until the week day is contained in the given set of week day numbers.
- Parameters
-
aTime | Date/time to adjust. |
aDays | Set of enabled week day numbers. |
- Returns
- Was day adjusted to a valid day. If the week day was already in the set of given week days, this function returns false. If the day set does not contain any valid days, this function sets aTime to null object and returns false.
QString SyncSchedulePrivate::createDays |
( |
const DaySet & |
aDays | ) |
const |
Creates a string from a set of week day numbers.
- Parameters
-
aDays | Set of week day numbers. |
- Returns
- String of week day numbers.
bool SyncSchedulePrivate::isRush |
( |
const QDateTime & |
aTime | ) |
const |
Checks if the given date/time is inside rush hours.
- Parameters
-
- Returns
- True if in rush hours.
DaySet SyncSchedulePrivate::parseDays |
( |
const QString & |
aDays | ) |
const |
Parses week day numbers from a string.
- Parameters
-
aDays | String containing the week day numbers. |
- Returns
- Set of week day numbers.
The documentation for this class was generated from the following files: