installationservices/swi/source/sisregistry/server_legacy/sisregistryserver.cpp
branchRCL_3
changeset 65 7333d7932ef7
parent 36 f9033e605ee2
child 66 8b7f4e561641
equal deleted inserted replaced
62:5cc91383ab1e 65:7333d7932ef7
    23  @internalComponent
    23  @internalComponent
    24 */
    24 */
    25 #include <s32mem.h>
    25 #include <s32mem.h>
    26 #include <f32file.h>
    26 #include <f32file.h>
    27 #include <s32file.h>
    27 #include <s32file.h>
    28 #include <startupdomainpskeys.h>
       
    29 #include <e32const.h>
       
    30 
    28 
    31 #include "sisregistryserver.h"
    29 #include "sisregistryserver.h"
    32 #include "sisregistrycache.h"
    30 #include "sisregistrycache.h"
    33 #include "sisregistryservershutdown.h"
    31 #include "sisregistryservershutdown.h"
    34 #include "sisregistryserversession.h"
    32 #include "sisregistryserversession.h"
   104 //
   102 //
   105 // 2nd phase construction - ensure the timer and server objects are running
   103 // 2nd phase construction - ensure the timer and server objects are running
   106 //
   104 //
   107 	{
   105 	{
   108 	DEBUG_PRINTF(_L8("SIS Registry Server - Starting Server"));
   106 	DEBUG_PRINTF(_L8("SIS Registry Server - Starting Server"));
   109     TInt value( EIdlePhase1Ok );
       
   110     RProperty::Get( KPSUidStartup, KPSIdlePhase1Ok, value );
       
   111     if ( value == EIdlePhase1NOK )
       
   112         {
       
   113         DEBUG_PRINTF(_L8("SIS Registry Server - Setting process priority to Low"));
       
   114 		// Using 150 instead of EPriorityLow as there is conflict between TPriority
       
   115 		// and TProcessPriority enum constants.
       
   116 		RProcess().SetPriority(TProcessPriority(150));
       
   117         DEBUG_PRINTF(_L8("SIS Registry Server - Set process priority to Low"));
       
   118         }	
       
   119 	StartL(KSisRegistryName);
   107 	StartL(KSisRegistryName);
   120 	// create the cache
   108 	// create the cache
   121 	iCache = CSisRegistryCache::NewL();
   109 	iCache = CSisRegistryCache::NewL();
   122 	// create the shutdown 
   110 	// create the shutdown 
   123 	iShutdown = new(ELeave) CShutdown;
   111 	iShutdown = new(ELeave) CShutdown;