commonuis/CommonUi/inc/DocAppInstLauncher.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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:  header file for application installer launcher.  
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef DOCAPPINSTLAUCHER_H
       
    19 #define DOCAPPINSTLAUCHER_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <e32base.h>
       
    23 #include <SWInstApi.h>
       
    24 
       
    25 class RFile;
       
    26 
       
    27 NONSHARABLE_CLASS(CDocAppInstLauncher) : public CActive
       
    28     {
       
    29     public:  // Constructors and destructor
       
    30      
       
    31         /**
       
    32         * Two-phased constructor.
       
    33         */
       
    34         static CDocAppInstLauncher* NewL();
       
    35 
       
    36         /**
       
    37         * Destructor.
       
    38         */
       
    39         virtual ~CDocAppInstLauncher();
       
    40 
       
    41     public: // New functions
       
    42 
       
    43         /**
       
    44         * Handle install request.
       
    45         * @since 3.0
       
    46         */
       
    47         void InstallL( RFile& aFile );
       
    48         
       
    49         /**
       
    50         * Handle install request.
       
    51         * @since 3.0
       
    52         */
       
    53         void InstallL( RFile& aFile, const TDesC8& aOptions );
       
    54         
       
    55         /**
       
    56         * Registered exit observer will be informed when installer exits
       
    57         * @since 3.0
       
    58         */
       
    59         void SetExitObserver( MAknServerAppExitObserver* aObserver );
       
    60         
       
    61     public: // Functions from base classes
       
    62 
       
    63         /**
       
    64         * From CActive, Called by framework when request is finished.
       
    65         * @since 3.0
       
    66         */
       
    67         void RunL();
       
    68 
       
    69         /**
       
    70         * From CActive, Called by framework when request is cancelled.
       
    71         * @since 3.0
       
    72         */        
       
    73         void DoCancel();  
       
    74 
       
    75 
       
    76         /**
       
    77         * C++ default constructor.
       
    78         */
       
    79         CDocAppInstLauncher();
       
    80 
       
    81         /**
       
    82         * 2nd phase constructor.
       
    83         */
       
    84         void ConstructL();
       
    85                 
       
    86     private: // Data
       
    87 
       
    88         SwiUI::RSWInstLauncher iLauncher;    
       
    89         MAknServerAppExitObserver* iExitObserver;    
       
    90         TBool iCalledWithParams;        
       
    91     };
       
    92 
       
    93 
       
    94 #endif      
       
    95             
       
    96 // End of File