|
1 /* |
|
2 * Copyright (c) 2006-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 #ifndef CONTROLLERINFO_H |
|
21 #define CONTROLLERINFO_H |
|
22 |
|
23 // System includes |
|
24 #include <istream> |
|
25 |
|
26 // User includes |
|
27 #include "serialisable.h" |
|
28 #include "symbiantypes.h" |
|
29 #include "version.h" |
|
30 #include "hashcontainer.h" |
|
31 |
|
32 |
|
33 // Forward Declarations |
|
34 class CSISController; |
|
35 class Serialiser; |
|
36 class Deserialiser; |
|
37 /** |
|
38 * @file CONTROLLERINFO.H |
|
39 * |
|
40 * @internalComponent |
|
41 * @released |
|
42 */ |
|
43 class ControllerInfo : public Serialisable//<ControllerInfo> |
|
44 { |
|
45 public: |
|
46 /** |
|
47 Constructor |
|
48 @param aFileContents The input stream |
|
49 */ |
|
50 ControllerInfo () {}; |
|
51 virtual ~ControllerInfo (); |
|
52 |
|
53 virtual void Internalize(Deserialiser& des); |
|
54 virtual void Externalize(Serialiser& ser); |
|
55 |
|
56 void CalculateAndSetHash(const CSISController& aController, |
|
57 TUint16 aRegFileMajorVersion, |
|
58 TUint16 aRegFileMinorVersion); |
|
59 |
|
60 const HashContainer& GetHashContainer() const |
|
61 { return iHashContainer; } |
|
62 |
|
63 void SetHashContainer(const HashContainer& aHashContainer) |
|
64 { iHashContainer = aHashContainer; } |
|
65 |
|
66 TInt GetOffset() const |
|
67 { return iOffset; } |
|
68 |
|
69 void SetOffset(TInt aOffset) |
|
70 { iOffset = aOffset; } |
|
71 |
|
72 const Version& GetVersion() const |
|
73 { return iVersion; } |
|
74 |
|
75 void SetVersion(const Version& aVersion) |
|
76 { iVersion = aVersion; } |
|
77 |
|
78 private: |
|
79 Version iVersion; |
|
80 TInt iOffset; |
|
81 HashContainer iHashContainer; |
|
82 }; |
|
83 |
|
84 |
|
85 #ifdef _MSC_VER |
|
86 |
|
87 Deserialiser& operator>>(Deserialiser& aInput, std::vector<ControllerInfo*>& val); |
|
88 |
|
89 #endif |
|
90 |
|
91 #endif /* CONTROLLERINFO_H */ |