|
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 * This file defines the component info structure of the Symbian native components. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalTechnology |
|
23 @released |
|
24 */ |
|
25 |
|
26 #ifndef NATIVECOMPONENTINFO_H |
|
27 #define NATIVECOMPONENTINFO_H |
|
28 |
|
29 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
30 #include <e32base.h> |
|
31 #include <s32strm.h> |
|
32 #include <usif/scr/scr.h> |
|
33 #include <usif/sif/sifcommon.h> |
|
34 |
|
35 namespace Swi |
|
36 { |
|
37 |
|
38 class CNativeComponentInfo : public CBase |
|
39 { |
|
40 public: |
|
41 /** |
|
42 Creates a new instance of the CNativeComponentInfo class. |
|
43 @leave System wide error code |
|
44 */ |
|
45 IMPORT_C static CNativeComponentInfo* NewL(); |
|
46 |
|
47 /** |
|
48 Creates a new instance of the CNativeComponentInfo class. |
|
49 @leave System wide error code |
|
50 */ |
|
51 IMPORT_C static CNativeComponentInfo* NewLC(); |
|
52 |
|
53 /** |
|
54 Destructor. |
|
55 */ |
|
56 IMPORT_C virtual ~CNativeComponentInfo(); |
|
57 |
|
58 /** |
|
59 * Internalizes the object from the given read stream. |
|
60 */ |
|
61 IMPORT_C void InternalizeL(RReadStream& aStream); |
|
62 |
|
63 /** |
|
64 * Externalizes the object to the given write stream. |
|
65 */ |
|
66 IMPORT_C void ExternalizeL(RWriteStream& aStream) const; |
|
67 |
|
68 private: |
|
69 // Constructor |
|
70 CNativeComponentInfo(); |
|
71 |
|
72 public: |
|
73 HBufC* iComponentName; ///< The name of the software component |
|
74 HBufC* iVersion; ///< The Version of the software component |
|
75 HBufC* iVendor; ///< The of the vendor of the software component |
|
76 HBufC* iGlobalComponentId; ///< The global id of the component if already installed |
|
77 Usif::TScomoState iScomoState; ///< The SCOMO status of the component |
|
78 Usif::TInstallStatus iInstallStatus; ///< Informs whether the component is already installed or upgradeable |
|
79 Usif::TComponentId iComponentId; ///< The unique id of the component if already installed |
|
80 Usif::TAuthenticity iAuthenticity; ///< The authenticity of the component |
|
81 TCapabilitySet iUserGrantableCaps; ///< User grantable capabilities required be the component |
|
82 TInt iMaxInstalledSize; ///< The maximum size of the component after installation |
|
83 TBool iHasExe; ///<Indicates Whether the component has an exe or not |
|
84 RCPointerArray<CNativeComponentInfo> iChildren; ///< The children component info, incase of embedded packages. |
|
85 |
|
86 }; |
|
87 } // nameSpace Swi |
|
88 #endif // SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
89 #endif // NATIVECOMPONENTINFO_H |