»
Symbian OS v9.3 »
Symbian OS reference »
C++ component reference »
Messaging MSG_SCHEDULEDSEND »
CMsvScheduleSettings
Location:
MsvScheduleSettings.h
Link against: schsend.lib
This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.
Class CMsvScheduleSettings
class CMsvScheduleSettings : public CBase;
Description
Stores the MTM-specific (general) settings for scheduling messages on the Task Scheduler.
These settings include the latency (minimum amount of time between now and when the message is scheduled for), the intervals
(short, long or variable) to wait for before attempting to re-send the message and the timout value for messages pending conditions
to be met.
The other MTM scheduling releated settings are stored in CMsvOffPeakTimes
and CMsvSendErrorActions
.
Derivation
CBase
- Base class for all classes to be instantiated on the heap
CMsvScheduleSettings
- Stores the MTM-specific (general) settings for scheduling messages on the Task Scheduler
Members
Defined in CMsvScheduleSettings
:
EDefaultIntervalType
, EDefaultLatency
, EDefaultLongInterval
, EDefaultPendingConditionsTimeout
, EDefaultPriority
, EDefaultShortInterval
, EDefaultValidityPeriod
, IntervalType()
, Latency()
, LongInterval()
, NewL()
, NewLC()
, PendingConditionsTimeout()
, Priority()
, Reset()
, SetIntervalType()
, SetLatency()
, SetLongInterval()
, SetPendingConditionsTimeout()
, SetPriority()
, SetShortInterval()
, SetValidityPeriod()
, SetVariableIntervalsL()
, ShortInterval()
, ValidityPeriod()
, VariableIntervals()
, anonymous
, ~CMsvScheduleSettings()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Construction and destruction
static IMPORT_C CMsvScheduleSettings *NewL();
Description
Allocates and creates a new CMsvScheduleSettings object.
Return value
static IMPORT_C CMsvScheduleSettings *NewLC();
Description
Allocates and creates a new CMsvScheduleSettings object.
Return value
IMPORT_C ~CMsvScheduleSettings();
Description
Destructor.
IMPORT_C void Reset();
Description
Resets the object.
This sets all data members to their default values.
IMPORT_C void SetPriority(const TInt aPriority);
Description
Sets the priority of the messages on the Task Scheduler.
Parameters
const TInt aPriority |
Priority value.
|
|
IMPORT_C TInt Priority() const;
Description
Gets the priority of the messages on the Task Scheduler.
Return value
IMPORT_C void SetValidityPeriod(const TTimeIntervalMinutes &aValidityPeriod);
Description
Sets the time period for which the messages are valid on the Task Scheduler.
This is ignored if a message has to be sent off-peak.
Parameters
Panic codes
ScheduleSend-DLL |
10 The validity period is invalid (negative or null).
|
|
IMPORT_C const TTimeIntervalMinutes &ValidityPeriod() const;
Description
Gets the time period for which the messages are valid on the Task Scheduler.
Return value
IMPORT_C void SetIntervalType(const TIntervalType aIntervalType);
Description
Sets the schedule interval type.
Parameters
IMPORT_C TIntervalType IntervalType() const;
Description
Gets the schedule interval type.
Return value
IMPORT_C void SetLongInterval(const TTimeIntervalSeconds &aInterval);
Description
Sets the long retry interval value.
This is used by CMsvScheduleSend
to determine when to next send the message, if the TMsvSendErrorAction::iAction
equals ESendActionRetryLater and TMsvSendErrorAction::iRetrySpacing
equals ESendRetriesFixed.
Parameters
Panic codes
ScheduleSend-DLL |
18 The long interval is out of range (negative or null).
|
|
IMPORT_C const TTimeIntervalSeconds &LongInterval() const;
Description
Gets the long retry interval value.
Return value
Panic codes
ScheduleSend-DLL |
18 The long interval is out of range (negative or null).
|
|
IMPORT_C void SetShortInterval(const TTimeIntervalSeconds &aInterval);
Description
Sets the short retry interval value.
This is used by CMsvScheduleSend
to determine when to next send the message, if the TMsvSendErrorAction::iAction
equals ESendActionRetryImmediately.
Parameters
Panic codes
ScheduleSend-DLL |
19 The short interval is out of range (negative or null).
|
|
IMPORT_C const TTimeIntervalSeconds &ShortInterval() const;
Description
Gets the short retry interval value.
Return value
Panic codes
ScheduleSend-DLL |
19 The short interval is out of range (negative or null).
|
|
IMPORT_C const CArrayFixFlat< TTimeIntervalSeconds > &VariableIntervals() const;
Description
Gets variable retry intervals.
This is used by CMsvScheduleSend
to determine when to next send the message. It is only used if TMsvSendErrorAction::iAction
equals ESendActionRetryLater and TMsvSendErrorAction::iRetrySpacing
equals ESendRetrySpacingVariable.
Return value
IMPORT_C void SetVariableIntervalsL(const CArrayFixFlat< TTimeIntervalSeconds > &aIntervals);
Description
Sets variable retry intervals.
Parameters
Leave codes
One |
of the system wide error codes One of the intervals could not be appended to the array holding the variable intervals.
|
|
Panic codes
ScheduleSend-DLL |
20 At least one of the intervals is out of range (negative or null).
|
|
IMPORT_C const TTimeIntervalMicroSeconds32 &Latency() const;
Description
Gets the minimum message sending latency.
This is the minimum amount of time from the current time that must elapse before the message is sent. This must be greater
than or equal to zero.
If the client specifies that the message should be scheduled in the past, then CMsvScheduleSend
will actually schedule the message in Latency()
seconds from the current time.
Return value
Panic codes
ScheduleSend-DLL |
25 The latency is invalid (negative).
|
|
IMPORT_C void SetLatency(const TTimeIntervalMicroSeconds32 &aLatency);
Description
Sets the minimum message sending latency.
Parameters
Panic codes
ScheduleSend-DLL |
25 The latency is invalid (negative).
|
|
SetPendingConditionsTimeout()
IMPORT_C void SetPendingConditionsTimeout(const TTimeIntervalMinutes &aTimeout);
Description
Sets the timeout interval when re-scheduling messages for pending conditions to be met.
A value of zero indicates that there is no timeout when pending conditions to be met. The default value is zero.
Parameters
Panic codes
ScheduleSend-DLL |
25 The timeout interval is invalid (negative).
|
|
PendingConditionsTimeout()
IMPORT_C const TTimeIntervalMinutes &PendingConditionsTimeout() const;
Description
Gets the timeout interval when re-scheduling messages for pending conditions to be met.
A value of zero indicates that there is no timeout when pending conditions to be met. The default value is zero.
Return value
n/a
Description
Default scheduler settings values.