Revision: 201039 RCL_3 PDK_3.0.4
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 14:33:00 +0300
branchRCL_3
changeset 31 8f536f98e1f8
parent 29 65be1d84df1f
Revision: 201039 Kit: 201041
group/screensaver.mmp
inc/screensavershareddatai.h
scrsaver/screensaveraiwplugin/group/screensaveraiwplugin.mmp
scrsaver/scrsaverplugins/ScreenSaverAnimPlugin/conf/screensaveranimplugin_1020744E.crml
scrsaver/scrsaverplugins/ScreenSaverAnimPlugin/group/ScreenSaverAnimPlugin.mmp
scrsaver/scrsaverplugins/ScreenSaverAnimPlugin/src/ScreenSaverAnimPlugin.cpp
scrsaver/scrsaverplugins/ScreenSaverGifAnimPlugin/group/ScreenSaverGifAnimPluginEcom.mmp
scrsaver/scrsaverplugins/SlideshowPlugin/group/SlideshowPlugin.mmp
scrsaver/scrsaverplugins/SlideshowPlugin/inc/SlideshowPlugin.h
scrsaver/scrsaverplugins/SlideshowPlugin/src/SlideshowPlugin.cpp
src/screensaverbase.cpp
src/screensaverctrlplugin.cpp
src/screensaverengine.cpp
src/screensavershareddatai.cpp
src/screensaverutility.cpp
--- a/group/screensaver.mmp	Wed Sep 15 12:13:53 2010 +0300
+++ b/group/screensaver.mmp	Wed Oct 13 14:33:00 2010 +0300
@@ -97,22 +97,22 @@
 LIBRARY     ws32.lib
 LIBRARY     CommonEngine.lib
 LIBRARY     aknlayout.lib
-LIBRARY     AknLayout2Scalable.lib
+LIBRARY     aknlayout2scalable.lib
 LIBRARY     fbscli.lib
 LIBRARY     egul.lib
 LIBRARY     msgs.lib
 LIBRARY     bafl.lib
 LIBRARY     power_save_display_mode.lib
 LIBRARY     gdi.lib
-LIBRARY     profileeng.lib
+LIBRARY     ProfileEng.lib
 LIBRARY     hal.lib
-LIBRARY     aknskins.lib
-LIBRARY     featmgr.lib // Feature Manager API
-LIBRARY     aknicon.lib
-LIBRARY     aknpictograph.lib
+LIBRARY     AknSkins.lib
+LIBRARY     FeatMgr.lib // Feature Manager API
+LIBRARY     AknIcon.lib
+LIBRARY     AknPictograph.lib
 LIBRARY     ecom.lib
-LIBRARY     centralrepository.lib
-LIBRARY     cenrepnotifhandler.lib
+LIBRARY     CentralRepository.lib
+LIBRARY     CenRepNotifHandler.lib
 LIBRARY     efsrv.lib
 LIBRARY     flogger.lib
 #ifdef RD_UI_TRANSITION_EFFECTS_PHASE2
--- a/inc/screensavershareddatai.h	Wed Sep 15 12:13:53 2010 +0300
+++ b/inc/screensavershareddatai.h	Wed Oct 13 14:33:00 2010 +0300
@@ -249,16 +249,6 @@
     * Returns the pointer of the screensaver repository 
     */
     CRepository* ScreensaverRepository() const;
-    
-public:
-    /*
-    * Get the flag of display changed 
-    */
-    TBool GetDisplayObjChanged() const;
-    /*
-    * Set the flag of display changed 
-    */
-    void SetDisplayObjChanged( TBool aChanged );
 
 private:
     
@@ -398,11 +388,6 @@
     * System startup completion flag
     */
     TBool iStartupComplete;
-    
-    /**
-   * Record display changed flag
-   */
-    TBool iDisplayChange;
     };
 
 #endif  // C_SCREENSAVERSHAREDDATAI_H
--- a/scrsaver/screensaveraiwplugin/group/screensaveraiwplugin.mmp	Wed Sep 15 12:13:53 2010 +0300
+++ b/scrsaver/screensaveraiwplugin/group/screensaveraiwplugin.mmp	Wed Oct 13 14:33:00 2010 +0300
@@ -55,10 +55,10 @@
 
 LIBRARY         euser.lib
 LIBRARY         servicehandler.lib
