predictivesearch/PcsServer/inc/CPcsServer.h
changeset 0 e686773b3f54
child 15 e8e3147d53eb
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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:  PCS Server main class. Co-ordinates server startup 
       
    15 *                and shutdown and receives client requests.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef PCS_SERVER_H
       
    20 #define PCS_SERVER_H
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include <e32base.h>
       
    24 #include <CPcsDefs.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CPcsSession;
       
    28 class CPcsHandler;
       
    29 class CPcsPluginInterface;
       
    30 
       
    31 /** 
       
    32  * PCS Server main class. Co-ordinates server startup and shutdown 
       
    33  * and receives client requests.
       
    34  */
       
    35 class CPcsServer : public CServer2
       
    36 {
       
    37     public:
       
    38     
       
    39         /**
       
    40          * Two phase construction
       
    41          */
       
    42 		static CPcsServer* NewL();
       
    43 		
       
    44 		/**
       
    45 		 * Destructor
       
    46 		 */
       
    47 		~CPcsServer();
       
    48 		
       
    49 		/**
       
    50 		 * Creates a server side session object
       
    51 		 * Implements NewSessionL of CServer2
       
    52 		 */
       
    53 		CSession2* NewSessionL(const TVersion& aVersion,
       
    54 			                   const RMessage2& aMessage) const;
       
    55 			                   
       
    56         /**
       
    57          * Return the plugin interface instance
       
    58          */			                  
       
    59 	    CPcsPluginInterface* PluginInterface();
       
    60 	    
       
    61     private:
       
    62     
       
    63         /**
       
    64          * Constructor
       
    65          */
       
    66 		CPcsServer();
       
    67 		
       
    68 		/**
       
    69 		 * Second phase constructor
       
    70 		 */
       
    71 		void ConstructL();
       
    72 		
       
    73 		/**
       
    74 		 * Returns ETrue if chinese feature is initilized
       
    75 		 */
       
    76 		TBool IsChineseFeatureInitilizedL();
       
    77     private:
       
    78     
       
    79         /**
       
    80          * A PCS algorithm instance (owned)
       
    81          */
       
    82     	CPcsPluginInterface* pcs;
       
    83 };
       
    84 
       
    85 #endif // End of file