CSensrvSession Class Reference

class CSensrvSession : public CSession2

Represents a session for a client thread on the server-side. A session acts as a channel of communication between the client and the server.

Since
S60 5.0

Inherits from

Constructor & Destructor Documentation

CSensrvSession(CSensrvServer &, CSensrvProxyManager &, TSecureId)

CSensrvSession(CSensrvServer &aServer,
CSensrvProxyManager &aProxyManager,
TSecureIdaSecureId
)[private]

C++ default constructor.

Parameters

CSensrvServer & aServer
CSensrvProxyManager & aProxyManager
TSecureId aSecureId

~CSensrvSession()

~CSensrvSession()[virtual]

Destructor.

Member Functions Documentation

CompleteChangeNotificationMessage(const TSensrvResourceChannelInfo &, TSensrvChannelChangeType)

voidCompleteChangeNotificationMessage(const TSensrvResourceChannelInfo &aChangedChannel,
TSensrvChannelChangeTypeaChangeType
)[private]

Completes asynchronous change notification message. Message must exist and have valid handle

Since
S60 5.0

Parameters

const TSensrvResourceChannelInfo & aChangedChannel
TSensrvChannelChangeType aChangeType

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

NewL(CSensrvServer &, CSensrvProxyManager &, TSecureId)

CSensrvSession *NewL(CSensrvServer &aServer,
CSensrvProxyManager &aProxyManager,
TSecureIdaSecureId
)[static]

Two-phased constructor.

Parameters

CSensrvServer & aServer
CSensrvProxyManager & aProxyManager
TSecureId aSecureId

NotifyChannelChange(const TSensrvResourceChannelInfo &, TSensrvChannelChangeType)

voidNotifyChannelChange(const TSensrvResourceChannelInfo &aChangedChannel,
TSensrvChannelChangeTypeaChangeType
)

Notifies client if it is interested in channel change notifications

Since
S60 5.0

Parameters

const TSensrvResourceChannelInfo & aChangedChannelChannel information of the channel.
TSensrvChannelChangeType aChangeTypeIf ESensrvChannelAdded, channel is a newly available channel. If ESensrvChannelRemoved, channel was removed and is no longer available.

SecureId()

TSecureId SecureId()

Get the Secure ID of the client process.

Since
S60 5.0

ServiceL(const RMessage2 &)

voidServiceL(const RMessage2 &aMessage)[protected, virtual]

From CSession2

Since
S60 5.0

Parameters

const RMessage2 & aMessageThe message containing the client request

Member Data Documentation

CSensrvMessage * iAsyncChannelChangeMessage

CSensrvMessage *iAsyncChannelChangeMessage[private]

Reuse channel change messages to improve cleanup and performance. Own

CSensrvMessage * iAsyncConditionMessage

CSensrvMessage *iAsyncConditionMessage[private]

Reuse condition listening messages to improve cleanup and performance. Own

CSensrvMessage * iAsyncDataMessage

CSensrvMessage *iAsyncDataMessage[private]

Reuse data listening messages to improve cleanup and performance. Own

CSensrvMessage * iAsyncPropertyMessage

CSensrvMessage *iAsyncPropertyMessage[private]

Reuse property listening messages to improve cleanup and performance. Own

CSensrvChannelChangeQueue * iChannelChangeQueue

CSensrvChannelChangeQueue *iChannelChangeQueue[private]

Queue for channel change notifications. Own

TSensrvResourceChannelInfo iChannelChangeSearchParams

TSensrvResourceChannelInfo iChannelChangeSearchParams[private]

Search params of the active channel change notification.

CSensrvProxyManager & iProxyManager

CSensrvProxyManager &iProxyManager[private]

Proxy manager reference. Not own.

TSecureId iSecureId

TSecureId iSecureId[private]

Secure ID of the process which has been created this session.

CSensrvServer & iServer

CSensrvServer &iServer[private]

Server reference. Not own.

CSensrvMessage * iSyncMessage

CSensrvMessage *iSyncMessage[private]

Reuse synchronous messages to improve OOM cleanup. Own