class CMsvScheduleSend : public CBase |
Provides a Server MTM's interface to the Task Scheduler for messaging scheduling.
Server MTM's must provide a derived class that implements GetMessageL() to provide a factory for MTM-specific scheduling CMsvScheduledEntry-based objects.
Protected Member Functions | |
---|---|
CMsvScheduleSend(CMsvServerEntry &) | |
IMPORT_C void | ConstructL() |
CMsvScheduledEntry * | GetMessageL(const TMsvId) |
Private Member Enumerations | |
---|---|
enum | anonymous { EDefaultTaskPriority = 1, EDefaultTaskRepeat = 0 } |
Protected Attributes | |
---|---|
CMsvSysAgentActions * | iAgentActions |
CMsvSendErrorActions * | iErrorActions |
CMsvOffPeakTimes * | iOffPeakTimes |
TMsvSchedulePackage | iPackage |
TBool | iRegistered |
CMsvScheduledEntries * | iSchEntries |
CArrayFixFlat< TScheduleEntryInfo2 > * | iSchEntryInfo |
CArrayFixFlat< TTaskInfo > * | iSchTaskInfo |
RScheduler | iScheduler |
CMsvServerEntry & | iServerEntry |
CMsvScheduleSettings * | iSettings |
IMPORT_C | CMsvScheduleSend | ( | CMsvServerEntry & | aServerEntry | ) | [protected] |
CMsvServerEntry & aServerEntry |
CMsvSysAgentActions & | AgentActions | ( | ) | const [inline] |
Gets System Agent conditions that must be satisfied before a sending attempt.
System Agent conditions
IMPORT_C void | CheckScheduleL | ( | const CMsvEntrySelection & | aSelection | ) |
const CMsvEntrySelection & aSelection |
IMPORT_C void | ConnectAndRegisterL | ( | RScheduler & | aScheduler, |
const CMsvScheduleSettings & | aSettings | |||
) | [static] |
RScheduler & aScheduler | |
const CMsvScheduleSettings & aSettings |
IMPORT_C void | CreateScheduleL | ( | RScheduler & | aScheduler, |
const CMsvScheduleSettings & | aSettings, | |||
const TTime & | aStartTime, | |||
const TTimeIntervalMinutes & | aValidityPeriod, | |||
TSchedulerItemRef & | aRef | |||
) | [static] |
RScheduler & aScheduler | |
const CMsvScheduleSettings & aSettings | |
const TTime & aStartTime | |
const TTimeIntervalMinutes & aValidityPeriod | |
TSchedulerItemRef & aRef |
IMPORT_C void | CreateScheduleL | ( | RScheduler & | aScheduler, |
const CArrayFixFlat< TTaskSchedulerCondition > & | aConditions, | |||
const TTime & | aTimeout, | |||
TSchedulerItemRef & | aRef | |||
) | [static] |
RScheduler & aScheduler | |
const CArrayFixFlat< TTaskSchedulerCondition > & aConditions | |
const TTime & aTimeout | |
TSchedulerItemRef & aRef |
void | CreateScheduleL | ( | const TTime & | aStartTime, |
const TTimeIntervalMinutes & | aValidityPeriod, | |||
const CArrayFixFlat< TTaskSchedulerCondition > & | aSchConditions, | |||
TBool | aPendingConditions, | |||
TSchedulerItemRef & | aRef | |||
) | [private] |
const TTime & aStartTime | |
const TTimeIntervalMinutes & aValidityPeriod | |
const CArrayFixFlat< TTaskSchedulerCondition > & aSchConditions | |
TBool aPendingConditions | |
TSchedulerItemRef & aRef |
void | DeleteScheduleForEntryL | ( | CMsvScheduledEntry & | aMessage | ) | [private] |
CMsvScheduledEntry & aMessage |
IMPORT_C void | DeleteScheduleL | ( | const CMsvEntrySelection & | aSelection | ) |
const CMsvEntrySelection & aSelection |
void | DoReScheduleL | ( | CMsvScheduledEntries & | aSchEntries | ) | [private] |
CMsvScheduledEntries & aSchEntries |
void | DoScheduleL | ( | CMsvScheduledEntries & | aSchEntries, |
const TInt | aFinalState, | |||
const TTime & | aTime, | |||
TBool | aPendingConditions | |||
) | [private] |
CMsvScheduledEntries & aSchEntries | |
const TInt aFinalState | |
const TTime & aTime | |
TBool aPendingConditions |
void | FLog | ( | TRefByValue< const TDesC > | aFormat, |
... | ||||
) | [private] |
TRefByValue< const TDesC > aFormat | |
... |
void | FLog | ( | TRefByValue< const TDesC8 > | aFormat, |
... | ||||
) | [private] |
TRefByValue< const TDesC8 > aFormat | |
... |
IMPORT_C void | FindScheduleL | ( | RScheduler & | aScheduler, |
const TTime & | aStartTime, | |||
TSchedulerItemRef & | aRef | |||
) | [static] |
RScheduler & aScheduler | |
const TTime & aStartTime | |
TSchedulerItemRef & aRef |
IMPORT_C void | FindScheduleL | ( | RScheduler & | aScheduler, |
const CArrayFixFlat< TTaskSchedulerCondition > & | aConditions, | |||
const TTime & | aTimeout, | |||
TSchedulerItemRef & | aRef | |||
) | [static] |
RScheduler & aScheduler | |
const CArrayFixFlat< TTaskSchedulerCondition > & aConditions | |
const TTime & aTimeout | |
TSchedulerItemRef & aRef |
void | FindScheduleL | ( | const TTime & | aTime, |
const CArrayFixFlat< TTaskSchedulerCondition > & | aSchConditions, | |||
TBool | aPendingConditions, | |||
TSchedulerItemRef & | aRef | |||
) | [private] |
const TTime & aTime | |
const CArrayFixFlat< TTaskSchedulerCondition > & aSchConditions | |
TBool aPendingConditions | |
TSchedulerItemRef & aRef |
CMsvScheduledEntry * | GetMessageL | ( | const TMsvId | aId | ) | const [protected, pure virtual] |
Gets the schedule data and recipients of a message.
Recipient information is MTM-specific, so the server MTM must provide a derived class that implements CMsvScheduledEntry, and return objects of that type from this function.
The message's schedule data.
const TMsvId aId | The message ID. |
void | GetMessagesL | ( | const CMsvEntrySelection & | aSelection | ) | [private] |
const CMsvEntrySelection & aSelection |
TBool | GetNextRetry | ( | CMsvScheduledEntry & | aMessage, |
const TMsvSendErrorAction & | aErrorAction, | |||
TTimeIntervalSeconds & | aInterval | |||
) | const [private] |
CMsvScheduledEntry & aMessage | |
const TMsvSendErrorAction & aErrorAction | |
TTimeIntervalSeconds & aInterval |
void | GetOffPeakL | ( | TTime | aFromTime, |
TTime & | aStartTime, | |||
TTimeIntervalMinutes & | aValidityPeriod | |||
) | const [private] |
TTime aFromTime | |
TTime & aStartTime | |
TTimeIntervalMinutes & aValidityPeriod |
IMPORT_C void | LoadScheduleSettingsL | ( | CRepository & | aRepository | ) |
CRepository & aRepository |
CMsvOffPeakTimes & | OffPeakTimes | ( | ) | const [inline] |
Gets off-peak times settings.
Off-peak times settings
void | PopulateScheduleConditionsL | ( | CArrayFixFlat< TTaskSchedulerCondition > & | aSchConditions | ) | [private] |
CArrayFixFlat< TTaskSchedulerCondition > & aSchConditions |
IMPORT_C void | ReScheduleL | ( | const CMsvEntrySelection & | aSelection, |
const TMsvSchedulePackage & | aPackage, | |||
const TMsvSendErrorAction * | aErrorAction = NULL | |||
) |
const CMsvEntrySelection & aSelection | |
const TMsvSchedulePackage & aPackage | |
const TMsvSendErrorAction * aErrorAction = NULL |
void | ResetScheduleInfoForEntryL | ( | CMsvScheduledEntry & | aMessage, |
const TBool | aChangeEntry | |||
) | [private] |
CMsvScheduledEntry & aMessage | |
const TBool aChangeEntry |
IMPORT_C void | ScheduleEntryL | ( | RScheduler & | aScheduler, |
const TSchedulerItemRef & | aRef, | |||
const TMsvSchedulePackage & | aPackage, | |||
TTaskInfo & | aInfo | |||
) | [static] |
RScheduler & aScheduler | |
const TSchedulerItemRef & aRef | |
const TMsvSchedulePackage & aPackage | |
TTaskInfo & aInfo |
void | ScheduleEntryL | ( | CMsvScheduledEntry & | aMessage, |
const TInt | aFinalState, | |||
const TTime & | aStartTime, | |||
const TSchedulerItemRef & | aRef, | |||
TBool | aPendingConditions | |||
) | [private] |
CMsvScheduledEntry & aMessage | |
const TInt aFinalState | |
const TTime & aStartTime | |
const TSchedulerItemRef & aRef | |
TBool aPendingConditions |
IMPORT_C void | ScheduleL | ( | const CMsvEntrySelection & | aSelection, |
const TMsvSchedulePackage & | aPackage | |||
) |
const CMsvEntrySelection & aSelection | |
const TMsvSchedulePackage & aPackage |
CMsvScheduleSettings & | ScheduleSettings | ( | ) | const [inline] |
Gets scheduler settings.
Scheduler settings
CMsvSendErrorActions & | SendErrorActions | ( | ) | const [inline] |
Gets action-on-sending-error settings.
Action-on-sending-error settings
IMPORT_C void | SendingCompleteL | ( | TMsvEntry & | aEntry, |
const TBool | aChangeEntry = EFalse | |||
) |
IMPORT_C void | SendingCompleteL | ( | const CMsvEntrySelection & | aSelection | ) |
const CMsvEntrySelection & aSelection |
void | SendingCompleteL | ( | CMsvScheduledEntry & | aScheduledEntry, |
const TBool | aChangeEntry | |||
) | [private] |
CMsvScheduledEntry & aScheduledEntry | |
const TBool aChangeEntry |
TBool | SetMessageStartTime | ( | CMsvScheduledEntry & | aMessage, |
const TTime & | aFromTime, | |||
const TMsvSendErrorAction * | aErrorAction = NULL | |||
) | [private] |
CMsvScheduledEntry & aMessage | |
const TTime & aFromTime | |
const TMsvSendErrorAction * aErrorAction = NULL |
void | SortByDateAndPendingConditionsL | ( | CMsvScheduledEntries & | aScheduledEntries | ) | [private] |
CMsvScheduledEntries & aScheduledEntries |
TBool | TaskAndMessageMatchL | ( | const CMsvScheduledEntry & | aMessage | ) | [private] |
const CMsvScheduledEntry & aMessage |
IMPORT_C void | UpdateEntryAfterSchedule | ( | const TSchedulerItemRef & | aRef, |
const TTaskInfo & | aInfo, | |||
const TTime & | aTime, | |||
TInt | aFinalState, | |||
TMsvEntry & | aEntry, | |||
TMsvEntryScheduleData & | aData | |||
) | [static] |
const TSchedulerItemRef & aRef | |
const TTaskInfo & aInfo | |
const TTime & aTime | |
TInt aFinalState | |
TMsvEntry & aEntry | |
TMsvEntryScheduleData & aData |
CMsvSysAgentActions * | iAgentActions | [protected] |
The System Agent conditions that must be satisfied before a sending attempt.
CMsvSendErrorActions * | iErrorActions | [protected] |
The Server MTM specific actions to take when particular errors occur during message sending.
CMsvOffPeakTimes * | iOffPeakTimes | [protected] |
The Server MTM specific off peak time periods.
TBool | iRegistered | [protected] |
Indicates if this has been registered with the Task Scheduler.
Initially set to EFalse.
CMsvScheduledEntries * | iSchEntries | [protected] |
Array of message schedule data.
CArrayFixFlat< TScheduleEntryInfo2 > * | iSchEntryInfo | [protected] |
Array of schedule entry data.
CArrayFixFlat< TTaskInfo > * | iSchTaskInfo | [protected] |
Array of schedule task data.
CMsvServerEntry & | iServerEntry | [protected] |
The CMsvServerEntry of the server MTM.
CMsvScheduleSettings * | iSettings | [protected] |
The Server MTM specific scheduled message sending settings.