24#ifndef SYNCSCHEDULE_P_H
25#define SYNCSCHEDULE_P_H
30#include "SyncSchedule.h"
54 static bool daysMatch(SyncSchedule::Days aDays,
int aDay);
61 SyncSchedule::Days
parseDays(
const QString &aDays)
const;
68 QString
createDays(SyncSchedule::Days aDays)
const;
81 bool adjustDate(QDateTime &aTime, SyncSchedule::Days aDays)
const;
88 bool isRush(
const QDateTime &aTime)
const;
Private implementation class for SyncSchedule.
Definition SyncSchedule_p.h:36
SyncSchedule::Days iDays
Days for the sync.
Definition SyncSchedule_p.h:91
QTime iRushEnd
indicates the schedule for rush hour end
Definition SyncSchedule_p.h:113
QString createDays(SyncSchedule::Days aDays) const
Creates a string from a set of week day numbers.
Definition SyncSchedule.cpp:585
unsigned int iInterval
Time interval.
Definition SyncSchedule_p.h:100
QTime iTime
Sync Time.
Definition SyncSchedule_p.h:94
static bool daysMatch(SyncSchedule::Days aDays, int aDay)
Tell if aDays contains aDay.
Definition SyncSchedule.cpp:614
bool iExternalRushEnabled
Indicates if External Rush Hour schedule is Enabled.
Definition SyncSchedule_p.h:122
bool iRushEnabled
Indicates if Rush Hour is Enabled.
Definition SyncSchedule_p.h:119
bool adjustDate(QDateTime &aTime, SyncSchedule::Days aDays) const
Adjusts given date to be in the set of given week days.
Definition SyncSchedule.cpp:625
SyncSchedulePrivate()
Constructor.
Definition SyncSchedule.cpp:38
SyncSchedule::Days iRushDays
indicates the schedule for rush hour - days
Definition SyncSchedule_p.h:107
QTime iRushBegin
indicates the schedule for rush hour start
Definition SyncSchedule_p.h:110
unsigned int iRushInterval
Rush Hour Time interval.
Definition SyncSchedule_p.h:116
SyncSchedule::Days parseDays(const QString &aDays) const
Parses week day numbers from a string.
Definition SyncSchedule.cpp:562
QDateTime iScheduleConfiguredTime
sync schedule configure time for intial update
Definition SyncSchedule_p.h:97
bool isRush(const QDateTime &aTime) const
Checks if the given date/time is inside rush hours.
Definition SyncSchedule.cpp:650