imservices/instantmessagingcache/imcacheclient/inc/imcacheprocessstarter.h
changeset 0 e6b17d312c8b
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     1 /*
       
     2 * Copyright (c) 2008 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:  start the server
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __IMCACHEPROCESSSTARTER_H__
       
    21 #define __IMCACHEPROCESSSTARTER_H__
       
    22 
       
    23 #include <e32std.h>
       
    24 
       
    25 /**
       
    26  * Generic process starter.
       
    27  */
       
    28 class IMCacheProcessStarter
       
    29     {
       
    30     public:     // New methods
       
    31 
       
    32 		/**
       
    33     	* read full path for client 
       
    34     	* @param aExeName the , name of server exe
       
    35     	* @param aFullExePath path of server exe
       
    36     	*/
       
    37         static void FullExePathForClientLocation(
       
    38                         const TDesC& aExeName,
       
    39                         TFileName& aFullExePath );
       
    40 
       
    41 		/**
       
    42     	* StartInstance the instance of server
       
    43     	* @param aFullExePath path of server exe
       
    44     	* @param aCommand the , to excute 
       
    45     	* @param aParams, starter parameter
       
    46     	*/
       
    47         static TInt StartInstance(
       
    48                         const TDesC& aFullExePath,
       
    49                         const TDesC& aCommand
       
    50                         );
       
    51 		
       
    52 		/**
       
    53     	* connect to the server
       
    54     	* @param aFullExePath path of server exe
       
    55     	* @param aCommand the , to excute 
       
    56        	* @param aSessionToConnect, sesion to be used
       
    57 		* @param aServerName, server  name 
       
    58 		* @param aClientVersion, client version
       
    59 		* @param aAsyncMessageSlots, slots number
       
    60 		*/
       
    61         static TInt ConnectToServer(
       
    62                         const TDesC& aFullExePath,
       
    63                         const TDesC& aCommand,
       
    64                         RSessionBase& aSessionToConnect,
       
    65                         const TDesC& aServerName,
       
    66                         const TVersion& aClientVersion,
       
    67                         TInt aAsyncMessageSlots );
       
    68 
       
    69 
       
    70 
       
    71     private:    // Helpers
       
    72     
       
    73     	/**
       
    74     	* DoStartInstance
       
    75         * @param aFullExePath path of server exe
       
    76         * @param aCommand the , to excute 
       
    77     	* @param aParams, starter parameter
       
    78     	*/
       
    79         static TInt DoStartInstance(
       
    80                         const TDesC& aFullExePath,
       
    81                         const TDesC& aCommand );
       
    82                         
       
    83         
       
    84 
       
    85     };
       
    86 
       
    87 #endif      //  __IMCACHEPROCESSSTARTER_H__
       
    88 
       
    89 
       
    90 //END OF FILE
       
    91 
       
    92