appinstaller/AppinstUi/Daemon/Inc/SilentLauncher.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 /*
     1 /*
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2002-2004 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>
       
    28 
    26 
    29 namespace Swi
    27 namespace Swi
    30 {
    28 {
    31 
    29 
    32 /**
    30 /**
    54         * Perform installation.
    52         * Perform installation.
    55         * @since 3.0
    53         * @since 3.0
    56         * @param aFile - Name of the file to install
    54         * @param aFile - Name of the file to install
    57         * @param aStatus - Request status
    55         * @param aStatus - Request status
    58         */
    56         */
    59        // void InstallL( const TDesC& aFile, TRequestStatus& aStatus );
    57         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 );
       
    70 
    58 
    71         /**
    59         /**
    72         * Cancel the current installation.
    60         * Cancel the current installation.
    73         * @since 3.0
    61         * @since 3.0
    74         */
    62         */
    83          
    71          
    84         /**
    72         /**
    85         * 2nd phase constructor.
    73         * 2nd phase constructor.
    86         */
    74         */
    87         void ConstructL();
    75         void ConstructL();
    88                   
       
    89 
    76 
    90     private: //  Data
    77     private: //  Data
    91         
    78             
    92         // SW installer framework
    79         SwiUI::RSWInstSilentLauncher iLauncher;    
    93         Usif::RSoftwareInstall iSWInstallerFW;
    80         SwiUI::TInstallOptions iOptions;
    94         // Install parameters
    81         SwiUI::TInstallOptionsPckg iOptionsPckg;   
    95         Usif::COpaqueNamedParams* iSifOptions;
    82 
    96         // Result parameters like error codes.
    83         RFs& iFs;        
    97         Usif::COpaqueNamedParams* iSifResults;
    84         TBool iConnected;
    98         // File server
       
    99         RFs& iFs;
       
   100         // Defines if we have connected to SWI server.
       
   101         TBool iConnected;   
       
   102         
       
   103         HBufC* iDrive;
       
   104     };
    85     };
   105 }
    86 }
   106 
    87 
   107 #endif      // SILENTLAUNCHER_H   
    88 #endif      // SILENTLAUNCHER_H   
   108             
    89