1 #ifndef DATETIMESETTINGS_H_
2 #define DATETIMESETTINGS_H_
7 #define DAYS_IN_A_WEEK 7
14 * An enumeration for the weekdays to be used.
29 * \param aStandardTimeChange The date and time when the standard time is to be used. The year part and the milliseconds are omitted.
30 * \param aDaylightTimeChange The date and time when the daylight time is to be used. The year part and the milliseconds are omitted.
31 * \param aDayOfWeek The day of the week when the time is to be used.
33 DateTimeSettings(const QDateTime &aStandardTimeChange, const QDateTime &aDaylightTimeChange, weekDay aDayOfWeek);
37 * Overloaded. Constructor to initialize a DateTimeSettings instance.
38 * \param aOther DateTimeSettings class to be copied.
40 DateTimeSettings(const DateTimeSettings &aOther);
42 virtual ~DateTimeSettings();
45 * \return The Date/time when the standard time is to be switched into use
47 QDateTime STDDateTime();
50 * \return The Date/time when the daylight saving time is to be switched into use
52 QDateTime DSTDateTime();
55 * \return The time as a string (hh:mm:ss) of the moment the standard time is to be switched into use
60 * \return The month as a string (MM) of the moment the standard time is to be switched into use
65 * \return The day as a string (dd) of the moment the standard time is to be switched into use
70 * \return The time as a string (hh:mm:ss) of the moment the daylight saving time is to be switched into use
75 * \return The month as a string (MM) of the moment the daylight saving time is to be switched into use
80 * \return The day as a string (dd) of the moment the daylight saving time is to be switched into use
85 * Sets the time/date of the moment the daylight saving time is to be switched into use
87 void setDSTDateTime(const QDateTime &aDaylightSaveTimeChange);
90 * Sets the time/date of the moment the standard time is to be switched into use
92 void setSTDDateTime(const QDateTime &aStandardTimeChange);
95 * Sets the appropriate day of the week the time switch is carried out.
96 * \see DateTimeSettings::weekDay
98 void setSwitchDay(DateTimeSettings::weekDay aDay);
101 * \return The appropriate day of the week the time switch is carried out.
106 QDateTime iStandardTimeChangeMoment;
107 QDateTime iDaylightSaveTimeChangeMoment;
111 * Contains the weekday strings that are passed to the exchange server when
112 * defining the timezone variables
114 static const QString weekDays[DAYS_IN_A_WEEK];
118 #endif /*DATETIMESETTINGS_H_*/