idlefw/plugins/wrtdataplugin/inc/wrtdataplugin.h
branchRCL_3
changeset 64 b276298d5729
parent 59 a0713522ab97
child 74 edd621764147
equal deleted inserted replaced
59:a0713522ab97 64:b276298d5729
   149     
   149     
   150     /**
   150     /**
   151      * @see CHsContentPublisher
   151      * @see CHsContentPublisher
   152      */    
   152      */    
   153     void HandleEvent( const TDesC& aEventName, const TDesC& aParam );
   153     void HandleEvent( const TDesC& aEventName, const TDesC& aParam );
   154     
   154 
   155     /**
       
   156      * @see CHsContentPublisher
       
   157      */    
       
   158     TBool HasMenuItem( const TDesC& aMenuItem );
       
   159          
       
   160 public:
   155 public:
   161 
   156 
   162     /**
   157     /**
   163     * Gets the id of a content  
   158     * Gets the id of a content  
   164     *
   159     *
   263      * Plugin's network status getter
   258      * Plugin's network status getter
   264      * @return Pointer to Harvester status observer
   259      * @return Pointer to Harvester status observer
   265      */
   260      */
   266     TPluginNetworkStatus NetworkStatus() const;
   261     TPluginNetworkStatus NetworkStatus() const;
   267     
   262     
       
   263     /**
       
   264     * Creates initial data republishing timer if needed and starts it
       
   265     */
       
   266     void StartTimer();
       
   267 
   268 private:
   268 private:
   269     // new functions
   269     // new functions
   270     
   270     
   271     /**
   271     /**
   272     * Publishes widget's texts and images
   272     * Publishes widget's initial texts and images
   273     *
   273     *
   274     * @param void
   274     * @param void
   275     * @return void
   275     * @return void
   276     */
   276     */
   277     void PublishL();
   277     void PublishInitialDataL();
   278         
   278         
   279 	/**
   279 	/**
   280 	* Resolves skin item id and Mif id from pattern 
   280 	* Resolves skin item id and Mif id from pattern 
   281 	* skin( <majorId> <minorId> (<colourGroupId>) 
   281 	* skin( <majorId> <minorId> (<colourGroupId>) 
   282 	* mif(<MifFileName.mif> <bitmapId> <maskId>)
   282 	* mif(<MifFileName.mif> <bitmapId> <maskId>)
   288 	* @param aFilename mif file name
   288 	* @param aFilename mif file name
   289 	* @return boolean (ETrue/EFalse)  
   289 	* @return boolean (ETrue/EFalse)  
   290 	*/
   290 	*/
   291 	TBool ResolveSkinIdAndMifId( const TDesC& aPath, TAknsItemID& aItemId,
   291 	TBool ResolveSkinIdAndMifId( const TDesC& aPath, TAknsItemID& aItemId,
   292 	        TInt& aMifId, TInt& aMaskId, TDes& aFilename );
   292 	        TInt& aMifId, TInt& aMaskId, TDes& aFilename );
   293         
   293 
       
   294     /**
       
   295     * Cancels transaction in case of leave
       
   296     *
       
   297     * @param aObserver Transaction target
       
   298     */
       
   299     static void CancelTransaction( TAny* aObserver );
       
   300   
       
   301     /**
       
   302     * Cancels initial data republishing timer
       
   303     */
       
   304     void CancelTimer();
       
   305 
       
   306     /**
       
   307     * Stops and deletes initial data republishing timer. 
       
   308     */
       
   309     void StopTimer();
       
   310 
       
   311     /**
       
   312     * Timeout callback from timer. Used if publishing of initial data has failed.
       
   313     *
       
   314     * @param aPtr Contains pointer to instance of this class 
       
   315     */
       
   316     static TInt Timeout( TAny* aPtr );
       
   317 
       
   318 
   294 private: 
   319 private: 
   295     // data
   320     // data
   296 
   321 
   297     /** Iterator for plugin content, owned */
   322     /** Iterator for plugin content, owned */
   298     MAiContentItemIterator* iContent;
   323     MAiContentItemIterator* iContent;
   312     TPluginNetworkStatus iNetworkStatus;    
   337     TPluginNetworkStatus iNetworkStatus;    
   313     /** Plugin state */    
   338     /** Plugin state */    
   314     TPluginStates iPluginState;
   339     TPluginStates iPluginState;
   315     /** File server session handle, owned */
   340     /** File server session handle, owned */
   316     RFs iRfs;
   341     RFs iRfs;
       
   342     /** Timer for initial data republishing, owned */
       
   343     CPeriodic* iTimer;
   317     };
   344     };
   318 
   345 
   319 #endif // WRTDATAPLUGIN_H
   346 #endif // WRTDATAPLUGIN_H
   320 
   347 
   321 
   348