-LIBRARY         CommonEngine.lib        // RConeResourceLoader
+LIBRARY         commonengine.lib        // RConeResourceLoader
 LIBRARY         cone.lib                // CCoeEnv
 LIBRARY         efsrv.lib               // TParse
 LIBRARY         avkon.lib
 LIBRARY         aknskinsrv.lib          // RAknsSrvSession
 LIBRARY         imageconversion.lib     // CImageDecoder
-LIBRARY         centralrepository.lib   // CRepository
+LIBRARY         CentralRepository.lib   // CRepository
Binary file scrsaver/scrsaverplugins/ScreenSaverAnimPlugin/conf/screensaveranimplugin_1020744E.crml has changed
--- a/scrsaver/scrsaverplugins/ScreenSaverAnimPlugin/group/ScreenSaverAnimPlugin.mmp	Wed Sep 15 12:13:53 2010 +0300
+++ b/scrsaver/scrsaverplugins/ScreenSaverAnimPlugin/group/ScreenSaverAnimPlugin.mmp	Wed Oct 13 14:33:00 2010 +0300
@@ -69,18 +69,18 @@
 LIBRARY         cone.lib 
 LIBRARY         efsrv.lib 
 LIBRARY         bafl.lib
-LIBRARY         centralrepository.lib
-LIBRARY         cenrepnotifhandler.lib
-LIBRARY         DrmHelper.lib
-LIBRARY         aknicon.lib              // AknIconUtils
-LIBRARY         aknlayout2.lib           // Scalable UI
+LIBRARY         CentralRepository.lib
+LIBRARY         CenRepNotifHandler.lib
+LIBRARY         drmhelper.lib
+LIBRARY         aknicon.lib              // AknIconUtils 
+LIBRARY         AknLayout2.lib           // Scalable UI
 LIBRARY         AknLayout2Scalable.lib   // Scalable UI
-LIBRARY         aknskins.lib
+LIBRARY         AknSkins.lib 
 LIBRARY         CdlEngine.lib            // Scalable UI 
 LIBRARY         avkon.lib 
 LIBRARY         apgrfx.lib
 LIBRARY         apmime.lib 
-LIBRARY         mgfetch.lib
+LIBRARY         MGFetch.lib
 LIBRARY         eikcoctl.lib
 LIBRARY         CommonEngine.lib 
 LIBRARY         eikdlg.lib
--- a/scrsaver/scrsaverplugins/ScreenSaverAnimPlugin/src/ScreenSaverAnimPlugin.cpp	Wed Sep 15 12:13:53 2010 +0300
+++ b/scrsaver/scrsaverplugins/ScreenSaverAnimPlugin/src/ScreenSaverAnimPlugin.cpp	Wed Oct 13 14:33:00 2010 +0300
@@ -157,6 +157,7 @@
     
     if ( err != KErrNone )
         {
+        iScreenSaverHost->RevertToDefaultSaver();
         return err;
         }
     
--- a/scrsaver/scrsaverplugins/ScreenSaverGifAnimPlugin/group/ScreenSaverGifAnimPluginEcom.mmp	Wed Sep 15 12:13:53 2010 +0300
+++ b/scrsaver/scrsaverplugins/ScreenSaverGifAnimPlugin/group/ScreenSaverGifAnimPluginEcom.mmp	Wed Oct 13 14:33:00 2010 +0300
@@ -59,6 +59,6 @@
 LIBRARY           eikcore.lib fbscli.lib gdi.lib
 LIBRARY           bitgdi.lib // CFbsBitmapDevice
 LIBRARY           ecom.lib
-LIBRARY           IHL.lib   // MIHLFileImage
+LIBRARY           IHL.LIB   // MIHLFileImage
 LIBRARY           efsrv.lib // RFs
 LIBRARY           bafl.lib  // baflutils
--- a/scrsaver/scrsaverplugins/SlideshowPlugin/group/SlideshowPlugin.mmp	Wed Sep 15 12:13:53 2010 +0300
+++ b/scrsaver/scrsaverplugins/SlideshowPlugin/group/SlideshowPlugin.mmp	Wed Oct 13 14:33:00 2010 +0300
@@ -67,11 +67,11 @@
 LIBRARY bafl.lib
 LIBRARY ws32.lib
 LIBRARY imageconversion.lib
