|
1 /* |
|
2 * Copyright (c) 2005,2006 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 "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: Entity reference data class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_hspsDTDENTITY_H |
|
21 #define C_hspsDTDENTITY_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * Class represent dtd entity. |
|
31 * @ingroup group_hspsdefinitionengine |
|
32 * @lib hspsdefinitionengine.lib |
|
33 * @since Series 60 3.1 |
|
34 */ |
|
35 class ChspsDtdEntity : public CBase |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * Two-phased constructor. |
|
41 */ |
|
42 static ChspsDtdEntity* NewL(); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~ChspsDtdEntity(); |
|
48 |
|
49 public: // New functions |
|
50 |
|
51 /** |
|
52 * Set entity reference. |
|
53 * @since Series 60 3.1 |
|
54 * @param aEntity Entity reference name |
|
55 */ |
|
56 void SetEntityL( const TDesC8& aEntity ); |
|
57 |
|
58 /** |
|
59 * Get the name of the entity reference. |
|
60 * @since Series 60 3.1 |
|
61 * @return Reference to entity. |
|
62 */ |
|
63 const TDesC8& Entity(); |
|
64 |
|
65 /** |
|
66 * Set entity's value. |
|
67 * @since Series 60 3.1 |
|
68 * @param aValue Entity's value |
|
69 */ |
|
70 void SetValueL( const TDesC8& aValue ); |
|
71 |
|
72 /** |
|
73 * Get the value of the entity reference. |
|
74 * @since Series 60 3.1 |
|
75 * @return Reference to value. |
|
76 */ |
|
77 const TDesC8& Value(); |
|
78 |
|
79 private: |
|
80 |
|
81 /** |
|
82 * C++ default constructor. |
|
83 */ |
|
84 ChspsDtdEntity(); |
|
85 |
|
86 /** |
|
87 * By default Symbian 2nd phase constructor is private. |
|
88 */ |
|
89 void ConstructL(); |
|
90 |
|
91 |
|
92 private: // Data |
|
93 // Entity reference |
|
94 HBufC8* iEntity; |
|
95 // Entity reference value |
|
96 HBufC8* iValue; |
|
97 |
|
98 }; |
|
99 |
|
100 #endif // C_hspsDTDENTITY_H |
|
101 |
|
102 // End of File |