appinstaller/AppinstUi/sisxsifplugin/tsrc/testinstaller/activerunner_symbian.h
changeset 25 98b66e4fb0be
child 29 26b6f0522fd8
equal deleted inserted replaced
24:84a16765cd86 25:98b66e4fb0be
       
     1 /*
       
     2 * Copyright (c) 2010 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:  Test installer that uses Usif::RSoftwareInstall API.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef ACTIVERUNNERPRIVATE_H
       
    19 #define ACTIVERUNNERPRIVATE_H
       
    20 
       
    21 #include <e32base.h>            // CActive
       
    22 #include <usif/sif/sif.h>       // Usif::RSoftwareInstall
       
    23 #include <usif/sif/sif.h>       // Usif::RSoftwareInstall
       
    24 #include <SWInstApi.h>          // RSWInstLauncher
       
    25 
       
    26 class ActiveRunner;
       
    27 class QString;
       
    28 
       
    29 
       
    30 class ActiveRunnerPrivate : public CActive
       
    31 {
       
    32 public:     // constructor and destructor
       
    33     ActiveRunnerPrivate(ActiveRunner *aRunner);
       
    34     ~ActiveRunnerPrivate();
       
    35 
       
    36 public:     // new functions
       
    37     TInt Initialize( bool aUseSif );
       
    38     TInt Install( const QString& aFileName, bool aSilent );
       
    39 
       
    40 protected:  // from CActive
       
    41     void DoCancel();
       
    42     void RunL();
       
    43     TInt RunError(TInt aError);
       
    44 
       
    45 private:    // new functions
       
    46     void DoInstallL( const QString& aFileName, bool aSilent );
       
    47 
       
    48 private:    // data
       
    49     ActiveRunner *q_ptr;
       
    50     HBufC* iFileName;
       
    51     TBool iUseSif;
       
    52     Usif::COpaqueNamedParams *iArguments;
       
    53     Usif::COpaqueNamedParams *iResults;
       
    54     Usif::RSoftwareInstall iSoftwareInstall;
       
    55     SwiUI::RSWInstLauncher iSWInstLauncher;
       
    56 };
       
    57 
       
    58 #endif  // ACTIVERUNNERPRIVATE_H
       
    59