|
1 /* |
|
2 * Copyright (c) 2008-2009 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 the License "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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /** |
|
20 @file |
|
21 @publishedPartner |
|
22 @released |
|
23 */ |
|
24 #ifndef __INTERPRETSIS_H__ |
|
25 #define __INTERPRETSIS_H__ |
|
26 |
|
27 #include <iostream> |
|
28 #include <memory> |
|
29 |
|
30 #include "parameterlist.h" |
|
31 #include "rommanager.h" |
|
32 #include "configmanager.h" |
|
33 #include "sisregistry.h" |
|
34 #include "installer.h" |
|
35 |
|
36 |
|
37 class CInterpretSIS |
|
38 { |
|
39 public: |
|
40 typedef std::auto_ptr<CParameterList> TParamPtr; |
|
41 typedef std::auto_ptr<RomManager> TRomManagerPtr; |
|
42 public: |
|
43 /** |
|
44 * Constructor |
|
45 * |
|
46 * @param aParamList parameters used for installation. |
|
47 * This class takes ownership of the instance (of type |
|
48 * CParameterList) pointed by aParamList. |
|
49 */ |
|
50 CInterpretSIS(TParamPtr aParamList); |
|
51 /** |
|
52 * Cleanup owned resources |
|
53 */ |
|
54 ~CInterpretSIS(); |
|
55 |
|
56 public: |
|
57 /** |
|
58 * Install the SIS files present specified while creating this class. |
|
59 */ |
|
60 int Install(); |
|
61 /** |
|
62 * Un-install installed applications specified while creating this class. |
|
63 */ |
|
64 void Uninstall(); |
|
65 |
|
66 private: |
|
67 void ConstructL(); |
|
68 |
|
69 private: |
|
70 TParamPtr iParamList; |
|
71 TRomManagerPtr iRomManager; |
|
72 ConfigManager* iConfigManager; |
|
73 SisRegistry* iSisRegistry; |
|
74 Installer* iInstaller; |
|
75 }; |
|
76 |
|
77 #endif //__INTERPRETSIS_H__ |