ncdengine/inc/ncdinstalloperation.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) 2006 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:   Install operation interface definition
*
*/
	

#ifndef M_NCD_INSTALL_OPERATION_H
#define M_NCD_INSTALL_OPERATION_H

#include <e32cmn.h>

#include "ncdoperation.h"
#include "ncdinterfaceids.h"


/**
 *  Install operation interface.
 *  
 *  Install operation handles the installing of an installable node.
 *  The operation installs one or more files in predefined order.
 *
 *  The install process is handled outside of Catalogs Engine, in the
 *  platform installer.
 *
 *  The platform installer has it's own ui, (which is initiated
 *  automatically) that gives the user more detailed progress information.
 *
 *  
 *  @see MNcdInstallOperationObserver
 *  @see MNcdNodeInstall
 */
class MNcdInstallOperation : public MNcdOperation
    {

public:
    
    /**
     * Unique identifier for the interface, required for all MCatalogsBase interfaces.
     *
     * 
     */
    enum { KInterfaceUid = ENcdInstallOperationUid };
    
    /**
     * Getter for file count. This is the total number of files this operation
     * is installing.
     *
     * 
     * @return Total number of files to be installed.
     */
    virtual TInt FileCount() = 0;
    
    /**
     * Getter for current file index. This is the index of the file that
     * is currently being installed.
     *
     * @return Number of the file currently being installed.
     */
    virtual TInt CurrentFile() = 0;
    
protected:

    /**
    * Destructor.
    *
    * @see MCatalogsBase::~MCatalogsBase
    */
    virtual ~MNcdInstallOperation() {}

    };
	
	
#endif //  M_NCD_INSTALL_OPERATION_H