appinstaller/AppinstUi/Daemon/Inc/SilentLauncher.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:22:02 +0100
branchRCL_3
changeset 66 8b7f4e561641
parent 65 7333d7932ef7
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2002-2004 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:   This file contains the header file of the CSilentLauncher class.
*
*/


#ifndef SILENTLAUNCHER_H
#define SILENTLAUNCHER_H

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

namespace Swi
{

/**
* Class that handles the launching of installation of pre-installed apps.
* 
* @since 3.0 
*/
class CSilentLauncher : public CBase
    {
    public:  // Constructors and destructor
        
        /**
        * Two-phased constructor.
        */
        static CSilentLauncher* NewL( RFs& aFs );
        
        /**
        * Destructor.
        */
        virtual ~CSilentLauncher();

    public:  // New functions

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

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

        /**
        * Constructor.
        */  
        CSilentLauncher( RFs& aFs );
         
        /**
        * 2nd phase constructor.
        */
        void ConstructL();

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

        RFs& iFs;        
        TBool iConnected;
    };
}

#endif      // SILENTLAUNCHER_H   
            
// End of File