iaupdate/IAD/updater/inc/iaupdatersilentlauncher.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) 2007 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:   Handles the launching of silent installation 
*
*/



#ifndef IAUPDATERSILENTLAUNCHER_H
#define IAUPDATERSILENTLAUNCHER_H

#include <e32base.h>
#include <f32file.h>
#include <SWInstApi.h>


/**
 * Class that handles the launching of silent installation.
 *
 *  @code   
 *  @endcode
 *  @lib 
 *  @since S60 
 */ 
class CIAUpdaterSilentLauncher : public CBase
    {
public:  
    
    /**
     * Two-phased constructor.
     */
    static CIAUpdaterSilentLauncher* NewL( RFs& aFs );
    
    /**
     * C++ Destructor.
     */
    virtual ~CIAUpdaterSilentLauncher();

public:  

    /**
     * Performs installation.
     *
     * @since 
     * @param aFile Name of the file to install
     * @param aStatus Request status
     */
    void InstallL( const TDesC& aFile, TRequestStatus& aStatus );

    /**
     * Cancel the current installation.
     *
     * @since
     */
    void Cancel();        
    
private:

    /**
     * C++ Constructor.
     */  
    CIAUpdaterSilentLauncher( RFs& aFs );
     
    /**
     * Constructor.
     */
    void ConstructL();

    /**
     * @return SwiUI::TInstallOptions Options that are used for
     * silent installation.
     */
    SwiUI::TInstallOptions SilentInstallOptionsL() const;

private: //  Data
        
    SwiUI::RSWInstSilentLauncher iLauncher;   
    
    SwiUI::TInstallOptionsPckg iOptionsPckg;   

    RFs& iFs;        
    
    TBool iConnected;
    };

#endif  // IAUPDATERSILENTLAUNCHER_H   
            
// EOF