idlehomescreen/xmluirendering/uiengine/inc/xnviewdata.h
changeset 2 08c6ee43b396
parent 0 f72a12da539e
child 9 f966699dea19
equal deleted inserted replaced
1:5315654608de 2:08c6ee43b396
    22 // User inlcudes
    22 // User inlcudes
    23 #include "xnplugindata.h"
    23 #include "xnplugindata.h"
    24 
    24 
    25 // Forward declarations
    25 // Forward declarations
    26 class CXnViewManager;
    26 class CXnViewManager;
       
    27 class CFbsBitmap;
    27 
    28 
    28 // Constants
    29 // Constants
    29 
    30 
    30 // Class declaration
    31 // Class declaration
    31 
    32 
   199      * @return View node
   200      * @return View node
   200      */
   201      */
   201     CXnNode* ViewNode() const;
   202     CXnNode* ViewNode() const;
   202 
   203 
   203     /**
   204     /**
       
   205      * Set wallpaper image. Ovnership is transferred.
       
   206      * 
       
   207      * @param aBitmap Background image file name.
       
   208      */
       
   209     void SetWallpaperImage( CFbsBitmap* aBitmap );
       
   210 
       
   211     /**
       
   212      * Get background image. Ovnership is NOT transferred. 
       
   213      * 
       
   214      * @return Pointer to background image. 
       
   215      *         Returns NULL if image has not been set.
       
   216      */
       
   217     CFbsBitmap* WallpaperImage() const;
       
   218 
       
   219     /**
       
   220      * Set path of the wallpaper image.
       
   221      * 
       
   222      * @param aFileName Image path, including file name.
       
   223      */
       
   224     void SetWallpaperImagePathL( const TDesC& aFileName );
       
   225     
       
   226     /**
       
   227      * Get the path of wallpaper image.
       
   228      * 
       
   229      * @return Image path, including file name. 
       
   230      *         Returns KNullCDes if wallpaper has not been set.
       
   231      */
       
   232     const TDesC& WallpaperImagePath() const;
       
   233 
       
   234     /**
   204      * Sets view's locking_status attribute (locked/none) to determine if view
   235      * Sets view's locking_status attribute (locked/none) to determine if view
   205      * is prevented from removing/deleting or not
   236      * is prevented from removing/deleting or not
   206      * 
   237      * 
   207      * @param aLockingStatusString attr. locking_status ("locked"/"none")
   238      * @param aLockingStatusString attr. locking_status ("locked"/"none")
   208      */
   239      */
   209     void SetLockingStatus( const TDesC8& aLockingStatusString );
   240     void SetLockingStatus( const TDesC8& aLockingStatusString );
       
   241     
   210 private:
   242 private:
   211     // data                              
   243     // data                              
   212     
   244     
   213     /** Focused Node, Not owned */
   245     /** Focused Node, Not owned */
   214     CXnNode* iFocusedNode;
   246     CXnNode* iFocusedNode;
   215 
   247 
       
   248     /** Pointer to wallpaper image, Owned */    
       
   249     CFbsBitmap* iBgImage;
       
   250     
       
   251     /** Path of the wallpaper image, including filename */    
       
   252     HBufC* iBgImagePath;
   216     };
   253     };
   217 
   254 
   218 #include "xnviewdata.inl"
   255 #include "xnviewdata.inl"
   219 
   256 
   220 #endif // _XNVIEWDATA_H
   257 #endif // _XNVIEWDATA_H