iaupdate/IAD/updater/inc/iaupdatersilentlauncher.h
changeset 0 ba25891c3a9e
child 25 7333d7932ef7
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2007 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:   Handles the launching of silent installation 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef IAUPDATERSILENTLAUNCHER_H
       
    21 #define IAUPDATERSILENTLAUNCHER_H
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <f32file.h>
       
    25 #include <SWInstApi.h>
       
    26 
       
    27 
       
    28 /**
       
    29  * Class that handles the launching of silent installation.
       
    30  *
       
    31  *  @code   
       
    32  *  @endcode
       
    33  *  @lib 
       
    34  *  @since S60 
       
    35  */ 
       
    36 class CIAUpdaterSilentLauncher : public CBase
       
    37     {
       
    38 public:  
       
    39     
       
    40     /**
       
    41      * Two-phased constructor.
       
    42      */
       
    43     static CIAUpdaterSilentLauncher* NewL( RFs& aFs );
       
    44     
       
    45     /**
       
    46      * C++ Destructor.
       
    47      */
       
    48     virtual ~CIAUpdaterSilentLauncher();
       
    49 
       
    50 public:  
       
    51 
       
    52     /**
       
    53      * Performs installation.
       
    54      *
       
    55      * @since 
       
    56      * @param aFile Name of the file to install
       
    57      * @param aStatus Request status
       
    58      */
       
    59     void InstallL( const TDesC& aFile, TRequestStatus& aStatus );
       
    60 
       
    61     /**
       
    62      * Cancel the current installation.
       
    63      *
       
    64      * @since
       
    65      */
       
    66     void Cancel();        
       
    67     
       
    68 private:
       
    69 
       
    70     /**
       
    71      * C++ Constructor.
       
    72      */  
       
    73     CIAUpdaterSilentLauncher( RFs& aFs );
       
    74      
       
    75     /**
       
    76      * Constructor.
       
    77      */
       
    78     void ConstructL();
       
    79 
       
    80     /**
       
    81      * @return SwiUI::TInstallOptions Options that are used for
       
    82      * silent installation.
       
    83      */
       
    84     SwiUI::TInstallOptions SilentInstallOptionsL() const;
       
    85 
       
    86 private: //  Data
       
    87         
       
    88     SwiUI::RSWInstSilentLauncher iLauncher;   
       
    89     
       
    90     SwiUI::TInstallOptionsPckg iOptionsPckg;   
       
    91 
       
    92     RFs& iFs;        
       
    93     
       
    94     TBool iConnected;
       
    95     };
       
    96 
       
    97 #endif  // IAUPDATERSILENTLAUNCHER_H   
       
    98             
       
    99 // EOF