equal
deleted
inserted
replaced
342 // Thread/process exit |
342 // Thread/process exit |
343 return( err ); |
343 return( err ); |
344 } |
344 } |
345 |
345 |
346 // ----------------------------------------------------------------------------- |
346 // ----------------------------------------------------------------------------- |
347 // CAknsSrv::NotifyBackupOperationEnd |
347 // CAknsSrv::NotifyBackupOperationEndL |
348 // ----------------------------------------------------------------------------- |
348 // ----------------------------------------------------------------------------- |
349 // |
349 // |
350 void CAknsSrv::NotifyBackupOperationEnd() |
350 void CAknsSrv::NotifyBackupOperationEndL() |
351 { |
351 { |
352 RestoreOldSkin(); |
352 RestoreOldSkinL(); |
353 } |
353 } |
354 |
354 |
355 // ----------------------------------------------------------------------------- |
355 // ----------------------------------------------------------------------------- |
356 // CAknsSrv::NotifyLayoutChange |
356 // CAknsSrv::NotifyLayoutChange |
357 // ----------------------------------------------------------------------------- |
357 // ----------------------------------------------------------------------------- |
577 void CAknsSrv::NotifySlideSetTypeChange() |
577 void CAknsSrv::NotifySlideSetTypeChange() |
578 { |
578 { |
579 } |
579 } |
580 |
580 |
581 // ----------------------------------------------------------------------------- |
581 // ----------------------------------------------------------------------------- |
582 // CAknsSrv::NotifyWallpaperTypeChange |
582 // CAknsSrv::NotifyWallpaperTypeChangeL |
583 // ----------------------------------------------------------------------------- |
583 // ----------------------------------------------------------------------------- |
584 // |
584 // |
585 void CAknsSrv::NotifyWallpaperTypeChange() |
585 void CAknsSrv::NotifyWallpaperTypeChangeL() |
586 { |
586 { |
587 if ( iSlideSetObserver ) |
587 if ( iSlideSetObserver ) |
588 { |
588 { |
589 iSlideSetObserver->Cancel(); |
589 iSlideSetObserver->Cancel(); |
590 } |
590 } |
596 if (newtype != iWallpaperType) |
596 if (newtype != iWallpaperType) |
597 { |
597 { |
598 // none |
598 // none |
599 if ( newtype == KAknsSkinSrvNoWallpaper ) |
599 if ( newtype == KAknsSkinSrvNoWallpaper ) |
600 { |
600 { |
601 WallpaperLost(); |
601 WallpaperLostL(); |
602 } |
602 } |
603 // normal |
603 // normal |
604 else if ( newtype == KAknsSkinSrvImageWallpaper ) |
604 else if ( newtype == KAknsSkinSrvImageWallpaper ) |
605 { |
605 { |
606 TFileName filename; |
606 TFileName filename; |
813 /*if ( iWPOnRemovableDrive && iWPFilename ) |
813 /*if ( iWPOnRemovableDrive && iWPFilename ) |
814 { |
814 { |
815 if ( !AknsSrvUtils::IsFile( iFsSession, *iWPFilename ) ) |
815 if ( !AknsSrvUtils::IsFile( iFsSession, *iWPFilename ) ) |
816 { |
816 { |
817 iWPOnRemovableDrive = EFalse; |
817 iWPOnRemovableDrive = EFalse; |
818 WallpaperLost(); |
818 WallpaperLostL(); |
819 } |
819 } |
820 }*/ |
820 }*/ |
821 } |
821 } |
822 } |
822 } |
823 |
823 |
845 |
845 |
846 BackupAndActiveDefaultSkin(); |
846 BackupAndActiveDefaultSkin(); |
847 } |
847 } |
848 |
848 |
849 // ----------------------------------------------------------------------------- |
849 // ----------------------------------------------------------------------------- |
850 // CAknsSrv::NotifyUSBRemoval |
850 // CAknsSrv::NotifyUSBRemovalL |
851 // ----------------------------------------------------------------------------- |
851 // ----------------------------------------------------------------------------- |
852 // |
852 // |
853 void CAknsSrv::NotifyUSBRemoval() |
853 void CAknsSrv::NotifyUSBRemovalL() |
854 { |
854 { |
855 if (!iUSBAttached) |
855 if (!iUSBAttached) |
856 { |
856 { |
857 return; |
857 return; |
858 } |
858 } |
859 iUSBAttached = EFalse; |
859 iUSBAttached = EFalse; |
860 |
860 |
861 RestoreOldSkin(); |
861 RestoreOldSkinL(); |
862 } |
862 } |
863 |
863 |
864 // ----------------------------------------------------------------------------- |
864 // ----------------------------------------------------------------------------- |
865 // CAknsSrv::MorhphingEventTimeout |
865 // CAknsSrv::MorhphingEventTimeout |
866 // ----------------------------------------------------------------------------- |
866 // ----------------------------------------------------------------------------- |
888 |
888 |
889 ForceNotifySessions( EAknsSCHNPackageListUpdate ); |
889 ForceNotifySessions( EAknsSCHNPackageListUpdate ); |
890 } |
890 } |
891 |
891 |
892 // ----------------------------------------------------------------------------- |
892 // ----------------------------------------------------------------------------- |
893 // CAknsSrv::WallpaperLost |
893 // CAknsSrv::WallpaperLostL |
894 // ----------------------------------------------------------------------------- |
894 // ----------------------------------------------------------------------------- |
895 // |
895 // |
896 void CAknsSrv::WallpaperLost() |
896 void CAknsSrv::WallpaperLostL() |
897 { |
897 { |
898 if ( iUSBAttached && iWPOnRemovableDrive ) |
898 if ( iUSBAttached && iWPOnRemovableDrive ) |
899 { |
899 { |
900 return; |
900 return; |
901 } |
901 } |
1367 // ----------------------------------------------------------------------------- |
1367 // ----------------------------------------------------------------------------- |
1368 // CAknsSrv::StartAnimBackgroundL |
1368 // CAknsSrv::StartAnimBackgroundL |
1369 // ----------------------------------------------------------------------------- |
1369 // ----------------------------------------------------------------------------- |
1370 void CAknsSrv::StartAnimBackgroundL() |
1370 void CAknsSrv::StartAnimBackgroundL() |
1371 { |
1371 { |
1372 if ( iSettings->TransitionFxState() == KMaxTInt ) |
|
1373 { |
|
1374 //Stop anim effects |
|
1375 iSettings->SetAnimBackgroundState( KMaxTInt ); |
|
1376 return; |
|
1377 } |
|
1378 |
|
1379 const TUid KCRUidThemesVariation = { 0x102818EB }; |
1372 const TUid KCRUidThemesVariation = { 0x102818EB }; |
1380 const TUint32 KThemesLocalVariation = 0x00000001; |
1373 const TUint32 KThemesLocalVariation = 0x00000001; |
1381 |
1374 |
1382 // Enable animated background setting. |
1375 // Enable animated background setting. |
1383 // Bitmask value in decimals: 2048. |
1376 // Bitmask value in decimals: 2048. |
1394 |
1387 |
1395 if ( (value & KPslnSupportAnimBackground) && |
1388 if ( (value & KPslnSupportAnimBackground) && |
1396 ActiveSkinAnimBgSupportL() |
1389 ActiveSkinAnimBgSupportL() |
1397 ) |
1390 ) |
1398 { |
1391 { |
1399 //Start anim effects |
1392 if ( iAnimBgToBeRestored ) |
1400 iSettings->SetAnimBackgroundState( 0 ); |
1393 { |
|
1394 //Restore anim effects |
|
1395 iSettings->SetAnimBackgroundState( 0 ); |
|
1396 iAnimBgToBeRestored = EFalse; |
|
1397 } |
1401 } |
1398 } |
1402 else |
1399 else |
1403 { |
1400 { |
1404 //Stop anim effects |
1401 //Stop anim effects |
1405 iSettings->SetAnimBackgroundState( KMaxTInt ); |
1402 if ( iSettings->AnimBackgroundState() == KErrNone ) |
|
1403 { |
|
1404 iAnimBgToBeRestored = ETrue; |
|
1405 iSettings->SetAnimBackgroundState( KMaxTInt ); |
|
1406 } |
1406 } |
1407 } |
1407 } |
1408 } |
1408 |
1409 |
1409 // ----------------------------------------------------------------------------- |
1410 // ----------------------------------------------------------------------------- |
1410 // CAknsSrv::SetWallpaperL |
1411 // CAknsSrv::SetWallpaperL |
2356 |
2357 |
2357 iWallpaperCache->AddL( iFsSession, filename, trgSize, iMaxWallpaperSize ); |
2358 iWallpaperCache->AddL( iFsSession, filename, trgSize, iMaxWallpaperSize ); |
2358 return; |
2359 return; |
2359 } |
2360 } |
2360 // ----------------------------------------------------------------------------- |
2361 // ----------------------------------------------------------------------------- |
2361 // CAknsSrv::FreeDecodedWallpaper |
2362 // CAknsSrv::FreeDecodedWallpaperL |
2362 // ----------------------------------------------------------------------------- |
2363 // ----------------------------------------------------------------------------- |
2363 // |
2364 // |
2364 void CAknsSrv::FreeDecodedWallpaper( const RMessage2 aMessage ) |
2365 void CAknsSrv::FreeDecodedWallpaperL( const RMessage2 aMessage ) |
2365 { |
2366 { |
2366 TFileName filename; |
2367 TFileName filename; |
2367 aMessage.ReadL( 0, filename ); |
2368 aMessage.ReadL( 0, filename ); |
2368 if ( filename.Length() ) |
2369 if ( filename.Length() ) |
2369 { |
2370 { |
2773 |
2774 |
2774 // ----------------------------------------------------------------------------- |
2775 // ----------------------------------------------------------------------------- |
2775 // Reactive backup skin. |
2776 // Reactive backup skin. |
2776 // ----------------------------------------------------------------------------- |
2777 // ----------------------------------------------------------------------------- |
2777 // |
2778 // |
2778 void CAknsSrv::RestoreOldSkin() |
2779 void CAknsSrv::RestoreOldSkinL() |
2779 { |
2780 { |
2780 if (iOldSkin != KAknsNullPkgID) |
2781 if (iOldSkin != KAknsNullPkgID) |
2781 { |
2782 { |
2782 |
2783 |
2783 if ( iSettings->CachedSkinPID() != iSettings->DefaultSkinPID() ) |
2784 if ( iSettings->CachedSkinPID() != iSettings->DefaultSkinPID() ) |
2806 } |
2807 } |
2807 } |
2808 } |
2808 else |
2809 else |
2809 { |
2810 { |
2810 iWPOnRemovableDrive = EFalse; |
2811 iWPOnRemovableDrive = EFalse; |
2811 WallpaperLost(); |
2812 WallpaperLostL(); |
2812 } |
2813 } |
2813 } |
2814 } |
2814 } |
2815 } |
2815 |
2816 |
2816 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
2817 // ========================== OTHER EXPORTED FUNCTIONS ========================= |