-LIBRARY centralrepository.lib
-LIBRARY cenrepnotifhandler.lib
-LIBRARY DrmHelper.lib
+LIBRARY CentralRepository.lib
+LIBRARY CenRepNotifHandler.lib
+LIBRARY drmhelper.lib
 LIBRARY platformenv.lib
-LIBRARY aknskinsrv.lib
+LIBRARY AknSkinSrv.lib 
 LIBRARY ContentListingFramework.lib
 LIBRARY avkon.lib 
 LIBRARY eikdlg.lib
--- a/scrsaver/scrsaverplugins/SlideshowPlugin/inc/SlideshowPlugin.h	Wed Sep 15 12:13:53 2010 +0300
+++ b/scrsaver/scrsaverplugins/SlideshowPlugin/inc/SlideshowPlugin.h	Wed Oct 13 14:33:00 2010 +0300
@@ -354,9 +354,6 @@
 
     // MDS session
     CMdESession* iMdESession;
-    
-    // MDS query owned 
-    CMdEObjectQuery* iQuery;
     };  
 
 
--- a/scrsaver/scrsaverplugins/SlideshowPlugin/src/SlideshowPlugin.cpp	Wed Sep 15 12:13:53 2010 +0300
+++ b/scrsaver/scrsaverplugins/SlideshowPlugin/src/SlideshowPlugin.cpp	Wed Oct 13 14:33:00 2010 +0300
@@ -134,19 +134,8 @@
     delete iDrmHelper;
     delete iModel;
 
-    // Close and delete mds query
-    if ( iQuery )
-        {
-        iQuery->Cancel();
-        delete iQuery;
-        iQuery = NULL;
-        }
-
-	if ( iMdESession )
-        {
-        delete iMdESession;
-        iMdESession = NULL;
-        }
+    // First model, then engine, otherwise bad things happen
+    delete iMdESession;
     
     // Logging done
     SSPLOGGER_DELETE;
@@ -800,11 +789,16 @@
 void CSlideshowPlugin::LoadRandomSlidesL()
     {
     SSPLOGGER_ENTERFN("LoadRandomSlidesL()");
+
     // Start by getting rid of possibly loaded slides
     iModel->DeleteAll();
-    // connect to MDS, load data or not
+
+    // connect to MDS
     ConnectToMDSSessionL();
 
+    // Wait for query of MDS to complete before continuing
+    WaitForMDS();
+
     SSPLOGGER_LEAVEFN("LoadRandomSlidesL()");
     }
 
@@ -946,8 +940,6 @@
     if (!iMdESession)
         {
         iMdESession = CMdESession::NewL( *this );
-        // Wait for query of MDS to complete before continuing
-        WaitForMDS();
         }
     }
 
@@ -1012,9 +1004,9 @@
     CMdEObjectDef& imageObjDef = defaultNamespaceDef.GetObjectDefL( MdeConstants::Image::KImageObject );
 
     // query objects with object definition "Image"
-    iQuery = iMdESession->NewObjectQueryL( defaultNamespaceDef, imageObjDef, this );
+    CMdEObjectQuery* query = iMdESession->NewObjectQueryL( defaultNamespaceDef, imageObjDef, this );
 
-    iQuery->FindL( KDefaultRandomLoadingNumber );
+    query->FindL( KDefaultRandomLoadingNumber );
     }
 
 // -----------------------------------------------------------------------------
--- a/src/screensaverbase.cpp	Wed Sep 15 12:13:53 2010 +0300
+++ b/src/screensaverbase.cpp	Wed Oct 13 14:33:00 2010 +0300
@@ -84,7 +84,6 @@
         {
         SCRLOGGER_WRITE("Model: StopScreenSaver(), exit power save");
         LcdPartialMode()->Exit();
-        Model().SharedDataInterface()->SetSSForcedLightsOn( ESSForceLightsOn );
         }
     
     CancelTimer();
@@ -176,7 +175,7 @@
             TUint16* addr = ( TUint16* )iOffScrnBmp->DataAddress();
             err = LcdPartialMode()->Set( startLine, endLine, addr, aFullColors );
 
