65 /** |
65 /** |
66 * Two-phased constructor. |
66 * Two-phased constructor. |
67 */ |
67 */ |
68 IMPORT_C static CXnDomProperty* NewL( |
68 IMPORT_C static CXnDomProperty* NewL( |
69 const TDesC8& aName, |
69 const TDesC8& aName, |
70 CXnDomStringPool& aStringPool ); |
70 CXnDomStringPool* aStringPool ); |
71 |
71 |
72 /** |
72 /** |
73 * Two-phased stream constructor. |
73 * Two-phased stream constructor. |
74 */ |
74 */ |
75 static CXnDomProperty* NewL( |
75 static CXnDomProperty* NewL( |
76 RReadStream& aStream, |
76 RReadStream& aStream, |
77 CXnDomStringPool& aStringPool ); |
77 CXnDomStringPool* aStringPool ); |
78 /** |
78 /** |
79 * Two-phased constructor. |
79 * Two-phased constructor. |
80 */ |
80 */ |
81 IMPORT_C static CXnDomProperty* NewL( |
81 IMPORT_C static CXnDomProperty* NewL( |
82 TInt16 aStringPoolIndex, |
82 TInt16 aStringPoolIndex, |
83 CXnDomStringPool& aStringPool ); |
83 CXnDomStringPool* aStringPool ); |
84 /** |
84 /** |
85 * Destructor. |
85 * Destructor. |
86 */ |
86 */ |
87 IMPORT_C virtual ~CXnDomProperty(); |
87 IMPORT_C virtual ~CXnDomProperty(); |
88 |
88 |
129 * @param aInherited ETrue inherit capable |
129 * @param aInherited ETrue inherit capable |
130 */ |
130 */ |
131 IMPORT_C void SetInherited( TBool aInherited ); |
131 IMPORT_C void SetInherited( TBool aInherited ); |
132 |
132 |
133 /** |
133 /** |
134 * Get reference to the dom's string pool. |
134 * Get pointer to the dom's string pool. |
135 * @since Series 60 3.1 |
135 * @since Series 60 3.1 |
136 * @return Reference to string pool |
136 * @return Reference to string pool |
137 */ |
137 */ |
138 IMPORT_C CXnDomStringPool& StringPool() const; |
138 IMPORT_C CXnDomStringPool* StringPool() const; |
139 |
139 |
140 /** |
140 /** |
141 * Get the property's string pool index. |
141 * Get the property's string pool index. |
142 * @since Series 60 3.1 |
142 * @since Series 60 3.1 |
143 * @return String pool index. |
143 * @return String pool index. |
144 */ |
144 */ |
145 IMPORT_C TInt16 StringPoolIndex()const; |
145 IMPORT_C TInt16 StringPoolIndex()const; |
|
146 |
|
147 /** |
|
148 * Swap used string pool. |
|
149 * |
|
150 * @param aStringPool New string pool to be used. |
|
151 * Ownership not transferred! |
|
152 */ |
|
153 IMPORT_C void SwapStringPoolL( CXnDomStringPool* aStringPool ); |
146 |
154 |
147 public: //Pseudo class utility |
155 public: //Pseudo class utility |
148 /** |
156 /** |
149 * Get value's pseudo class |
157 * Get value's pseudo class |
150 * @since Series 60 3.1 |
158 * @since Series 60 3.1 |
184 private: |
192 private: |
185 |
193 |
186 /** |
194 /** |
187 * C++ default constructor. |
195 * C++ default constructor. |
188 */ |
196 */ |
189 CXnDomProperty( CXnDomStringPool& aStringPool); |
197 CXnDomProperty( CXnDomStringPool* aStringPool); |
190 |
198 |
191 /** |
199 /** |
192 * C++ constructor with string pool index. |
200 * C++ constructor with string pool index. |
193 */ |
201 */ |
194 CXnDomProperty( TInt16 aStringPoolIndex, CXnDomStringPool& aStringPool); |
202 CXnDomProperty( TInt16 aStringPoolIndex, CXnDomStringPool* aStringPool); |
195 |
203 |
196 /** |
204 /** |
197 * By default Symbian 2nd phase constructor is private. |
205 * By default Symbian 2nd phase constructor is private. |
198 */ |
206 */ |
199 void ConstructL( const TDesC8& aName ); |
207 void ConstructL( const TDesC8& aName ); |
203 */ |
211 */ |
204 void ConstructL(); |
212 void ConstructL(); |
205 |
213 |
206 private: // Data |
214 private: // Data |
207 //String pool to get string for references, not owned |
215 //String pool to get string for references, not owned |
208 CXnDomStringPool& iStringPool; |
216 CXnDomStringPool* iStringPool; |
209 |
217 |
210 // Pseudo class type for value |
218 // Pseudo class type for value |
211 TPseudoClass iPseudoClass; |
219 TPseudoClass iPseudoClass; |
212 |
220 |
213 //Property's name reference to string pool |
221 //Property's name reference to string pool |