securitydialogs/lockapp/inc/lockappserver.h
branchRCL_3
changeset 21 09b1ac925e3f
parent 20 63339781d179
child 22 03674e5abf46
equal deleted inserted replaced
20:63339781d179 21:09b1ac925e3f
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Server implementation that responses to client API in
       
    15  *                lockclient
       
    16  *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __LOCKAPPSERVER_H__
       
    21 #define __LOCKAPPSERVER_H__
       
    22 
       
    23 // INCLUDES
       
    24 #include <apaserverapp.h>
       
    25 
       
    26 /**
       
    27  *  CLockAppServer class implements the application server of LockApp.
       
    28  *  The server is created with a fixed server name and offers only one service.
       
    29  *
       
    30  *  @lib    lockapp
       
    31  *  @since  5.0
       
    32  *  @author Joona Petrell
       
    33  *  @author Tamas Koteles
       
    34  */
       
    35 class CLockAppServer : public CApaAppServer
       
    36 	{
       
    37 	public:
       
    38 
       
    39 		/**
       
    40 		 * Two-phased constructor.
       
    41 		 */
       
    42 		static CLockAppServer* NewL( const TDesC& aFixedServerName );
       
    43 
       
    44 		/**
       
    45 		 * Offers support for multiple services, but only one is supported/used by LockApp Server.
       
    46 		 * 
       
    47 		 * @param aServiceType uid used to identify different services.
       
    48 		 */
       
    49 		CApaAppServiceBase* CreateServiceL( TUid aServiceType ) const;
       
    50 
       
    51 	private:
       
    52 
       
    53 		/**
       
    54 		 * C++ default constructor.
       
    55 		 */
       
    56 		CLockAppServer( );
       
    57 
       
    58 		/**
       
    59 		 * Establishes a new session between client and server.
       
    60 		 * 
       
    61 		 * @param aVersion for support of new server client-server API variations (not used).
       
    62 		 * @param aMessage message that started the session.
       
    63 		 */
       
    64 		CSession2* NewSessionL( const TVersion& aVersion, const RMessage2& aMessage ) const;
       
    65 
       
    66 	private:
       
    67 
       
    68 		// how many sessions are created to the server
       
    69 		TInt iSessionCount;
       
    70 
       
    71 	};
       
    72 
       
    73 #endif //__LOCKAPPSERVER_H__