iaupdate/IAD/engine/controller/inc/iaupdatecontentoperationobserver.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:51:10 +0200
changeset 0 ba25891c3a9e
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   MIAUpdateContentOperationObserver 
*
*/



#ifndef IA_UPDATE_CONTENT_OPERATION_OBSERVER_H
#define IA_UPDATE_CONTENT_OPERATION_OBSERVER_H

#include <e32def.h>

class CIAUpdateBaseNode;


/**
 * MIAUpdateContentOperationObserver
 * Observer for content operations.
 */
class MIAUpdateContentOperationObserver
    {

public:

    /**
     * @param aNode Node whose content operation has finished.
     * @param aError Error code for the operation.
     */
    virtual void ContentOperationComplete( CIAUpdateBaseNode& aNode, 
                                           TInt aError ) = 0;

    /**
     * @param aNode Node whose content operation has progressed.
     * @param aProgress Progress at the moment.
     * @param aMaxProgress Maximum progress when the operation should
     * be ready.
     */
    virtual void ContentOperationProgress( CIAUpdateBaseNode& aNode, 
                                           TInt aProgress, 
                                           TInt aMaxProgress ) = 0;

protected:

    /**
     * Protected virtual destructor to prevent unwanted
     * deletions by the user.
     */        
    virtual ~MIAUpdateContentOperationObserver() { }
    
    };

#endif // IA_UPDATE_CONTENT_OPERATION_OBSERVER_H