|
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 #ifndef TRUSTSTATUS_H |
|
20 #define TRUSTSTATUS_H |
|
21 |
|
22 #include <istream> |
|
23 #include "serialisable.h" |
|
24 #include "symbiantypes.h" |
|
25 |
|
26 class Serialiser; |
|
27 class Deserialiser; |
|
28 /** |
|
29 * @file TRUSTSTATUS.H |
|
30 * |
|
31 * @internalComponent |
|
32 * @released |
|
33 */ |
|
34 class TrustStatus : public Serialisable |
|
35 { |
|
36 public: |
|
37 /** |
|
38 Constructor |
|
39 @param aFileContents The input stream |
|
40 */ |
|
41 TrustStatus (); |
|
42 virtual ~TrustStatus (); |
|
43 |
|
44 virtual void Internalize(Deserialiser& des); |
|
45 virtual void Externalize(Serialiser& ser); |
|
46 |
|
47 TUint64 GetQuaratinedDate() |
|
48 { return iQuaratinedDate; } |
|
49 |
|
50 void SetQuaratinedDate(TUint64& aQuaratinedDate) |
|
51 { iQuaratinedDate = aQuaratinedDate; } |
|
52 |
|
53 TUint32 GetQuaratined() |
|
54 { return iQuaratined; } |
|
55 |
|
56 void SetQuaratined(TUint32 aQuaratined) |
|
57 { iQuaratined = aQuaratined; } |
|
58 |
|
59 TUint64 GetLastCheckDate() |
|
60 { return iLastCheckDate; } |
|
61 |
|
62 void SetLastCheckDate(TUint64& aLastCheckDate) |
|
63 { iLastCheckDate = aLastCheckDate; } |
|
64 |
|
65 TUint64 GetResultDate() |
|
66 { return iResultDate; } |
|
67 |
|
68 void SetResultDate(TUint64& aResultDate) |
|
69 { iResultDate = aResultDate; } |
|
70 |
|
71 TUint32 GetRevocationStatus() |
|
72 { return iRevocationStatus; } |
|
73 |
|
74 void SetRevocationStatus(TUint32 aRevocationStatus) |
|
75 { iRevocationStatus = aRevocationStatus; } |
|
76 |
|
77 TUint32 GetValidationStatus() |
|
78 { return iValidationStatus; } |
|
79 |
|
80 void SetValidationStatus(TUint32 aValidationStatus) |
|
81 { iValidationStatus = aValidationStatus; } |
|
82 |
|
83 /// from swi/sistruststatus.h |
|
84 static const TUint32 KOcspNotPerformed; |
|
85 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
86 static const TUint32 KValidationStatusUnknown; |
|
87 #endif |
|
88 static const TUint32 KValidatedToAnchor; |
|
89 static const TUint32 KPackageInRom; |
|
90 |
|
91 private: |
|
92 TUint32 iValidationStatus; |
|
93 TUint32 iRevocationStatus; |
|
94 TUint64 iResultDate; |
|
95 TUint64 iLastCheckDate; |
|
96 TUint32 iQuaratined; |
|
97 TUint64 iQuaratinedDate; |
|
98 |
|
99 }; |
|
100 |
|
101 #endif /* TRUSTSTATUS_H */ |