appinstaller/AppinstUi/Daemon/Inc/SilentLauncher.h
branchRCL_3
changeset 25 7333d7932ef7
parent 0 ba25891c3a9e
child 26 8b7f4e561641
equal deleted inserted replaced
24:5cc91383ab1e 25:7333d7932ef7
     1 /*
     1 /*
     2 * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    21 
    21 
    22 //  INCLUDES
    22 //  INCLUDES
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 #include <f32file.h>
    24 #include <f32file.h>
    25 #include <SWInstApi.h>
    25 #include <SWInstApi.h>
       
    26 #include <usif/sif/sif.h>
       
    27 #include <usif/sif/sifcommon.h>
    26 
    28 
    27 namespace Swi
    29 namespace Swi
    28 {
    30 {
    29 
    31 
    30 /**
    32 /**
    52         * Perform installation.
    54         * Perform installation.
    53         * @since 3.0
    55         * @since 3.0
    54         * @param aFile - Name of the file to install
    56         * @param aFile - Name of the file to install
    55         * @param aStatus - Request status
    57         * @param aStatus - Request status
    56         */
    58         */
    57         void InstallL( const TDesC& aFile, TRequestStatus& aStatus );
    59        // void InstallL( const TDesC& aFile, TRequestStatus& aStatus );
       
    60  
       
    61         /**
       
    62         * Perform installation with file handle.
       
    63         * @since 10.1
       
    64         * @param aFileHandle - Handle of the file to be installed 
       
    65         * @param aStatus - Request status
       
    66         */
       
    67         void InstallL( RFile& aFileHandle, 
       
    68                        const TDesC& aFile, 
       
    69                        TRequestStatus& aStatus );
    58 
    70 
    59         /**
    71         /**
    60         * Cancel the current installation.
    72         * Cancel the current installation.
    61         * @since 3.0
    73         * @since 3.0
    62         */
    74         */
    71          
    83          
    72         /**
    84         /**
    73         * 2nd phase constructor.
    85         * 2nd phase constructor.
    74         */
    86         */
    75         void ConstructL();
    87         void ConstructL();
       
    88                   
    76 
    89 
    77     private: //  Data
    90     private: //  Data
    78             
    91         
    79         SwiUI::RSWInstSilentLauncher iLauncher;    
    92         // SW installer framework
    80         SwiUI::TInstallOptions iOptions;
    93         Usif::RSoftwareInstall iSWInstallerFW;
    81         SwiUI::TInstallOptionsPckg iOptionsPckg;   
    94         // Install parameters
    82 
    95         Usif::COpaqueNamedParams* iSifOptions;
    83         RFs& iFs;        
    96         // Result parameters like error codes.
    84         TBool iConnected;
    97         Usif::COpaqueNamedParams* iSifResults;
       
    98         // File server
       
    99         RFs& iFs;
       
   100         // Defines if we have connected to SWI server.
       
   101         TBool iConnected;   
       
   102         
       
   103         HBufC* iDrive;
    85     };
   104     };
    86 }
   105 }
    87 
   106 
    88 #endif      // SILENTLAUNCHER_H   
   107 #endif      // SILENTLAUNCHER_H   
    89             
   108