idlehomescreen/xmluirendering/uiengine/inc/xnwallpaperview.h
changeset 5 c743ef5928ba
parent 0 f72a12da539e
child 12 9674c1a575e9
equal deleted inserted replaced
4:4d54b72983ae 5:c743ef5928ba
    24 //  INCLUDES
    24 //  INCLUDES
    25 #include <aknview.h>
    25 #include <aknview.h>
    26 
    26 
    27 class CXnWallpaperContainer;
    27 class CXnWallpaperContainer;
    28 class CXnUiEngine;
    28 class CXnUiEngine;
       
    29 class TVwsViewId;
       
    30 class CPeriodic;
    29 
    31 
    30 // CONSTANTS
    32 // CONSTANTS
    31 const TUid KWallpaperViewUid = { 0x200286DB };
    33 const TUid KWallpaperViewUid = { 0x200286DB };
       
    34 
       
    35 /**
       
    36 *  Data structure to be used with timer callback.
       
    37 *
       
    38 *  @since S60 v5.0
       
    39 */
       
    40 NONSHARABLE_STRUCT( TXnWallpaperViewData )
       
    41     {
       
    42     TBool iMultiple;
       
    43     TUid iAppUid;
       
    44     TUid iViewUid;
       
    45     CPeriodic* iTimer; // Not own.
       
    46     };
    32 
    47 
    33 // CLASS DECLARATION
    48 // CLASS DECLARATION
    34 
    49 
    35 /**
    50 /**
    36 *  Wallpaper view.
    51 *  Wallpaper view.
    79     /**
    94     /**
    80      * By default Symbian 2nd phase constructor is private.
    95      * By default Symbian 2nd phase constructor is private.
    81      */
    96      */
    82     void ConstructL();
    97     void ConstructL();
    83 
    98 
       
    99     /**
       
   100      * Callback function to be used with CPeriodic.
       
   101      */
       
   102     static TInt TimerCallbackL( TAny *aPtr );
       
   103 
    84 private: // data
   104 private: // data
    85 
   105 
    86     /**
   106     /**
    87      * Wallpaper container.
   107      * Wallpaper container.
    88      * Own.
   108      * Own.
    91     
   111     
    92     /**
   112     /**
    93      * Reference to uiengine.
   113      * Reference to uiengine.
    94      */
   114      */
    95     CXnUiEngine& iEngine;
   115     CXnUiEngine& iEngine;
       
   116     
       
   117     /**
       
   118      * Data structure, that is transferred to TimerCallback.
       
   119      */
       
   120     TXnWallpaperViewData iData;
       
   121     
       
   122     /**
       
   123      * Periodic timer.
       
   124      * Own.
       
   125      */
       
   126     CPeriodic* iTimer;
       
   127 
    96     };
   128     };
    97 
   129 
    98 #endif      // CXNWALLPAPERVIEW_H
   130 #endif      // CXNWALLPAPERVIEW_H
    99 
   131 
   100 // End of File
   132 // End of File