CScsSubsession Class Reference

class CScsSubsession : public CObject

If the server implementation supports subsessions, they must derive from this class.

WARNING: Because this class derives from CObject you must not simply delete an instance of a class derived from this class (ie. your subsession), instead you MUST Close() it.

In practise this probably means you need a ConstructL like this:- CFred *self = new(ELeave) CFred(....); CleanupClosePushL(*self); // Note use of CleanupClosePushL and of *self self->ConstructL(...); CleanupStack::Pop(self); // Note use of *self instead of self

Inherits from

Constructor & Destructor Documentation

CScsSubsession(CScsSession &)

IMPORT_CCScsSubsession(CScsSession &aSession)[protected]

This protected constructor prevents the object from being directly instantiated.

Parameters

CScsSession & aSession

Member Functions Documentation

DoServiceL(TInt, const RMessage2 &)

TBool DoServiceL(TIntaFunction,
const RMessage2 &aMessage
)[pure virtual]

SCS routes subsession messages to this function; the session object does not have to decode them itself.

Parameters

TInt aFunctionImplementation function, i.e. the function identifier with the SCS field removed.
const RMessage2 & aMessageStandard server message object.

Member Data Documentation

CScsSession & iSession

CScsSession &iSession