iaupdate/IAD/engine/inc/iaupdatenode.h
changeset 52 92f864ef0288
parent 33 8110bf1194d1
equal deleted inserted replaced
42:d17dc5398051 52:92f864ef0288
    76         */
    76         */
    77         EPackageTypeWidget
    77         EPackageTypeWidget
    78        
    78        
    79         };
    79         };
    80 
    80 
       
    81     /**
       
    82     * For UI during update process
       
    83     **/
       
    84     
       
    85     enum TUIUpdateState
       
    86         {
       
    87         ENormal,
       
    88         EDownloading,
       
    89         EInstalling,
       
    90         EUpdated,
       
    91         EFailed,
       
    92         EDownloaded        
       
    93         };
       
    94     
    81 
    95 
    82     /**
    96     /**
    83      * @return TPackageType The type of this node content.
    97      * @return TPackageType The type of this node content.
    84      **/
    98      **/
    85     virtual TPackageType Type() const = 0;
    99     virtual TPackageType Type() const = 0;
   167      * @return TInt This describes how deep in the dependency hierarchy
   181      * @return TInt This describes how deep in the dependency hierarchy
   168      * this node is. Zero means that node is a root.
   182      * this node is. Zero means that node is a root.
   169      */
   183      */
   170     virtual TInt Depth() const = 0;
   184     virtual TInt Depth() const = 0;
   171 
   185 
   172     /**
   186     virtual void SetUiState( TUIUpdateState aState ) = 0;
   173      * Informs UI that downloading is ongoing
   187     
   174      **/
   188     virtual TUIUpdateState UiState() const = 0;
   175     virtual TBool Downloading() const = 0;
   189     
   176 
   190     // for progress bar in UI
   177     /**
   191     virtual void SetProgress( TInt aProgress ) = 0;
   178     * Informs UI that installing is ongoing
   192     
   179     **/
   193     virtual TInt Progress() const = 0; 
   180     virtual TBool Installing() const = 0;
   194     
   181     
   195     virtual void SetTotal( TInt aTotal ) = 0;
   182     virtual void SetDownloading( TBool aDownloading ) = 0;
   196     
   183 
   197     virtual TInt Total() const = 0; 
   184     virtual void SetInstalling( TBool aInstalling ) = 0;
   198     
   185     
   199        
   186 
   200 
   187 protected:
   201 protected:
   188 
   202 
   189     virtual ~MIAUpdateNode() { }
   203     virtual ~MIAUpdateNode() { }
   190         
   204