sysstatemgmt/systemstarter/src/StartupSplashScreen.cpp
branchRCL_3
changeset 21 ccb4f6b3db21
parent 0 4e1aa6a622a0
child 22 8cb079868133
equal deleted inserted replaced
20:1ddbe54d0645 21:ccb4f6b3db21
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    91 	_LIT_SECURITY_POLICY_PASS(KSplashReadPolicy);
    91 	_LIT_SECURITY_POLICY_PASS(KSplashReadPolicy);
    92 	_LIT_SECURITY_POLICY_S0(KSplashWritePolicy, RProcess().SecureId());   
    92 	_LIT_SECURITY_POLICY_S0(KSplashWritePolicy, RProcess().SecureId());   
    93    
    93    
    94   	// Define a splash property to control display and removal of
    94   	// Define a splash property to control display and removal of
    95   	// the splash screen on system start up.    
    95   	// the splash screen on system start up.    
    96  	RProperty::Define(KSplashPropertyKey, RProperty::EInt, 
    96  	// Ignoring the error value.
       
    97 	TInt err = RProperty::Define(KSplashPropertyKey, RProperty::EInt, 
    97  							KSplashReadPolicy, KSplashWritePolicy);
    98  							KSplashReadPolicy, KSplashWritePolicy);
    98   
    99 	DEBUGPRINT2(_L("Defining the KSplashPropertyKey completed with %d"), err);
       
   100 
    99  	// Create and set off the splash screen process.
   101  	// Create and set off the splash screen process.
   100 	RProcess splash;	 
   102 	RProcess splash;	 
   101 	TInt err = splash.Create(*iSplashPath, KNullDesC);
   103 	err = splash.Create(*iSplashPath, KNullDesC);
   102 	if (err == KErrNone)
   104 	if (err == KErrNone)
   103 		{
   105 		{
   104 		splash.Resume();
   106 		splash.Resume();
   105 		splash.Close();
   107 		splash.Close();
   106 		}
   108 		}