CSensrvServer Class Reference

class CSensrvServer : public CPolicyServer

Sensor server main class

Since
S60 5.0

Inherits from

Public Member Functions
~CSensrvServer()
CSensrvServer *NewL()
CSensrvServer *NewLC()
voidNotifyChannelChange(const TSensrvResourceChannelInfo &, TSensrvChannelChangeType)
Private Member Functions
CSensrvServer(const TServerType)
voidConstructL()
CSession2 *NewSessionL(const TVersion &, const RMessage2 &)
voidPanic(const TDesC &, const TInt)
TDblQueIter< CSession2 > *SessionIterator()
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
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()
CPolicyServer::CPolicyServer(TInt,const TPolicy &,TServerType)
CPolicyServer::CheckFailedL(const RMessage2 &,TInt,const TSecurityInfo &)
CPolicyServer::CustomFailureActionL(const RMessage2 &,TInt,const TSecurityInfo &)
CPolicyServer::CustomSecurityCheckL(const RMessage2 &,TInt &,TSecurityInfo &)
CPolicyServer::Extension_(TUint,TAny *&,TAny *)
CPolicyServer::ProcessError(const RMessage2 &,TInt)
CPolicyServer::ProcessL(const RMessage2 &)
CServer2::CServer2(TInt,TServerType)
CServer2::DoCancel()
CServer2::DoConnect(const RMessage2 &)
CServer2::Message()const
CServer2::ReStart()
CServer2::Server()const
CServer2::SetMaster(const CServer2 *)
CServer2::SetPinClientDescriptors(TBool)
CServer2::Start(const TDesC &)
CServer2::StartL(const TDesC &)
CServer2::~CServer2()
Inherited Enumerations
CActive:TPriority
CPolicyServer:TCustomResult
CPolicyServer:TFailureAction
CPolicyServer:TSpecialCase
CServer2:TPanic
CServer2:TServerType
Private Attributes
CSensrvProxyManager *iProxyManager
Inherited Attributes
CActive::iStatus
CServer2::iSessionIter

Constructor & Destructor Documentation

CSensrvServer(const TServerType)

CSensrvServer(const TServerTypeaType = EUnsharableSessions)[private]

C++ constructor.

Parameters

const TServerType aType = EUnsharableSessions

~CSensrvServer()

~CSensrvServer()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

NewL()

CSensrvServer *NewL()[static]

Creates a new server.

Since
S60 5.0

NewLC()

CSensrvServer *NewLC()[static]

Creates a new server. Newly created instance is left in the cleanup stack.

Since
S60 5.0

NewSessionL(const TVersion &, const RMessage2 &)

CSession2 *NewSessionL(const TVersion &aVersion,
const RMessage2 &aMessage
)const [private, virtual]

Creates a new session when client connects.

Since
S60 5.0

Parameters

const TVersion & aVersionVersion
const RMessage2 & aMessage'connect' message from the client

NotifyChannelChange(const TSensrvResourceChannelInfo &, TSensrvChannelChangeType)

voidNotifyChannelChange(const TSensrvResourceChannelInfo &aChangedChannel,
TSensrvChannelChangeTypeaChangeType
)

Notifies clients that a change has happened in available channels.

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.

Panic(const TDesC &, const TInt)

voidPanic(const TDesC &aCategory,
const TIntaReason
)[private]

Panics the server thread

Since
S60 5.0

Parameters

const TDesC & aCategoryPanicer's id
const TInt aReason

SessionIterator()

TDblQueIter< CSession2 > *SessionIterator()[private, inline]

Gets a reference to the session iterator of this server.

Since
S60 5.0

Member Data Documentation

CSensrvProxyManager * iProxyManager

CSensrvProxyManager *iProxyManager[private]

Proxy manager that handles all proxies. Own.