|
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 Engine presence list meta data |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef M_simplemeta_H |
|
22 #define M_simplemeta_H |
|
23 |
|
24 #include <e32std.h> |
|
25 #include <msimpleelement.h> |
|
26 |
|
27 // FORWARD DECLARATION |
|
28 class MSimpleNamespace; |
|
29 |
|
30 /** |
|
31 * MSimpleMeta |
|
32 * |
|
33 * SIMPLE Engine presence list meta data |
|
34 * |
|
35 * @lib simplexmlutils |
|
36 * @since S60 3.2 |
|
37 */ |
|
38 |
|
39 class MSimpleMeta : public MSimpleElement |
|
40 { |
|
41 |
|
42 public: |
|
43 |
|
44 /** |
|
45 * Meta data namespace accessor. |
|
46 * |
|
47 * @since S60 3.2 |
|
48 * @return default namespace URI |
|
49 */ |
|
50 virtual TPtrC8 DefaultNamespace() = 0; |
|
51 |
|
52 /** |
|
53 * Add new newspace |
|
54 * |
|
55 * @since S60 3.2 |
|
56 * @param aPrefix: Namespace prefix |
|
57 * @param aUri: Namespace URI |
|
58 */ |
|
59 virtual void AddNamespaceL( const TDesC8& aPrefix, |
|
60 const TDesC8& aUri) = 0; |
|
61 /** |
|
62 * Gets all extra namespaces of this element in an array. |
|
63 * |
|
64 * @since S60 3.2 |
|
65 * @return array of namespaces. Array will be empty if element has |
|
66 * no namespaces. |
|
67 * Do NOT call ResetAndDestroy() for the array, |
|
68 * you may call Reset() only. The array is valid only till |
|
69 * the next call of this method in this entity. |
|
70 * AddNamespaceL() modifications are not visible without |
|
71 * new call of this method. |
|
72 */ |
|
73 virtual RPointerArray<MSimpleNamespace>& NamespacesL() = 0; |
|
74 |
|
75 /** |
|
76 * Externalize the document into write stream. |
|
77 * |
|
78 * @since S60 3.2 |
|
79 * @param aStream write stream |
|
80 */ |
|
81 virtual void ExternalizeL( RWriteStream& aStream ) = 0; |
|
82 |
|
83 }; |
|
84 |
|
85 #endif |
|
86 |
|
87 // End of File |