CAlfAppSrvSessionBase Class Reference

class CAlfAppSrvSessionBase : public CAknAppServiceBase

Session/service class in the server side.

Since
S60 v3.2

Inherits from

Public Member Functions
CAlfAppSrvSessionBase(const CAlfAppServer *)
CAlfAppSrvSessionBase()
~CAlfAppSrvSessionBase()
voidActivateContainerLayoutL(TBool)
IMPORT_C CAlfAppUi *AlfAppUi()
IMPORT_C voidAlfInterfaceProviderExtension(const TUid &, TAny **)
IMPORT_C CAlfAppServer *AlfServer()
voidCancelPointerEvents()
voidCancelSystemEvents()
IMPORT_C TRectClientDrawingArea()
TInt ClientWindowGroup()
voidCloseSubSession(const RMessage2 &)
IMPORT_C voidCompleteCmd(TInt, TInt)
CAlfClientMessage *CreateNewMessageHolderL(const RMessage2 &)
voidDoHandleCommandL(const RMessage2 &)
IMPORT_C voidExtensionInterfaceL(TUid, TAny *&)
IMPORT_C voidFactoryDestroyed(TInt)
voidFlushPointerHandling()
IMPORT_C voidFocusGainedL(TBool)
IMPORT_C TBoolFocusLostL(TBool)
IMPORT_C TIntGetHandleFromInterface(const THuiInterfaceSupport &, TAny *)
IMPORT_C TAny *GetInterfaceL(const THuiInterfaceSupport &, TInt)
voidGetSubsessionsByTypeL(RPointerArray< CAlfSrvSubSessionBase > &, const THuiInterfaceSupport &)
voidGetSystemEvents(const RMessage2 *)
IMPORT_C TIntHandleCurrentCommanndAsynch()
voidHandleEventL(TAny *, TAny *, const THuiEvent &)
TBool HasSession(TInt)
IMPORT_C CAlfLayoutManager *LayoutManager()
TInt ParentWindowGroupId()
IMPORT_C THuiRefreshModePreferredRefreshMode()
IMPORT_C CAlfAppServer::TAlfWGPostionPreferredWindowGroupPosition()
voidResetRootlayerTransformationsL()
voidSetBackgroundMaxFps(TBool)
IMPORT_C voidSetClientWindowGroupId(TInt)
voidSetParentWindowGroupId(TInt)
IMPORT_C CHuiEnv *SharedHuiEnv()
voidStartPointerHandling()
CAlfSrvSubSessionBase &SubSession(TInt)
voidTriggerPointerEvent(const RMessage2 *)
voidTriggerSystemEvent(TInt)
Protected Member Functions
IMPORT_C voidBaseConstructL()
IMPORT_C TIntCountResources()
CAlfSrvSubSessionBase *CreateSubSessionLC(const RMessage2 &)
IMPORT_C voidDisconnect(const RMessage2 &)
IMPORT_C TIntExtension_(TUint, TAny *&, TAny *)
TBool IsSubSessionCreationFunction(const RMessage2 &)
IMPORT_C voidServiceError(const RMessage2 &, TInt)
Private Member Functions
voidCloseSubSession(TInt)
TBool DoSubSessionCmdL(const RMessage2 &)
IMPORT_C voidServiceL(const RMessage2 &)
Inherited Functions
CAknAppServiceBase::CAknAppServiceBase()
CAknAppServiceBase::CreateL()
CAknAppServiceBase::~CAknAppServiceBase()
CApaAppServiceBase::CApaAppServiceBase()
CApaAppServiceBase::SecurityCheckL(const RMessage2 &,TInt &,TSecurityInfo &)
CApaAppServiceBase::SendAppServerExitNotification(TInt)
CApaAppServiceBase::~CApaAppServiceBase()
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CSession2::CSession2()
CSession2::ResourceCountMarkEnd(const RMessage2 &)
CSession2::ResourceCountMarkStart()
CSession2::Server()const
CSession2::SetServer(const CServer2 *)
CSession2::~CSession2()
Inherited Enumerations
CSession2:TPanicNo
Private Attributes
TPrivateData *iData
CAlfAppServer *iHost

Constructor & Destructor Documentation

CAlfAppSrvSessionBase(const CAlfAppServer *)

IMPORT_CCAlfAppSrvSessionBase(const CAlfAppServer *aServer)

Default constructor, stores pointer to server instance

Parameters

const CAlfAppServer * aServerServer which the client has connected.

