TMsvOffPeakTime Class Reference

#include <mw/msvoffpeaktime.h>

Link against: schsend.lib

class TMsvOffPeakTime
Public Member Functions
TMsvOffPeakTime()
TMsvOffPeakTime(const TDay, const TInt, const TInt, const TTimeIntervalMinutes)
IMPORT_C TDayDay()
IMPORT_C TIntHour()
IMPORT_C TIntMinute()
IMPORT_C const TTimeNextTimeInclusive(const TTime &)
IMPORT_C voidReset()
IMPORT_C voidSetDay(const TDay)
IMPORT_C voidSetHour(const TInt)
IMPORT_C voidSetMinute(const TInt)
IMPORT_C voidSetValidityPeriod(const TTimeIntervalMinutes)
IMPORT_C const TTimeIntervalMinutesValidityPeriod()

Detailed Description

Defines an off-peak period for message sending.

An off-peak period is specified as a start time and a duration.

Constructor & Destructor Documentation

TMsvOffPeakTime ( )

IMPORT_CTMsvOffPeakTime()

Default constructor.

TMsvOffPeakTime ( const TDay, const TInt, const TInt, const TTimeIntervalMinutes )

IMPORT_CTMsvOffPeakTime(const TDayaDay,
const TIntaHour,
const TIntaMinute,
const TTimeIntervalMinutesaValidityPeriod
)

Constructor specifying off-peak time parameters. Note that the offpeak start time must be specified in UTC (Universal Time Coordinated)time.

Parameters
aDayDay start time.
aHourHour start time.
aMinuteMinute start time.
aValidityPeriodDuration (in minutes).

Member Function Documentation

Day ( )

IMPORT_C TDayDay()const

Gets the start time day parameter.

Return Value
Start time day parameter.

Hour ( )

IMPORT_C TIntHour()const

Gets the start time hour parameter.

Return Value
Start time hour parameter

Minute ( )

IMPORT_C TIntMinute()const

Gets the start time minute parameter.

Return Value
Start time minute parameter.

NextTimeInclusive ( const TTime & )

IMPORT_C const TTimeNextTimeInclusive(const TTime &aFromTime)const

Gets the next time, after a specified time, when this off-peak time becomes active.

If aFromTime is within the validity period of this off-peak time, then the next time will be less than or equal to aFromTime.

Parameters
aFromTimeSpecified time.
Return Value
Next time

Reset ( )

IMPORT_C voidReset()

Resets the object to default settings.

SetDay ( const TDay )

IMPORT_C voidSetDay(const TDayaDay)

Sets the start time day parameter. Note that the offpeak start time must be specified in UTC (Universal Time Coordinated)time.

Parameters
aDayStart time day parameter.

SetHour ( const TInt )

IMPORT_C voidSetHour(const TIntaHour)

Sets the start time hour parameter. Note that the offpeak start time must be specified in UTC (Universal Time Coordinated)time.

Parameters
aHourStart time hour parameter.
Panic Codes
ScheduleSend-DLL12 The hour parameter is invalid (negative or more than 23).

SetMinute ( const TInt )

IMPORT_C voidSetMinute(const TIntaMinute)

Sets the start time minute parameter. Note that the offpeak start time must be specified in UTC (Universal Time Coordinated)time.

Parameters
aMinuteStart time minute parameter.
Panic Codes
ScheduleSend-DLL13 The minute parameter is invalid (negative or more than 59).

SetValidityPeriod ( const TTimeIntervalMinutes )

IMPORT_C voidSetValidityPeriod(const TTimeIntervalMinutesaValidityPeriod)

Sets the duration parameter.

Parameters
aValidityPeriodDuration parameter.
Panic Codes
ScheduleSend-DLL10 The duration period is invalid (negative or more than 24 hours).

ValidityPeriod ( )

IMPORT_C const TTimeIntervalMinutesValidityPeriod()const

Gets the duration parameter.

Return Value
Duration parameter.