CMMFControllerProxyServer Class Reference

class CMMFControllerProxyServer : public CMmfIpcServer

The controller proxy server.

The main server inside the controller thread, responsible for creating and destroying the single session used to transmit messages from the client to the server.

Every controller plugin runs in its own thread, and has its own controller proxy server.

Since
7.0s

Inherits from

Constructor & Destructor Documentation

CMMFControllerProxyServer()

CMMFControllerProxyServer()[private]

Constructor.

Since
7.0s

~CMMFControllerProxyServer()

~CMMFControllerProxyServer()

Destructor.

Since
7.0s

Member Functions Documentation

ConstructL(RServer2 *)

voidConstructL(RServer2 *aServer2)[private]

Second phase constructor.

Since
7.0s

Parameters

RServer2 * aServer2

DoStartThreadL(TAny *)

voidDoStartThreadL(TAny *aParam)[private, static]

Thread startup code.

Creates the cleanup stack, installs the active scheduler and creates the server. Once all this is completed successfully, it signals the success back to the client.

This function may leave with one of the system-wide error codes.

Since
7.0s

Parameters

TAny * aParam

NewL(RServer2 *)

CMMFControllerProxyServer *NewL(RServer2 *aServer2)[static]

Construct the server.

This method may leave with one of the system-wide error codes.

Since
7.0s

Parameters

RServer2 * aServer2

NewSessionL(const TVersion &)

CMmfIpcSession *NewSessionL(const TVersion &aVersion)const [private, virtual]

Creates a new session. Only one session may be created with the ControllerProxyServer.

This function may leave with one of the system-wide error codes.

Since
7.0s

Parameters

const TVersion & aVersionThe version number of the session.

RenameControllerProxyThread()

voidRenameControllerProxyThread()[private, static]

Renaming Controller Proxy Server name

Since
9.2

RunError(TInt)

TInt RunError(TIntaError)[virtual]

Called by the active scheduler when the ServiceL of the session leaves. Completes the message with the error and restarts the server.

Since
7.0s

Parameters

TInt aErrorThe error that the session ServiceL left with.

SessionCreated()

voidSessionCreated()

Signals that the session has been created.

Stops the shutdown timer.

Since
7.0s

SessionDestroyed()

voidSessionDestroyed()

Signals that the session has been destroyed. Causes the server to shut down immediately.

Since
7.0s

StartThread(TAny *)

IMPORT_C TIntStartThread(TAny *aParam)[static]

Static thread function.

The address of this function is passed into RThread::Create.

Unpackages the startup parameters and calls DoStartThreadL().

Since
7.0s

Parameters

TAny * aParam

Member Data Documentation

TBool iHaveSession

TBool iHaveSession[private]

Indicates whether we have a session connected. Only one session is allowed to connect to the server.

CMMFControllerProxyShutdown * iShutdownTimer

CMMFControllerProxyShutdown *iShutdownTimer[private]

The timer used to shut down the server in case the client fails to connect a session.