Location:
ScheduleBaseServerMtm.h
Link against: schsend.lib
class CScheduleBaseServerMtm : public CBaseServerMtm;
Base class for Server MTMs that support scheduling.
It contains pure virtual functions which must be implemented by the Server MTM. These functions are not required for interoperability with any other classes, however they are essential functionality that must be implemented by a Server MTM that support scheduling.
CScheduleBaseServerMtm uses a class derived from CMsvScheduleSend
to interface with the task scheduler.
CBase
- Base class for all classes to be instantiated on the heap
CActive
- The core class of the active object abstraction
CBaseServerMtm
- Base class for Server-side MTM components
CScheduleBaseServerMtm
- Base class for Server MTMs that support scheduling
Defined in CScheduleBaseServerMtm
:
CScheduleBaseServerMtm()
, CheckScheduleL()
, ConstructL()
, DeleteScheduleL()
, LoadResourceFileL()
, LoadResourceFileL()
, LoadScheduleSettingsL()
, PopulateSchedulePackage()
, Queue()
, ScheduleL()
, SendScheduledL()
, iFs
, iReport
, iResourceFile
, iScheduleSend
, ~CScheduleBaseServerMtm()
Inherited from CActive
:
Cancel()
,
Deque()
,
DoCancel()
,
EPriorityHigh
,
EPriorityIdle
,
EPriorityLow
,
EPriorityStandard
,
EPriorityUserInput
,
IsActive()
,
IsAdded()
,
Priority()
,
SetActive()
,
SetPriority()
,
TPriority
,
iStatus
Inherited from CBase
:
Delete()
,
operator new()
Inherited from CBaseServerMtm
:
ChangeL()
,
CommandExpected()
,
CopyFromLocalL()
,
CopyToLocalL()
,
CopyWithinServiceL()
,
CreateL()
,
DeleteAllL()
,
DoComplete()
,
DoRunL()
,
Extension_()
,
GetInterface()
,
MoveFromLocalL()
,
MoveToLocalL()
,
MoveWithinServiceL()
,
Progress()
,
RunError()
,
RunL()
,
StartCommandL()
,
SystemProgress()
,
iServerEntry
protected: IMPORT_C CScheduleBaseServerMtm(CRegisteredMtmDll &aRegisteredMtmDll, CMsvServerEntry *aServerEntry);
Constructor.
|
protected: virtual IMPORT_C void ConstructL();
Second phase constructor.
This calls LoadResourceFileL()
.
The derived class second phase constructor should call this function. It should also construct the iScheduleSend member.
|
protected: IMPORT_C ~CScheduleBaseServerMtm();
Destructor.
The derived class destructor should delete the iScheduleSend member.
protected: virtual IMPORT_C void SendScheduledL(CMsvEntrySelection &aSelection, const TBool aMove, const TDesC8 &aParameter,
TRequestStatus &aStatus);
Sends messages now that were previously scheduled.
The messages are sent immediately, overriding the scheduling.
|
protected: virtual IMPORT_C void ScheduleL(CMsvEntrySelection &aSelection, const TBool aMove, const TDesC8 &aParameter, TRequestStatus
&aStatus);
Schedules a message.
The functions should schedule a message using CMsvScheduleSend::ScheduleL()
. Make sure RestoreScheduleSettingsL() is called before CMsvScheduleSend::ScheduleL()
.
|
|
protected: IMPORT_C void LoadResourceFileL(const TDesC &aResFileName);
Loads the specified resource file.
A utility function that can be used from the pure virtual LoadResourceFileL()
.
It leaves if the resource file reader cannot be opened.
|
protected: virtual IMPORT_C void CheckScheduleL(const CMsvEntrySelection &aSelection, const TDesC8 &aParameter, TRequestStatus
&aStatus);
Verifies that the schedule information stored in specified messages is the same as that on the task scheduler.
|
|
protected: virtual IMPORT_C void DeleteScheduleL(const CMsvEntrySelection &aSelection, const TDesC8 &aParameter, TRequestStatus
&aStatus);
Deletes the schedules for the specified messages from the task scheduler.
The messages themselves are not deleted.
|
|
protected: virtual void PopulateSchedulePackage(const TDesC8 &aParameter, const TBool aMove, TMsvSchedulePackage &aPackage)
const=0;
Populates a TMsvSchedulePackage
object with scheduling information.
|
protected: virtual void LoadResourceFileL()=0;
Loads the resource file (if any) for the MTM.
protected: IMPORT_C void Queue(TRequestStatus &aStatus);
Specifies an asynchronous status word to be completed when an asynchronous MTM operation completes.
This provides a form of observer functionality. It sets the the iReport member.
|
|
protected: IMPORT_C void LoadScheduleSettingsL(CRepository &aRepository, TBool aRestoreErrorsFromResource=EFalse, TInt aErrorsResourceId=0);
Loads all the schedule settings either from CenRep or a resource file.
|
|
protected: TRequestStatus * iReport;
Asynchronous status word.