commsprocess/commsrootserverconfig/inc/c32startshared.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19 */
       
    20 #if !defined(__C32STARTSHARED_H__)
       
    21 #define __C32STARTSHARED_H__
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <rsshared.h>
       
    25 
       
    26 _LIT(KRsConfiguratorServerName,"!C32ConfiguratorServer");
       
    27 
       
    28 using namespace RootServer;
       
    29 
       
    30 /** Name of a group of Comms Provider Modules.
       
    31 @internalTechnology 
       
    32 */
       
    33 typedef TBuf8<CommsFW::KCFMaxModuleName> TCFGroupName;
       
    34 
       
    35 /** Folded (case-insensitive) name of a group of Comms Provider Modules.
       
    36 @internalTechnology
       
    37 */
       
    38 class TCFGroupNameF : public TCFGroupName
       
    39     {
       
    40 public:
       
    41     inline TCFGroupNameF()
       
    42         {
       
    43         }
       
    44     explicit inline TCFGroupNameF(const TDesC8& aGroup)
       
    45     : TCFGroupName(aGroup)
       
    46         {
       
    47         }
       
    48     inline TBool operator==(const TDesC8& aRHS) const
       
    49         {
       
    50         return CompareF(aRHS) == 0;
       
    51         }
       
    52     inline TBool operator!=(const TDesC8& aRHS) const
       
    53         {
       
    54         return CompareF(aRHS) != 0;
       
    55         }
       
    56     };
       
    57 
       
    58 
       
    59 /**Configurator server IPC numbers/messages
       
    60 @internalComponent
       
    61 */
       
    62 enum
       
    63 	{
       
    64 	CSEnumerateModules=1,
       
    65 	CSGetModuleIniData,
       
    66 	CSLoadCpm,
       
    67 	CSCancelLoadCpm,
       
    68 	CSUnloadCpm,
       
    69 	CSCancelUnloadCpm	
       
    70 	};
       
    71 
       
    72 enum TConfiguratorServerPanic
       
    73 	{
       
    74 	/** Failed while starting configurator server
       
    75 	 */
       
    76 	EPanicConfigServer
       
    77 	};
       
    78 	
       
    79 	
       
    80 
       
    81 NONSHARABLE_CLASS(TConfiguratorModuleParams) : public RootServer::TRSStartModuleParamContainer
       
    82 	/** Container for necessary parameters to start a CPM.
       
    83 	@internalTechnology 
       
    84 	*/
       
    85 	{
       
    86 	public:
       
    87 	/**Specifies this module is for On Demand loading.
       
    88 	*/	
       
    89 	TBool iOnDemand;	
       
    90 	/** Specifies group for a module.
       
    91 	* @see TCFGroupName
       
    92 	*/
       
    93 	TCFGroupName iGroupName;
       
    94 	};
       
    95 #endif
       
    96