installationservices/swi/source/sisregistry/server_legacy/sisregistryserver.cpp
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
    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>
    28 
    30 
    29 #include "sisregistryserver.h"
    31 #include "sisregistryserver.h"
    30 #include "sisregistrycache.h"
    32 #include "sisregistrycache.h"
    31 #include "sisregistryservershutdown.h"
    33 #include "sisregistryservershutdown.h"
    32 #include "sisregistryserversession.h"
    34 #include "sisregistryserversession.h"
   102 //
   104 //
   103 // 2nd phase construction - ensure the timer and server objects are running
   105 // 2nd phase construction - ensure the timer and server objects are running
   104 //
   106 //
   105 	{
   107 	{
   106 	DEBUG_PRINTF(_L8("SIS Registry Server - Starting Server"));
   108 	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         }	
   107 	StartL(KSisRegistryName);
   119 	StartL(KSisRegistryName);
   108 	// create the cache
   120 	// create the cache
   109 	iCache = CSisRegistryCache::NewL();
   121 	iCache = CSisRegistryCache::NewL();
   110 	// create the shutdown 
   122 	// create the shutdown 
   111 	iShutdown = new(ELeave) CShutdown;
   123 	iShutdown = new(ELeave) CShutdown;