CAlfAppSrvSessionBase()

IMPORT_CCAlfAppSrvSessionBase()

Default constructor, fetches and stores pointer to server instance using ccoestatic

~CAlfAppSrvSessionBase()

IMPORT_C~CAlfAppSrvSessionBase()

Destructor, singals server to free resources specific for this client

Member Functions Documentation

ActivateContainerLayoutL(TBool)

voidActivateContainerLayoutL(TBoolaActivate)

Parameters

TBool aActivate

AlfAppUi()

IMPORT_C CAlfAppUi *AlfAppUi()

AlfInterfaceProviderExtension(const TUid &, TAny **)

IMPORT_C voidAlfInterfaceProviderExtension(const TUid &aExtensionUid,
TAny **aExtensionParams
)

Parameters

const TUid & aExtensionUid
TAny ** aExtensionParams

AlfServer()

IMPORT_C CAlfAppServer *AlfServer()

BaseConstructL()

IMPORT_C voidBaseConstructL()[protected]

CancelPointerEvents()

voidCancelPointerEvents()

CancelSystemEvents()

voidCancelSystemEvents()

ClientDrawingArea()

IMPORT_C TRectClientDrawingArea()const [virtual]

Gets the drawing area of the session

ClientWindowGroup()

TInt ClientWindowGroup()const

From CAlfAppSrvSessionBase Returns the client's window group id.

CloseSubSession(const RMessage2 &)

voidCloseSubSession(const RMessage2 &aMessage)

Parameters

const RMessage2 & aMessage

CloseSubSession(TInt)

voidCloseSubSession(TIntaHandle)[private]

Parameters

TInt aHandle

CompleteCmd(TInt, TInt)

IMPORT_C voidCompleteCmd(TIntaCommadIdentifier,
TIntaResult
)

Parameters

TInt aCommadIdentifier
TInt aResult

CountResources()

IMPORT_C TIntCountResources()[protected, virtual]

CreateNewMessageHolderL(const RMessage2 &)

CAlfClientMessage *CreateNewMessageHolderL(const RMessage2 &aMessage)

Parameters

const RMessage2 & aMessage

CreateSubSessionLC(const RMessage2 &)

CAlfSrvSubSessionBase *CreateSubSessionLC(const RMessage2 &aMessage)[protected]

Parameters

const RMessage2 & aMessage

Disconnect(const RMessage2 &)

IMPORT_C voidDisconnect(const RMessage2 &aMessage)[protected, virtual]

Parameters

const RMessage2 & aMessage

DoHandleCommandL(const RMessage2 &)

voidDoHandleCommandL(const RMessage2 &aMessage)[pure virtual]

From CAlfAppSrvSessionBase Called when a message is received from the client.

Parameters

const RMessage2 & aMessageMessage parameters.

DoSubSessionCmdL(const RMessage2 &)

TBool DoSubSessionCmdL(const RMessage2 &aMessage)[private]

Parameters

const RMessage2 & aMessage

ExtensionInterfaceL(TUid, TAny *&)

IMPORT_C voidExtensionInterfaceL(TUidaInterfaceId,
TAny *&aImplementation
)[virtual]

Parameters

TUid aInterfaceId
TAny *& aImplementation

Extension_(TUint, TAny *&, TAny *)

IMPORT_C TIntExtension_(TUintaExtensionId,
TAny *&a0,
TAny *a1
)[protected, virtual]

Parameters

TUint aExtensionId
TAny *& a0
TAny * a1

FactoryDestroyed(TInt)

IMPORT_C voidFactoryDestroyed(TIntaFactoryUid)[virtual]

Ecom implementation for specific factory has been removed Close all subsessions referring to that

Parameters

TInt aFactoryUid

FlushPointerHandling()

voidFlushPointerHandling()

FocusGainedL(TBool)

IMPORT_C voidFocusGainedL(TBoolaDoTransitionEffect)[virtual]

From CAlfAppSrvSessionBase Client's window group received focus.

Parameters

TBool aDoTransitionEffectDo fade in transision (RnD)

FocusLostL(TBool)

IMPORT_C TBoolFocusLostL(TBoolaDoTransitionEffect)[virtual]

From CAlfAppSrvSessionBase Client's window group lost focus.

Parameters

TBool aDoTransitionEffectDo fade out transision (RnD)

GetHandleFromInterface(const THuiInterfaceSupport &, TAny *)

