TMsvSchedulePackage Class Reference

#include <mw/msvschedulepackage.h>

Link against: schsend.lib

class TMsvSchedulePackage
Public Attributes
TInt iCommandId
TMsvId iId
TBuf8< KMaxParameterLength >iParameter
TTimeIntervalMicroSeconds32 iPollProgress
Public Member Functions
TMsvSchedulePackage()
IMPORT_C voidPackLC(TTaskInfo &, HBufC *&)
IMPORT_C voidUnpackL(const TTaskInfo &, const TDesC &)

Detailed Description

Packaged message scheduling information.

Member Attribute Documentation

iCommandId

TInt iCommandId

Command ID to be passed to CMsvSession::TransferCommandL() when it is time to send the messages.

iId

TMsvId iId

Message ID.

iParameter

Server MTM specific binary data to be passed to CMsvSession::TransferCommandL() when it is time to send the messages.

iPollProgress

Intervals at which the scheduler should check the sending operation's progress.

Constructor & Destructor Documentation

TMsvSchedulePackage ( )

IMPORT_CTMsvSchedulePackage()

Default constructor.

Member Function Documentation

PackLC ( TTaskInfo &, HBufC *& )

IMPORT_C voidPackLC(TTaskInfo &aTask,
HBufC *&aDes
)const

Packs the object into a 16-bit descriptor.

The function then attempts to copy the descriptor into aTask.iName, if aTask.iName is large enough; otherwise, it copies it into aDes (a new HBufC).

aDes is placed on the cleanup stack.

ParameterDescription
aTaskTask information for this message.
aDesOn return, a new descriptor, possibly packaging the object. aDes.Length() == 0 if the object was successfully packed in aTask.iName instead.

UnpackL ( const TTaskInfo &, const TDesC & )

IMPORT_C voidUnpackL(const TTaskInfo &aTask,
const TDesC &aDes
)

Restores this object from a 16-bit descriptor that was packed using PackLC().

ParameterDescription
aTaskThe object is restored from aTask.iName if aTask.iName.Length() doesn't equal zero.
aDesThe object is restored from this descriptor if aTask.iName.Length() equals zero.