idlehomescreen/xmluirendering/uiengine/inc/xnwallpaperview.h
changeset 5 c743ef5928ba
parent 0 f72a12da539e
child 12 9674c1a575e9
--- a/idlehomescreen/xmluirendering/uiengine/inc/xnwallpaperview.h	Tue Jan 26 11:48:23 2010 +0200
+++ b/idlehomescreen/xmluirendering/uiengine/inc/xnwallpaperview.h	Tue Feb 02 00:04:13 2010 +0200
@@ -26,10 +26,25 @@
 
 class CXnWallpaperContainer;
 class CXnUiEngine;
+class TVwsViewId;
+class CPeriodic;
 
 // CONSTANTS
 const TUid KWallpaperViewUid = { 0x200286DB };
 
+/**
+*  Data structure to be used with timer callback.
+*
+*  @since S60 v5.0
+*/
+NONSHARABLE_STRUCT( TXnWallpaperViewData )
+    {
+    TBool iMultiple;
+    TUid iAppUid;
+    TUid iViewUid;
+    CPeriodic* iTimer; // Not own.
+    };
+
 // CLASS DECLARATION
 
 /**
@@ -81,6 +96,11 @@
      */
     void ConstructL();
 
+    /**
+     * Callback function to be used with CPeriodic.
+     */
+    static TInt TimerCallbackL( TAny *aPtr );
+
 private: // data
 
     /**
@@ -93,6 +113,18 @@
      * Reference to uiengine.
      */
     CXnUiEngine& iEngine;
+    
+    /**
+     * Data structure, that is transferred to TimerCallback.
+     */
+    TXnWallpaperViewData iData;
+    
+    /**
+     * Periodic timer.
+     * Own.
+     */
+    CPeriodic* iTimer;
+
     };
 
 #endif      // CXNWALLPAPERVIEW_H