CAknAppServer Class Reference

API published in: S60 3rd Ed

Link against: avkon.lib

Capability Information

Required Capabilities

None


#include <aknserverapp.h>

Detailed Description

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

IMPORT_C  ~CAknAppServer ()
  Destructor.
IMPORT_C void  ConstructL (const TDesC &aFixedServerName)
  Second stage construction.
IMPORT_C CApaAppServiceBase *  CreateServiceL (TUid aServiceType) const
  Create a new service implementation.
virtual IMPORT_C void  HandleAllClientsClosed ()
  Allows the server to handle the case when all client sessions have closed.
void  HandleSessionClose ()
void  HandleSessionOpen ()

Constructor & Destructor Documentation

IMPORT_C CAknAppServer::~CAknAppServer  ) 
 

Destructor.


Member Function Documentation

IMPORT_C void CAknAppServer::ConstructL const TDesC &  aFixedServerName  ) 
 

Second stage construction.

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

Parameters:
aFixedServerName  the name that this server will have, must be passed through in the base-call.
IMPORT_C CApaAppServiceBase* CAknAppServer::CreateServiceL TUid  aServiceType  )  const
 

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:
aServiceType  the UID of the service that has been requested
Returns:
a new service instance of the type requested
virtual IMPORT_C void CAknAppServer::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.

void CAknAppServer::HandleSessionClose  ) 
 
void CAknAppServer::HandleSessionOpen  ) 
 

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top