appinstaller/AppinstUi/Daemon/Inc/SilentLauncher.h
changeset 0 ba25891c3a9e
child 25 7333d7932ef7
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   This file contains the header file of the CSilentLauncher class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SILENTLAUNCHER_H
       
    20 #define SILENTLAUNCHER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <f32file.h>
       
    25 #include <SWInstApi.h>
       
    26 
       
    27 namespace Swi
       
    28 {
       
    29 
       
    30 /**
       
    31 * Class that handles the launching of installation of pre-installed apps.
       
    32 * 
       
    33 * @since 3.0 
       
    34 */
       
    35 class CSilentLauncher : public CBase
       
    36     {
       
    37     public:  // Constructors and destructor
       
    38         
       
    39         /**
       
    40         * Two-phased constructor.
       
    41         */
       
    42         static CSilentLauncher* NewL( RFs& aFs );
       
    43         
       
    44         /**
       
    45         * Destructor.
       
    46         */
       
    47         virtual ~CSilentLauncher();
       
    48 
       
    49     public:  // New functions
       
    50 
       
    51         /**
       
    52         * Perform installation.
       
    53         * @since 3.0
       
    54         * @param aFile - Name of the file to install
       
    55         * @param aStatus - Request status
       
    56         */
       
    57         void InstallL( const TDesC& aFile, TRequestStatus& aStatus );
       
    58 
       
    59         /**
       
    60         * Cancel the current installation.
       
    61         * @since 3.0
       
    62         */
       
    63         void Cancel();        
       
    64         
       
    65     private:
       
    66 
       
    67         /**
       
    68         * Constructor.
       
    69         */  
       
    70         CSilentLauncher( RFs& aFs );
       
    71          
       
    72         /**
       
    73         * 2nd phase constructor.
       
    74         */
       
    75         void ConstructL();
       
    76 
       
    77     private: //  Data
       
    78             
       
    79         SwiUI::RSWInstSilentLauncher iLauncher;    
       
    80         SwiUI::TInstallOptions iOptions;
       
    81         SwiUI::TInstallOptionsPckg iOptionsPckg;   
       
    82 
       
    83         RFs& iFs;        
       
    84         TBool iConnected;
       
    85     };
       
    86 }
       
    87 
       
    88 #endif      // SILENTLAUNCHER_H   
       
    89             
       
    90 // End of File