idlehomescreen/widgetmanager/inc/wmwidgetdata.h
branchRCL_3
changeset 12 9674c1a575e9
parent 9 f966699dea19
child 17 b8fae6b8a148
equal deleted inserted replaced
11:ff572dfe6d86 12:9674c1a575e9
   152      * fired for the observer.
   152      * fired for the observer.
   153      * 
   153      * 
   154      * @param aHsContentInfo new content (takes ownership)
   154      * @param aHsContentInfo new content (takes ownership)
   155      * @return ETrue if content was changed
   155      * @return ETrue if content was changed
   156      */
   156      */
   157     TBool ReplaceContentInfoL(
   157     TBool ReplaceContentInfo(
   158             CHsContentInfo* aHsContentInfo );
   158             CHsContentInfo* aHsContentInfo );
   159     
   159     
   160 public: // comparing / sorting
   160 public: // comparing / sorting
   161     /** whether this object represents the same widget as aContentInfo */
   161     /** whether this object represents the same widget as aContentInfo */
   162     TBool EqualsTo( CHsContentInfo& aContentInfo );
   162     TBool EqualsTo( CHsContentInfo& aContentInfo );
   215     inline void SetValid( TBool aValid );
   215     inline void SetValid( TBool aValid );
   216     
   216     
   217 	/** start animation for uninstallation*/
   217 	/** start animation for uninstallation*/
   218     void VisualizeUninstallL();
   218     void VisualizeUninstallL();
   219 	
   219 	
       
   220     /** stop uninstallation animation */
       
   221     void StopUninstallAnimationL();
       
   222     
   220 protected: // from MConverterObserver
   223 protected: // from MConverterObserver
   221 
   224 
   222     /** image conversin completed */
   225     /** image conversin completed */
   223     void NotifyCompletion( TInt aError );
   226     void NotifyCompletion( TInt aError );
   224 
   227 
   225 private: // new functions
   228 private: // new functions
   226     
   229     
   227     /** uninstall animation related*/
   230     /** uninstall animation related*/
   228     void PrepairAnimL();
   231     void PrepairAnimL();
   229     void DestroyAnimData();
   232     void DestroyAnimData();
   230     static TInt Tick( TAny* aPtr );
   233     static TInt AnimationTick( TAny* aPtr );
   231     
   234     
   232     /** fetches publisher uid from widget registry*/
   235     /** fetches publisher uid from widget registry*/
   233     void FetchPublisherUidL( 
   236     void FetchPublisherUidL( 
       
   237             const TDesC& aPublisherId,
   234             RWidgetRegistryClientSession* aRegistryClientSession );
   238             RWidgetRegistryClientSession* aRegistryClientSession );
   235 
   239 
   236     /** Converts uid to TUid from TDesC8 */
   240     /** Converts uid to TUid from TDesC8 */
   237     TUid UidFromString( const TDesC8& aUidString ) const;
   241     TUid UidFromString( const TDesC8& aUidString ) const;
   238     
   242     
   239     /** Logo icon string handling */
   243     /** Logo icon string handling */
   240     void HandleIconString( const TDesC& aIconStr );
   244     void HandleIconString( const TDesC& aIconStr );
   241     void FireDataChanged();
   245     void FireDataChanged();
       
   246     static TInt TimeoutTick( TAny* aPtr );
   242 
   247 
   243 private: // data members
   248 private: // data members
   244     
   249     
   245     /* reference to resource loader */
   250     /* reference to resource loader */
   246     CWmResourceLoader& iWmResourceLoader;
   251     CWmResourceLoader& iWmResourceLoader;
   279     TBool               iValid;
   284     TBool               iValid;
   280 
   285 
   281     /* Array of uninstall animation bitmaps*/
   286     /* Array of uninstall animation bitmaps*/
   282     RArray<CFbsBitmap*> iUninstallAnimIcons;
   287     RArray<CFbsBitmap*> iUninstallAnimIcons;
   283     
   288     
   284     /** periodic timer for updating animation */
   289     /** timer for updating animation */
   285     CPeriodic*          iPeriodic;
   290     CPeriodic*          iAnimationTimer;
       
   291     
       
   292     /** timer for canceling image convertion */
       
   293     CPeriodic*          iTimeoutTimer;
   286     
   294     
   287     /* uninstall animation index */
   295     /* uninstall animation index */
   288     TInt                iAnimationIndex;
   296     TInt                iAnimationIndex;
   289 
   297 
   290     /** uninstallation switch */
   298     /** uninstallation switch */
   296     /**
   304     /**
   297      * ActiveSchedulerWait used to wait while logo image
   305      * ActiveSchedulerWait used to wait while logo image
   298      * is being prepaired.
   306      * is being prepaired.
   299      */
   307      */
   300     CActiveSchedulerWait* iWait;
   308     CActiveSchedulerWait* iWait;
       
   309     
       
   310     /**
       
   311      * Holds widget name. Used for restoring widget name 
       
   312      * if error has occurred during uninstallation.
       
   313      */
       
   314     HBufC* iWidgetName;
   301     };
   315     };
   302 
   316 
   303 
   317 
   304 /**
   318 /**
   305  * Pointer array of widget data objects.
   319  * Pointer array of widget data objects.