|
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 document |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef M_simplecontent_H |
|
22 #define M_simplecontent_H |
|
23 |
|
24 #include <e32std.h> |
|
25 // #include <S32strm.h> |
|
26 |
|
27 // FORWARD DECLARATION |
|
28 |
|
29 |
|
30 |
|
31 /** |
|
32 * MSimpleContent |
|
33 * |
|
34 * SIMPLE data direct content |
|
35 * |
|
36 * @lib simplexmlutils |
|
37 * @since S60 3.2 |
|
38 */ |
|
39 |
|
40 class MSimpleContent |
|
41 { |
|
42 |
|
43 public: |
|
44 |
|
45 /** |
|
46 * Destructor |
|
47 */ |
|
48 virtual void Close() = 0; |
|
49 |
|
50 /** |
|
51 * Data accessor |
|
52 * |
|
53 * @since S60 ?S60_version |
|
54 * @return data |
|
55 */ |
|
56 virtual TPtrC8 Body() = 0; |
|
57 |
|
58 /** |
|
59 * Data accessor |
|
60 * |
|
61 * @since S60 ?S60_version |
|
62 * @return data, ownership is transferred |
|
63 */ |
|
64 virtual HBufC8* GiveBodyOwnerShip() = 0; |
|
65 |
|
66 /** |
|
67 * Data setter |
|
68 * |
|
69 * @since S60 ?S60_version |
|
70 * @param aData data to be copied |
|
71 */ |
|
72 virtual void CopyBodyL( const TDesC8& aData ) = 0; |
|
73 |
|
74 /** |
|
75 * Data setter |
|
76 * |
|
77 * @since S60 ?S60_version |
|
78 * @param aData data, ownetship is taken. |
|
79 */ |
|
80 virtual void SetBody( HBufC8* aData ) = 0; |
|
81 |
|
82 /** |
|
83 * content-id accessor, without "<"...">" characters |
|
84 * @return content-id |
|
85 */ |
|
86 virtual TPtrC8 ContentID() = 0; |
|
87 |
|
88 /** |
|
89 * content-type accessor |
|
90 * @return content-type |
|
91 */ |
|
92 virtual TPtrC8 ContentType() = 0; |
|
93 |
|
94 |
|
95 }; |
|
96 |
|
97 #endif |
|
98 |
|
99 // End of File |