iaupdate/IAD/engine/inc/iaupdatenodeobserver.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef IAUPDATENODEOBSERVER_H
       
    21 #define IAUPDATENODEOBSERVER_H
       
    22 
       
    23 class MIAUpdateNode;
       
    24 
       
    25 class MIAUpdateNodeObserver
       
    26     {
       
    27 
       
    28 public:
       
    29 
       
    30     /**
       
    31      * Notifies observer on the progress of an operation.
       
    32      * @param aNode Node that is under operation
       
    33      * @param aProgress Current progress of operation
       
    34      * @param aMaxProgress Maximum progress of operation     
       
    35      **/
       
    36     virtual void DownloadProgress( MIAUpdateNode& aNode,
       
    37                                    TUint aProgress,
       
    38                                    TUint aMaxProgress ) = 0;
       
    39                             
       
    40     /**
       
    41      * Notifies observer that an operation has been completed
       
    42      * @param aNode Node who had its operation completed
       
    43      * @param aError Error value
       
    44      **/
       
    45     virtual void DownloadComplete( MIAUpdateNode& aNode,
       
    46                                    TInt aError ) = 0;
       
    47 
       
    48     /**
       
    49      * Notifies observer on the progress of an operation.
       
    50      * @param aNode Node that is under operation
       
    51      * @param aProgress Current progress of operation
       
    52      * @param aMaxProgress Maximum progress of operation     
       
    53      **/
       
    54     virtual void InstallProgress( MIAUpdateNode& aNode,
       
    55                                   TUint aProgress,
       
    56                                   TUint aMaxProgress ) = 0;
       
    57                             
       
    58     /**
       
    59      * Notifies observer that an operation has been completed
       
    60      * @param aNode Node who had its operation completed
       
    61      * @param aError Error value
       
    62      **/
       
    63     virtual void InstallComplete( MIAUpdateNode& aNode,
       
    64                                   TInt aError ) = 0;
       
    65 
       
    66                                    
       
    67 protected:
       
    68 
       
    69     virtual ~MIAUpdateNodeObserver()
       
    70         {
       
    71         }
       
    72         
       
    73     };
       
    74 
       
    75 #endif  //  IAUPDATENODEOBSERVER_H