idlehomescreen/xmluirendering/uiengine/inc/xnwallpaperview.h
branchRCL_3
changeset 38 79311d856354
parent 34 d05a55b217df
child 47 7be2816dbabd
equal deleted inserted replaced
34:d05a55b217df 38:79311d856354
    31 class CXnAppUiAdapter;
    31 class CXnAppUiAdapter;
    32 class CXnUiEngine;
    32 class CXnUiEngine;
    33 class TVwsViewId;
    33 class TVwsViewId;
    34 class CPeriodic;
    34 class CPeriodic;
    35 class CXnSpBgCleaner;
    35 class CXnSpBgCleaner;
       
    36 class CAknWaitDialog;
    36 
    37 
    37 // Constants
    38 // Constants
    38 const TUid KWallpaperViewUid = { 0x200286DB };
    39 const TUid KWallpaperViewUid = { 0x200286DB };
    39 
       
    40 /**
       
    41 *  Data structure to be used with timer callback.
       
    42 *
       
    43 *  @since S60 v5.0
       
    44 */
       
    45 NONSHARABLE_STRUCT( TXnWallpaperViewData )
       
    46     {
       
    47     TBool iMultiple;
       
    48     TUid iAppUid;
       
    49     TUid iViewUid;    
       
    50     };
       
    51 
    40 
    52 // CLASS DECLARATION
    41 // CLASS DECLARATION
    53 
    42 
    54 /**
    43 /**
    55 *  Wallpaper view.
    44 *  Wallpaper view.
    57 *
    46 *
    58 *  @since S60 v5.0
    47 *  @since S60 v5.0
    59 */
    48 */
    60 NONSHARABLE_CLASS( CXnWallpaperView ) : public CAknView 
    49 NONSHARABLE_CLASS( CXnWallpaperView ) : public CAknView 
    61     {
    50     {
       
    51     /** View states */
       
    52     enum TViewState 
       
    53         {
       
    54         EIdle,
       
    55         EImageSelection,
       
    56         EViewDeactivation
       
    57         };
    62 public:
    58 public:
    63 
    59 
    64     /**
    60     /**
    65      * Two-phased constructor.
    61      * Two-phased constructor.
    66      * @return new instance of CXnWallpaperView.
    62      * @return new instance of CXnWallpaperView.
   101     void ConstructL();
    97     void ConstructL();
   102 
    98 
   103     /**
    99     /**
   104      * Callback function to be used with CPeriodic.
   100      * Callback function to be used with CPeriodic.
   105      */
   101      */
   106     static TInt TimerCallbackL( TAny *aPtr );
   102     static TInt TimerCallback( TAny *aPtr );
       
   103     void DoHandleCallBackL();
   107 
   104 
       
   105     /**
       
   106      * Show error dialog
       
   107      * 
       
   108      * @param aResourceId Resource id to string to be displayed.
       
   109      */
       
   110     static void ShowErrorDialogL( const TInt aResourceId );
       
   111     
   108 private: // data
   112 private: // data
   109 
   113 
   110     /**
   114     /**
   111      * Wallpaper container.
   115      * Wallpaper container.
   112      * Own.
   116      * Own.
   124      * Not owned.
   128      * Not owned.
   125      */
   129      */
   126     CXnAppUiAdapter& iAppUi;
   130     CXnAppUiAdapter& iAppUi;
   127     
   131     
   128     /**
   132     /**
   129      * Data structure, that is transferred to TimerCallback.
   133      * Switch for multiple image selection.
   130      */
   134      */
   131     TXnWallpaperViewData iData;
   135     TBool iMultiple;
       
   136     
       
   137     /**
       
   138      * Previous view id
       
   139      */
       
   140     TVwsViewId iPreviousViewUid;
       
   141 
       
   142     /**
       
   143      * States of wallpaperview
       
   144      */
       
   145     TViewState iViewState;
   132     
   146     
   133     /**
   147     /**
   134      * Periodic timer.
   148      * Periodic timer.
   135      * Own.
   149      * Own.
   136      */
   150      */
   144     /** 
   158     /** 
   145      * Statuspane background cleaner. 
   159      * Statuspane background cleaner. 
   146      * Own.
   160      * Own.
   147      */
   161      */
   148 	CXnSpBgCleaner* iXnSpBgCleaner;
   162 	CXnSpBgCleaner* iXnSpBgCleaner;
   149 
   163     
       
   164     /** 
       
   165      * Wait dialog. 
       
   166      * Own.
       
   167      */
       
   168 	CAknWaitDialog* iWaitDialog;    
   150     };
   169     };
   151 
   170 
   152 #endif      // CXNWALLPAPERVIEW_H
   171 #endif      // CXNWALLPAPERVIEW_H
   153 
   172 
   154 // End of File
   173 // End of File