equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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: SIMPLE data attribute |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef M_simpleattribute_H |
|
22 #define M_simpleattribute_H |
|
23 |
|
24 #include <e32std.h> |
|
25 |
|
26 // FORWARD DECLARATION |
|
27 |
|
28 |
|
29 /** |
|
30 * MSimpleAttribute |
|
31 * |
|
32 * SIMPLE data attribute |
|
33 * |
|
34 * @lib simplexmlutils |
|
35 * @since S60 v3.2 |
|
36 */ |
|
37 |
|
38 class MSimpleAttribute |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 /** |
|
44 * Getter for the attribute name. |
|
45 * @since S60 3.2 |
|
46 * @return the attribute name. |
|
47 */ |
|
48 virtual const TDesC8& Name() = 0; |
|
49 |
|
50 /** |
|
51 * Getter for the attribute value. |
|
52 * @since S60 3.1 |
|
53 * @return the attribute value, UTF-8 |
|
54 */ |
|
55 virtual const TDesC8& Value() = 0; |
|
56 |
|
57 /** |
|
58 * Getter for the attribute value in UNICODE. |
|
59 * @since S60 3.2 |
|
60 * @return the attribute value. Ownership is transferred. |
|
61 */ |
|
62 virtual HBufC* ValueUniLC() = 0; |
|
63 |
|
64 /** |
|
65 * Setter for the attribute value. |
|
66 * |
|
67 * @since S60 3.2 |
|
68 * @param aValue: value to be set, UNICODE |
|
69 */ |
|
70 virtual void SetValueL( const TDesC& aValue ) = 0; |
|
71 |
|
72 }; |
|
73 |
|
74 #endif |
|
75 |
|
76 // End of File |