scrsaver/scrsaverplugins/SlideshowPlugin/src/SlideshowPlugin.cpp
branchRCL_3
changeset 21 724d4ec22f0d
parent 20 d1f14bc6a2ab
equal deleted inserted replaced
20:d1f14bc6a2ab 21:724d4ec22f0d
   787 
   787 
   788 // Load filenames from CLF
   788 // Load filenames from CLF
   789 void CSlideshowPlugin::LoadRandomSlidesL()
   789 void CSlideshowPlugin::LoadRandomSlidesL()
   790     {
   790     {
   791     SSPLOGGER_ENTERFN("LoadRandomSlidesL()");
   791     SSPLOGGER_ENTERFN("LoadRandomSlidesL()");
   792 
       
   793     // Start by getting rid of possibly loaded slides
   792     // Start by getting rid of possibly loaded slides
   794     iModel->DeleteAll();
   793     iModel->DeleteAll();
   795 
   794     // connect to MDS, load data or not
   796     // connect to MDS
       
   797     ConnectToMDSSessionL();
   795     ConnectToMDSSessionL();
   798 
       
   799     // Wait for query of MDS to complete before continuing
       
   800     WaitForMDS();
       
   801 
   796 
   802     SSPLOGGER_LEAVEFN("LoadRandomSlidesL()");
   797     SSPLOGGER_LEAVEFN("LoadRandomSlidesL()");
   803     }
   798     }
   804 
   799 
   805 
   800 
   938 void CSlideshowPlugin::ConnectToMDSSessionL()
   933 void CSlideshowPlugin::ConnectToMDSSessionL()
   939     {
   934     {
   940     if (!iMdESession)
   935     if (!iMdESession)
   941         {
   936         {
   942         iMdESession = CMdESession::NewL( *this );
   937         iMdESession = CMdESession::NewL( *this );
       
   938         // Wait for query of MDS to complete before continuing
       
   939         WaitForMDS();
   943         }
   940         }
   944     }
   941     }
   945 
   942 
   946 // -----------------------------------------------------------------------------
   943 // -----------------------------------------------------------------------------
   947 // CSlideshowPlugin::WaitForMDS
   944 // CSlideshowPlugin::WaitForMDS