equal
deleted
inserted
replaced
|
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 #ifndef SISREGISTRYPROPERTY_H |
|
20 #define SISREGISTRYPROPERTY_H |
|
21 |
|
22 #include <istream> |
|
23 #include "serialisable.h" |
|
24 #include "symbiantypes.h" |
|
25 #include <vector> |
|
26 |
|
27 class Serialiser; |
|
28 class Deserialiser; |
|
29 class CSISProperty; |
|
30 /** |
|
31 * @file SISREGISTRYPROPERTY.H |
|
32 * |
|
33 * @internalComponent |
|
34 * @released |
|
35 */ |
|
36 class SisRegistryProperty : public Serialisable//<SisRegistryProperty> |
|
37 { |
|
38 public: |
|
39 /** |
|
40 Constructor |
|
41 */ |
|
42 SisRegistryProperty () {}; |
|
43 SisRegistryProperty(const CSISProperty& aProp); |
|
44 |
|
45 virtual ~SisRegistryProperty (); |
|
46 |
|
47 virtual void Internalize(Deserialiser& des); |
|
48 virtual void Externalize(Serialiser& ser); |
|
49 //virtual Serialisable* Make() { return new SisRegistryProperty; } |
|
50 |
|
51 TInt GetValue() const |
|
52 { return iValue; } |
|
53 |
|
54 void SetValue(TInt aValue) |
|
55 { iValue = aValue; } |
|
56 |
|
57 TInt GetKey() const |
|
58 { return iKey; } |
|
59 |
|
60 void SetKey(TInt aKey) |
|
61 { iKey = aKey; } |
|
62 |
|
63 private: |
|
64 TInt iKey; |
|
65 TInt iValue; |
|
66 }; |
|
67 |
|
68 |
|
69 #ifdef _MSC_VER |
|
70 |
|
71 Deserialiser& operator>>(Deserialiser& aInput, std::vector<SisRegistryProperty*>& val); |
|
72 |
|
73 #endif |
|
74 |
|
75 #endif /* SISREGISTRYPROPERTY_H */ |