-            Model().SharedDataInterface()->SetSSForcedLightsOn( ESSForceLightsOff );
+            Model().SharedDataInterface()->SetSSForcedLightsOn( 0 );
             }
         else
             {
--- a/src/screensaverctrlplugin.cpp	Wed Sep 15 12:13:53 2010 +0300
+++ b/src/screensaverctrlplugin.cpp	Wed Oct 13 14:33:00 2010 +0300
@@ -63,6 +63,8 @@
 void CScreensaverCtrlPlugin::StartTimer()
     {
     // Notify plugin that screensaver is starting
+    Model().SharedDataInterface()->SetSSForcedLightsOn( ESSForceLightsOn );
+    
     SendPluginEvent( EScreensaverEventStarting );
     
     
@@ -282,7 +284,6 @@
     SCRLOGGER_WRITE("Host: ExitPartialMode()");
 
     LcdPartialMode()->Exit();
-    Model().SharedDataInterface()->SetSSForcedLightsOn( ESSForceLightsOn );
     // Make sure the partial area is empty
     // Make this less idiotic
     TRect psRect( 0, 0, 0, 0);
@@ -588,13 +589,6 @@
     if( err != KErrNone )
         {
         // Loaded OK, but failed to initialize - cannot use plugin
-        TBool changed = Model().SharedDataInterface()->GetDisplayObjChanged();
-        if( !changed )
-            {
-            //Just activate the screensaver revert to defaultsaver
-            RevertToDefaultSaver();
-            }
-        Model().SharedDataInterface()->SetDisplayObjChanged( EFalse );
         delete iPlugin;
         iPlugin = NULL;
         }
--- a/src/screensaverengine.cpp	Wed Sep 15 12:13:53 2010 +0300
+++ b/src/screensaverengine.cpp	Wed Oct 13 14:33:00 2010 +0300
@@ -886,10 +886,7 @@
     // compress all heaps (User::CompressAllHeaps() is a no-op)
     User::Heap().Compress();
 
-    self->iSharedDataI->SetDisplayObjChanged( EFalse );
-    
     self->DisplayObject();
-    
     return KErrNone;
     }
 
--- a/src/screensavershareddatai.cpp	Wed Sep 15 12:13:53 2010 +0300
+++ b/src/screensavershareddatai.cpp	Wed Oct 13 14:33:00 2010 +0300
@@ -683,8 +683,6 @@
     DefineScreensaverProperties( KScreenSaverNoPowerSaveMode, KSSPolicyPass );
 
     DefineScreensaverProperties( KScreenSaverActivate, KSSPolicyWriteUserData );
-    
-    iDisplayChange = EFalse;
     }
 
 // -----------------------------------------------------------------------------
@@ -843,8 +841,6 @@
     {
     CScreensaverSharedDataI* self = STATIC_CAST(CScreensaverSharedDataI*, aPtr);
     
-    self->SetDisplayObjChanged( ETrue );
-    
     self->AppUi()->ScreensaverView()->SetDisplayObject( self->DisplayObjectType() );
     
     return KErrNone;
@@ -941,22 +937,6 @@
         iActiveProfile = NULL;
         }
     }
-// -----------------------------------------------------------------------------
-// CScreensaverSharedDataI::SetDisplayObjChanged
-// -----------------------------------------------------------------------------
-//
-void CScreensaverSharedDataI::SetDisplayObjChanged( TBool aChanged )
-    {
-    iDisplayChange = aChanged;
-    }
-// -----------------------------------------------------------------------------
-// CScreensaverSharedDataI::GetDisplayObjChanged
-// -----------------------------------------------------------------------------
-//
-TBool CScreensaverSharedDataI::GetDisplayObjChanged()const
-    {
-    return iDisplayChange;
-    }
 
 // -----------------------------------------------------------------------------
 // CScreensaverSharedDataI::AppUi
--- a/src/screensaverutility.cpp	Wed Sep 15 12:13:53 2010 +0300
+++ b/src/screensaverutility.cpp	Wed Oct 13 14:33:00 2010 +0300
@@ -132,8 +132,7 @@
         }
     CAknTransitionUtils::RemoveData( KScreensaverCallStateChange );
 #endif
-    CEikonEnv::Static()->RootWin().SetOrdinalPosition(
-                    0, ECoeWinPriorityNeverAtFront );
+
     CEikonEnv::Static()->BringForwards( EFalse );
     }