iaupdate/IAD/engine/controller/inc/iaupdatenodeimpl.h
changeset 52 92f864ef0288
parent 33 8110bf1194d1
equal deleted inserted replaced
42:d17dc5398051 52:92f864ef0288
     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".
   136      *
   136      *
   137      * @see MIAUpdateNode::Depth
   137      * @see MIAUpdateNode::Depth
   138      */
   138      */
   139     virtual TInt Depth() const;
   139     virtual TInt Depth() const;
   140     
   140     
   141     /**
   141     virtual void SetUiState( TUIUpdateState aState );
   142      * Informs UI that downloading is ongoing
   142         
   143      **/
   143     virtual TUIUpdateState UiState() const;
   144     virtual TBool Downloading() const;
   144         
   145 
   145     // for progress bar in UI
   146     /**
   146     virtual void SetProgress( TInt aProgress );
   147      * Informs UI that installing is ongoing
   147         
   148      **/
   148     virtual TInt Progress() const; 
   149     virtual TBool Installing() const;
   149         
   150     
   150     virtual void SetTotal( TInt aTotal );
   151     virtual void SetDownloading( TBool aDownloading );
   151         
   152 
   152     virtual TInt Total() const; 
   153     virtual void SetInstalling( TBool aInstalling );
   153                
   154         
       
   155     /**
   154     /**
   156      * @see MIAUpdateNode:::NodeType
   155      * @see MIAUpdateNode:::NodeType
   157      */
   156      */
   158     virtual TNodeType NodeType() const;
   157     virtual TNodeType NodeType() const;
   159     
   158     
   335 private: // data
   334 private: // data
   336 
   335 
   337     TDependencyCheckStatus              iDependencyCheckStatus;
   336     TDependencyCheckStatus              iDependencyCheckStatus;
   338     TInt                                iLeafDistance;
   337     TInt                                iLeafDistance;
   339     TInt                                iDepth;
   338     TInt                                iDepth;
   340     TBool                               iDownloading;
   339     TUIUpdateState                      iUiUpdateState;
   341     TBool                               iInstalling;
   340     TInt                                iProgress;
   342 
   341     TInt                                iTotal;
       
   342     
   343     // These arrays do not own the nodes.
   343     // These arrays do not own the nodes.
   344     RPointerArray< CIAUpdateNode >      iDependants;
   344     RPointerArray< CIAUpdateNode >      iDependants;
   345     RPointerArray< CIAUpdateNode >      iExcessDependencyNodes;
   345     RPointerArray< CIAUpdateNode >      iExcessDependencyNodes;
   346 
   346 
   347     // Not owned.
   347     // Not owned.