iaupdate/IAD/engine/inc/iaupdatenode.h
branchRCL_3
changeset 25 7333d7932ef7
parent 11 3ba40be8e484
child 26 8b7f4e561641
equal deleted inserted replaced
24:5cc91383ab1e 25:7333d7932ef7
     1 /*
     1 /*
     2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    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 
       
   186     virtual void SetUiState( TUIUpdateState aState ) = 0;
       
   187     
       
   188     virtual TUIUpdateState UiState() const = 0;
       
   189     
       
   190     // for progress bar in UI
       
   191     virtual void SetProgress( TInt aProgress ) = 0;
       
   192     
       
   193     virtual TInt Progress() const = 0; 
       
   194     
       
   195     virtual void SetTotal( TInt aTotal ) = 0;
       
   196     
       
   197     virtual TInt Total() const = 0; 
       
   198     
       
   199        
   172 
   200 
   173 protected:
   201 protected:
   174 
   202 
   175     virtual ~MIAUpdateNode() { }
   203     virtual ~MIAUpdateNode() { }
   176         
   204