CAknAppServer Class Reference

class CAknAppServer : public CEikAppServer

Base class for server app's servers. Series 60 applications that want to implement services should derive their server class from this. This class already supports the standard Series 60 services, and is instantiated by default if an application is launched as a server app, but does not override CAknApp::NewServerAppL().

Public Member Functions
~CAknAppServer ()
IMPORT_C void ConstructL (const TDesC &)
IMPORT_C CApaAppServiceBase * CreateServiceL ( TUid )
IMPORT_C void HandleAllClientsClosed ()
void HandleSessionClose ()
void HandleSessionOpen ()
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()
CApaAppServer::CApaAppServer()
CApaAppServer::CustomSecurityCheckL(const RMessage2 &,TInt &,TSecurityInfo &)
CApaAppServer::DoConnect(const RMessage2 &)
CApaAppServer::NotifyServerExit(TInt)
CApaAppServer::~CApaAppServer()
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()
CEikAppServer::ConstructUniqueL(TUint,TUid)
CEikAppServer::CreateServiceSecurityCheckL(TUid,const RMessage2 &,TInt &,TSecurityInfo &)
CPolicyServer::CPolicyServer(TInt,const TPolicy &,TServerType)
CPolicyServer::CheckFailedL(const RMessage2 &,TInt,const TSecurityInfo &)
CPolicyServer::CustomFailureActionL(const RMessage2 &,TInt,const TSecurityInfo &)
CPolicyServer::Extension_(TUint,TAny *&,TAny *)
CPolicyServer::ProcessError(const RMessage2 &,TInt)
CPolicyServer::ProcessL(const RMessage2 &)
CServer2::CServer2(TInt,TServerType)
CServer2::DoCancel()
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
TInt iSessionCount
Inherited Attributes
CActive::iStatus
CServer2::iSessionIter

Constructor & Destructor Documentation

~CAknAppServer()

IMPORT_C ~CAknAppServer ( )

Destructor

Member Functions Documentation

ConstructL(const TDesC &)

IMPORT_C void ConstructL ( const TDesC & aFixedServerName ) [virtual]

Second stage construction. Derived classes may override this to add extra second stage constuction, but they must base-call.

Parameters

const TDesC & aFixedServerName the name that this server will have, must be passed through in the base-call.

CreateServiceL(TUid)

IMPORT_C CApaAppServiceBase * CreateServiceL ( TUid aServiceType ) const [virtual]

Create a new service implementation. This implementation creates common Series 60 services. Derived classes can override this to add support for specific services that they support. They must base-call for any service UIDs that they do not support.

Parameters

TUid aServiceType the UID of the service that has been requested

HandleAllClientsClosed()

IMPORT_C void HandleAllClientsClosed ( ) [virtual]

Allows the server to handle the case when all client sessions have closed. The default implementation provides the Series 60 policy of closing the server application. If this is not appropriate for a server app, it should override this function to provide its own behavior.

HandleSessionClose()

void HandleSessionClose ( )

HandleSessionOpen()

void HandleSessionOpen ( )

Member Data Documentation

TInt iSessionCount

TInt iSessionCount [private]