psln/Src/PslnScreenSaverView.cpp
branchRCL_3
changeset 12 941195f2d488
parent 10 3d340a0166ff
equal deleted inserted replaced
10:3d340a0166ff 12:941195f2d488
    46 #include "PslnConst.h"
    46 #include "PslnConst.h"
    47 #include "PslnUi.h"
    47 #include "PslnUi.h"
    48 
    48 
    49 // CONSTANTS
    49 // CONSTANTS
    50 // Number of default system screensavers.
    50 // Number of default system screensavers.
    51 const TInt KPslnSystemScreenSavers = 3;
    51 const TInt KPslnSystemScreenSavers = 1;
    52 // Value in PubSub when screensaver preview is off.
    52 // Value in PubSub when screensaver preview is off.
    53 const TInt KPslnScreenSaverPreviewOff = 0;
    53 const TInt KPslnScreenSaverPreviewOff = 0;
    54 
    54 
    55 // ============================ MEMBER FUNCTIONS ===============================
    55 // ============================ MEMBER FUNCTIONS ===============================
    56 
    56 
   201         static_cast<CPslnScreenSaverContainer*> (iContainer)->UpdateListBoxL();
   201         static_cast<CPslnScreenSaverContainer*> (iContainer)->UpdateListBoxL();
   202 
   202 
   203         TInt newDefault = iModel->CurrentPropertyIndexL( KPslnScreenSettingId );
   203         TInt newDefault = iModel->CurrentPropertyIndexL( KPslnScreenSettingId );
   204         if ( newDefault == KErrNotFound )
   204         if ( newDefault == KErrNotFound )
   205             {
   205             {
   206             // If no default found, assume that date is default.
   206             // If no default found, assume that None is default.
   207             newDefault = 0;
   207             newDefault = 0;
   208             iModel->SetCurrentPropertyTypeL(
   208             iModel->SetCurrentPropertyTypeL(
   209                 KPslnScreenSettingId,
   209                 KPslnScreenSettingId,
   210                 newDefault );
   210                 newDefault );
   211             }
   211             }