IMPORT_C TIntGetHandleFromInterface(const THuiInterfaceSupport &aType,
TAny *aInterface
)

Parameters

const THuiInterfaceSupport & aType
TAny * aInterface

GetInterfaceL(const THuiInterfaceSupport &, TInt)

IMPORT_C TAny *GetInterfaceL(const THuiInterfaceSupport &aType,
TIntaHandle
)

Parameters

const THuiInterfaceSupport & aType
TInt aHandle

GetSubsessionsByTypeL(RPointerArray< CAlfSrvSubSessionBase > &, const THuiInterfaceSupport &)

voidGetSubsessionsByTypeL(RPointerArray< CAlfSrvSubSessionBase > &aArray,
const THuiInterfaceSupport &aType
)

Finds all the subsession which implement the interface.

Parameters

RPointerArray< CAlfSrvSubSessionBase > & aArrayArray which the function fills of subsession on return.
const THuiInterfaceSupport & aTypeType of the interface that we are looking for.

GetSystemEvents(const RMessage2 *)

voidGetSystemEvents(const RMessage2 *aMessage)

Parameters

const RMessage2 * aMessage

HandleCurrentCommanndAsynch()

IMPORT_C TIntHandleCurrentCommanndAsynch()

HandleEventL(TAny *, TAny *, const THuiEvent &)

voidHandleEventL(TAny *aCtrlPtr,
TAny *aVisualPtr,
const THuiEvent &aEvent
)

Parameters

TAny * aCtrlPtr
TAny * aVisualPtr
const THuiEvent & aEvent

HasSession(TInt)

TBool HasSession(TIntaSubSessionHandle)const

Returns ETrue if this session owns specified subsession handle.

Parameters

TInt aSubSessionHandle

IsSubSessionCreationFunction(const RMessage2 &)

TBool IsSubSessionCreationFunction(const RMessage2 &aMessage)const [protected]

Parameters

const RMessage2 & aMessage

LayoutManager()

IMPORT_C CAlfLayoutManager *LayoutManager()const

ParentWindowGroupId()

TInt ParentWindowGroupId()

PreferredRefreshMode()

IMPORT_C THuiRefreshModePreferredRefreshMode()const [virtual]

Returns the preferred refresh mode of the session.

PreferredWindowGroupPosition()

IMPORT_C CAlfAppServer::TAlfWGPostionPreferredWindowGroupPosition()const [virtual]

Returns the preferred window group position of the session.

ResetRootlayerTransformationsL()

voidResetRootlayerTransformationsL()

ServiceError(const RMessage2 &, TInt)

IMPORT_C voidServiceError(const RMessage2 &aMessage,
TIntaError
)[protected, virtual]

Override of CSession2::ServiceError(). If further overridden, this function must be base-called.

Parameters

const RMessage2 & aMessageThe client message.
TInt aErrorThe error code to which occured during message servicing

ServiceL(const RMessage2 &)

IMPORT_C voidServiceL(const RMessage2 &aMessage)[private, virtual]

From CAknAppServiceBase. Called by the framework when a client requests a sevice.

Parameters

const RMessage2 & aMessageClient's message.

SetBackgroundMaxFps(TBool)

voidSetBackgroundMaxFps(TBool)[inline, virtual]

Sets session's max fps limiter to half, used if client's window does not have keyboard focus

Parameters

TBool

SetClientWindowGroupId(TInt)

IMPORT_C voidSetClientWindowGroupId(TIntaId)

Sets the window group ID. Server uses this information to calculate its screen position in Symbian window tree

Parameters

TInt aIdWg ID

SetParentWindowGroupId(TInt)

voidSetParentWindowGroupId(TIntaParentId)

Parameters

TInt aParentId

SharedHuiEnv()

IMPORT_C CHuiEnv *SharedHuiEnv()const

StartPointerHandling()

voidStartPointerHandling()

SubSession(TInt)

CAlfSrvSubSessionBase &SubSession(TIntaSubSessionHandle)

Parameters

TInt aSubSessionHandle

TriggerPointerEvent(const RMessage2 *)

voidTriggerPointerEvent(const RMessage2 *aMessage)

Parameters

const RMessage2 * aMessage

TriggerSystemEvent(TInt)

voidTriggerSystemEvent(TIntaEvent)

Parameters

TInt aEvent

Member Data Documentation

TPrivateData * iData

TPrivateData *iData[private]

CAlfAppServer * iHost

CAlfAppServer *iHost[private]