# HG changeset patch # User William Roberts # Date 1265636318 0 # Node ID a4d95d2c2540f3c492ea666eceef6002df73586a # Parent 2e3d3ce01487a77fe53efe6610b14bb2ed37d739 Add Symbian Foundation splash screen diff -r 2e3d3ce01487 -r a4d95d2c2540 startupservices/SplashScreen/group/bld.inf --- a/startupservices/SplashScreen/group/bld.inf Tue Feb 02 10:12:00 2010 +0200 +++ b/startupservices/SplashScreen/group/bld.inf Mon Feb 08 13:38:38 2010 +0000 @@ -18,19 +18,32 @@ #include +#define USE_SF_SPLASH_SVG //comment this to use standard S60 splash icon PRJ_PLATFORMS DEFAULT PRJ_EXPORTS ../rom/splashscreen.iby CORE_MW_LAYER_IBY_EXPORT_PATH(splashscreen.iby) ../rom/splashscreen_variant.iby CUSTOMER_MW_LAYER_IBY_EXPORT_PATH(splashscreen_variant.iby) +#ifdef USE_SF_SPLASH_SVG +// Export to SF-specific subdirectory +../sfimage/sfsplash.svg /epoc32/s60/icons/sf_startup_screen.svg +#endif PRJ_MMPFILES +#ifdef USE_SF_SPLASH_SVG +sf_splashscreen.mmp +#else splashscreen.mmp +#endif PRJ_EXTENSIONS START EXTENSION s60/mifconv OPTION TARGETFILE splashscreen.mif OPTION HEADERFILE splashscreen.mbg +#ifdef USE_SF_SPLASH_SVG + OPTION SOURCES -c8 sf_startup_screen +#else OPTION SOURCES -c8 qgn_startup_screen +#endif END diff -r 2e3d3ce01487 -r a4d95d2c2540 startupservices/SplashScreen/group/sf_splashscreen.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/SplashScreen/group/sf_splashscreen.mmp Mon Feb 08 13:38:38 2010 +0000 @@ -0,0 +1,20 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: This is project specification file for the SplashScreen which +* displays splash screen upon booting the device. +* +*/ + +macro USE_SF_SPLASH_ENUM +#include "splashscreen.mmp" diff -r 2e3d3ce01487 -r a4d95d2c2540 startupservices/SplashScreen/sfimage/sfsplash.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/SplashScreen/sfimage/sfsplash.svg Mon Feb 08 13:38:38 2010 +0000 @@ -0,0 +1,10 @@ + + +]> + + + + + + diff -r 2e3d3ce01487 -r a4d95d2c2540 startupservices/SplashScreen/src/SplashScreen.cpp --- a/startupservices/SplashScreen/src/SplashScreen.cpp Tue Feb 02 10:12:00 2010 +0200 +++ b/startupservices/SplashScreen/src/SplashScreen.cpp Mon Feb 08 13:38:38 2010 +0000 @@ -361,7 +361,11 @@ if ( !err ) { TRACES("CMainWindow::ConstructL(): Image found"); +#ifdef USE_SF_SPLASH_ENUM + iBitmap = AknIconUtils::CreateIconL( fp->FullName(), EMbmSplashscreenSf_startup_screen ); +#else iBitmap = AknIconUtils::CreateIconL( fp->FullName(), EMbmSplashscreenQgn_startup_screen ); +#endif AknIconUtils::ExcludeFromCache(iBitmap); AknIconUtils::SetSize( iBitmap, iRect.Size(), EAspectRatioPreservedAndUnusedSpaceRemoved ); }