ncdengine/provider/client/inc/ncdsilentinstalloperationproxy.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:22:02 +0100
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* 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:   CNcdSilentInstallOperationProxy declaration
*
*/


#ifndef C_NCDSILENTINSTALLOPERATIONPROXY_H	
#define C_NCDSILENTINSTALLOPERATIONPROXY_H	

#include <e32cmn.h>

// For silent install options and options package
#include <SWInstDefs.h>

#include "ncdinstalloperationproxy.h"



class CNcdSilentInstallOperationProxy : public CNcdInstallOperationProxy
    {
public:

    /**
     * Constructor
     *
     * @param aSession is the session that is used between
     *                 the proxy and the server.
     * @param aDownloadType Download type
     * @param aHandle is the handle that identifies the serverside
     *                object that this proxy uses.
     * @param aRemoveHandler An observer that is called during destruction.
     * @param aNode The node this operation was started from.
     * @param aInstallOptions These options are used for the silent install.
     */    
    static CNcdSilentInstallOperationProxy* NewLC( MCatalogsClientServer& aSession,                        
                        TInt aHandle,
                        MNcdOperationProxyRemoveHandler* aRemoveHandler,
                        CNcdNodeProxy* aNode,
                        CNcdNodeManagerProxy* aNodeManager,
                        MNcdInstallOperationObserver* aObserver,
                        MNcdInstallationService& aInstallationService,
                        const SwiUI::TInstallOptions& aInstallOptions );


protected: // CActive

    /**
     * @see CActive::DoCancel
     */    
    void DoCancel();

    
protected:

    /**
     * Constructor
     *
     * @see NewLC
     */
    CNcdSilentInstallOperationProxy( MNcdInstallationService& aInstallationService,
                                     const SwiUI::TInstallOptions& aInstallOptions );
    
    virtual ~CNcdSilentInstallOperationProxy();


    /**
     * ConstructL
     *
     * @param aSession is the session that is used between
     *                 the proxy and the server.
     * @param aHandle is the handle that identifies the serverside
     *                object that this proxy uses.
     * @param aRemoveHandler An observer that is called during destruction.
     * @param aNode The node this operation was started from.
     */
    void ConstructL( MCatalogsClientServer& aSession,
                    TInt aHandle,
                    MNcdOperationProxyRemoveHandler* aRemoveHandler,
                    CNcdNodeProxy* aNode,
                    CNcdNodeManagerProxy* aNodeManager,
                    MNcdInstallOperationObserver* aObserver );
    

    /**
     * @see CNcdInstallOperationProxy::UseInstallServiceL
     */
    virtual void UseInstallServiceL( const CNcdFileInfo& aFile );
    
    /**
     * @return const SwiUI::TInstallOptionsPckg& Contains the install options 
     * for silent install in a data buffer.
     */
    const SwiUI::TInstallOptionsPckg& SilentInstallOptionsPackage() const;
    
    
private: // new methods

    // Prevent these if not implemented
    CNcdSilentInstallOperationProxy( const CNcdSilentInstallOperationProxy& aObject );
    CNcdSilentInstallOperationProxy& operator =( const CNcdSilentInstallOperationProxy& aObject );
    

private: // data

    // This will contain the install options for silent install in a data buffer.
    SwiUI::TInstallOptionsPckg iInstallOptionsPackage;

    };

#endif // C_NCDSILENTINSTALLOPERATIONPROXY_H