1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent - Internal Symbian test code |
|
19 */ |
|
20 |
|
21 #ifndef __T_SISFILEINSTALLER_H |
|
22 #define __T_SISFILEINSTALLER_H |
|
23 |
|
24 #include "appfwk_test_appui.h" |
|
25 #include "apparctestserver.h" |
|
26 #include "testableapalssession.h" |
|
27 |
|
28 #include <usif/sif/sif.h> |
|
29 #include <usif/scr/screntries.h> |
|
30 #include <usif/sif/siftransportclient.h> |
|
31 #include <usif/sif/sifcommon.h> |
|
32 #include <scs/scsclient.h> |
|
33 #include <usif/usifcommon.h> |
|
34 #include <usif/scr/scr.h> |
|
35 #include <e32std.h> |
|
36 #include <scs/scscommon.h> |
|
37 #include <scs/scsserver.h> |
|
38 #include <e32const.h> |
|
39 |
|
40 //! CTestAppSisFile |
|
41 /*! |
|
42 This class is used for install and uninstall of sis files |
|
43 */ |
|
44 class CSisFileInstaller: public CBase |
|
45 { |
|
46 public: |
|
47 CSisFileInstaller(); |
|
48 ~CSisFileInstaller(); |
|
49 |
|
50 TInt InstallSisL(const TDesC& aFileName); |
|
51 TInt InstallSisAndWaitForAppListUpdateL(const TDesC& aFileName); |
|
52 TInt UninstallSisL(const TDesC& aComponentName); |
|
53 TInt UninstallSisAndWaitForAppListUpdateL(const TDesC& aComponentName); |
|
54 TInt FindComponentInScrL(const TDesC& aComponentName, const TDesC& aVendor); |
|
55 void CancelInstallation(); |
|
56 TInt InstallSisAsynchronouslyL(const TDesC& aFileName, TRequestStatus& status); |
|
57 void Close(); |
|
58 private: |
|
59 friend class CSifOperationStep; |
|
60 Usif::RSoftwareInstall iSif; |
|
61 Usif::TComponentId iComponentId; |
|
62 TRequestStatus iStatus; |
|
63 }; |
|
64 |
|
65 #endif |
|