skins/AknSkins/wpusrc/AknsWallpaperUtils.cpp
branchRCL_3
changeset 58 a2f9480e2280
parent 26 800e0f20cfe9
child 106 e4e3998ddda2
equal deleted inserted replaced
55:33ddb261ab37 58:a2f9480e2280
    28 #include <StringLoader.h>
    28 #include <StringLoader.h>
    29 #include <AknWaitDialog.h>
    29 #include <AknWaitDialog.h>
    30 #include <AknWaitNoteWrapper.h>
    30 #include <AknWaitNoteWrapper.h>
    31 #include <babitflags.h>
    31 #include <babitflags.h>
    32 
    32 
    33 // CONSTANTS
       
    34 #if defined(RD_SLIDESHOW_WALLPAPER)
       
    35 // No wallpaper defined.
       
    36 const TInt KAknsWpNone = 0;
       
    37 // Image type wallpaper defined.
       
    38 const TInt KAknsWpImage = 1;
       
    39 #endif //RD_SLIDESHOW_WALLPAPER
       
    40 
       
    41 
    33 
    42 _LIT( KAknsSkinSrvSvgFileExt, ".svg" );
    34 _LIT( KAknsSkinSrvSvgFileExt, ".svg" );
    43 
    35 
    44 
    36 
    45 // Background process class.
    37 // Background process class.
   281     
   273     
   282     if (aFilename.Length()>0 && IsDRMProtectedL(aFilename))
   274     if (aFilename.Length()>0 && IsDRMProtectedL(aFilename))
   283         {
   275         {
   284         if (!QueryAndSetAutomatedL(aFilename, aCoeEnv))
   276         if (!QueryAndSetAutomatedL(aFilename, aCoeEnv))
   285             {
   277             {
   286             CleanupStack::PopAndDestroy(2);
       
   287             User::Leave(KErrCancel);
   278             User::Leave(KErrCancel);
   288             }
   279             }
   289         }
   280         }
   290     if (aCoeEnv && (aWaitNoteTextResourceID && aWaitNoteResourceID))
   281     if (aCoeEnv && (aWaitNoteTextResourceID && aWaitNoteResourceID))
   291         {
   282         {