|
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 <SWInstApi.h> // RSWInstLauncher |
|
24 |
|
25 class ActiveRunner; |
|
26 class QString; |
|
27 |
|
28 |
|
29 class ActiveRunnerPrivate : public CActive |
|
30 { |
|
31 public: // constructor and destructor |
|
32 ActiveRunnerPrivate( ActiveRunner *aRunner ); |
|
33 ~ActiveRunnerPrivate(); |
|
34 |
|
35 public: // new functions |
|
36 TInt Initialize( bool aUseSif ); |
|
37 TInt Install( const QString& aFileName, bool aSilent, bool aOpenFile, bool aOcsp ); |
|
38 TInt Remove( const Usif::TComponentId& aComponentId, bool aSilent ); |
|
39 TInt Remove( const TUid& aUid, const TDesC8& aMime, bool aSilent ); |
|
40 |
|
41 protected: // from CActive |
|
42 void DoCancel(); |
|
43 void RunL(); |
|
44 TInt RunError(TInt aError); |
|
45 |
|
46 private: // new functions |
|
47 void DoInitializeL( bool aUseSif ); |
|
48 void DoInstallL( const QString& aFileName, bool aSilent, bool aOpenFile, bool aOcsp ); |
|
49 void DoRemoveL( const Usif::TComponentId& aComponentId, bool aSilent ); |
|
50 void DoRemoveL( const TUid& aUid, const TDesC8& aMime, bool aSilent ); |
|
51 |
|
52 private: // data |
|
53 ActiveRunner *q_ptr; |
|
54 RFs iFs; |
|
55 HBufC* iFileName; |
|
56 TBool iUseSif; |
|
57 Usif::COpaqueNamedParams *iArguments; |
|
58 Usif::COpaqueNamedParams *iResults; |
|
59 Usif::RSoftwareInstall iSoftwareInstall; |
|
60 SwiUI::RSWInstLauncher iSWInstLauncher; |
|
61 }; |
|
62 |
|
63 #endif // ACTIVERUNNERPRIVATE_H |
|
64 |