CTagCommandConverter Class Reference

class CTagCommandConverter : public CBase

Converts VCommands into tags and vise veraa

Inherits from

Member Functions Documentation

CommandToTagLC(const CVCommand &, const MNssContext &, MNssTagMgr &)

MNssTag * CommandToTagLC ( const CVCommand & aCommand,
const MNssContext & aContext,
MNssTagMgr & aTagMgr
) [static]

Constructs a new VAS tag from a command and a context. Does not save to VAS, just creates. Created tag stores the streamed VCommand in its RRDText array. The tag's rrd int array of the created tag is empty

Constructs a new VAS tag from a command and a context. Does not save to VAS, just creates. Created tag stores the streamed VCommand in its RRDText array. The tag's rrd int array is empty

Parameters

const CVCommand & aCommand
const MNssContext & aContext
MNssTagMgr & aTagMgr

CommandToTagsLC2(const CVCommand &, const MNssContext &, MNssTagMgr &)

CArrayPtr < MNssTag > * CommandToTagsLC2 ( const CVCommand & aCommand,
const MNssContext & aContext,
MNssTagMgr & aTagMgr
) [static]

Constructs new VAS tags from a command and a context. Does not save to VAS, just creates. At the end of this function two items are pushed to the cleanup stack. The first PopAndDestroy will ResetAndDestroy the generated tags, the second one will delete the CArrayPtr itself

Parameters

const CVCommand & aCommand
const MNssContext & aContext
MNssTagMgr & aTagMgr

TagToCommandLC(const MNssTag &)

CStoredVCommand * TagToCommandLC ( const MNssTag & aTag ) [static]
Converts given tag to the CStoredVCommand
leave
KErrTotalLossOfPrecision if the aTag's intArray is empty
Converts given tag to the VCommand
leave
KErrTotalLossOfPrecision if the aTag's intArray is empty

Parameters

const MNssTag & aTag

TagsToCommandLC(const CArrayPtr< MNssTag > &)

CStoredVCommand * TagsToCommandLC ( const CArrayPtr < MNssTag > & aTags ) [static]
Converts given tags to the VCommand. These tags must have been generated from a single VCommand (via CommandToTagsLC2 )
leave
KErrOverflow if given array has more, than two elements
leave
KErrUnderflow if given array is empty
leave
KErrArgument if given tags correspond to the different VCommands
Converts given tags to the VCommand. This tags must have been generated from a single VCommand (via CommandToTagsLC2 )
leave
KErrOverflow if given array has more, than two elements
leave
KErrUnderflow if given array is empty
leave
KErrArgument if given tags correspond to the different VCommands

Parameters

const CArrayPtr < MNssTag > & aTags