|
1 /* |
|
2 * Copyright (c) 2005-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 @internalComponent |
|
22 */ |
|
23 |
|
24 #ifndef __REGISTRYPACKAGE_H__ |
|
25 #define __REGISTRYPACKAGE_H__ |
|
26 |
|
27 #pragma warning( disable : 4786) |
|
28 |
|
29 #include "streamreader.h" |
|
30 #include "dumpswiregistrytool.h" |
|
31 |
|
32 class StreamReader ; |
|
33 |
|
34 /** |
|
35 * The RegistryPackage class extracts the package uid , package name and vendor name |
|
36 * and displays the same. |
|
37 * @internalComponent |
|
38 */ |
|
39 |
|
40 class RegistryPackage |
|
41 { |
|
42 public: |
|
43 |
|
44 RegistryPackage() ; |
|
45 |
|
46 ~RegistryPackage() ; |
|
47 |
|
48 /** |
|
49 Extracts the package uid , package name , vendor name from the registry file . |
|
50 */ |
|
51 void ExtractPackage(StreamReader& aReader); |
|
52 |
|
53 /** |
|
54 Returns Package UID as read from the registry file . |
|
55 */ |
|
56 unsigned int PkgUID () const { return iUid ; } |
|
57 |
|
58 /** |
|
59 Returns Package Name as read from the registry file . |
|
60 */ |
|
61 char* PackageName () const { return iPkgName ; } |
|
62 |
|
63 /** |
|
64 Returns Vendor Name as read from the registry file . |
|
65 */ |
|
66 char* Vendor () const { return iVendorName ; } |
|
67 |
|
68 /** |
|
69 Returns Package Index as read from the registry file . |
|
70 */ |
|
71 unsigned int Index () const { return iPkgIndex ; } |
|
72 |
|
73 /** |
|
74 Displays the Package UID , Package Name and Vendor Name . |
|
75 */ |
|
76 void DisplayPackage() ; |
|
77 |
|
78 private: |
|
79 |
|
80 unsigned int iUid ; |
|
81 char* iPkgName ; |
|
82 char* iVendorName ; |
|
83 unsigned int iPkgIndex ; |
|
84 }; |
|
85 |
|
86 #endif |