|
1 /* |
|
2 * Copyright (c) 2005 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: CXcapNodeAttribute |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __XCAPNODEATTRIBUTE__ |
|
22 #define __XCAPNODEATTRIBUTE__ |
|
23 |
|
24 #include "XdmNodeAttribute.h" |
|
25 |
|
26 //CLASS DECLARATION |
|
27 NONSHARABLE_CLASS( CXcapNodeAttribute ) : public CXdmNodeAttribute |
|
28 { |
|
29 public: // Constructors and destructor |
|
30 |
|
31 /** |
|
32 * Two-phased constructor. |
|
33 * |
|
34 * @param TDesC8& Name of this attribute |
|
35 * @param CXdmDocumentNode* Parent of this attribute |
|
36 * |
|
37 * NOTE! "Parent", in this case, denotes the |
|
38 * element this attribute attributes. |
|
39 * |
|
40 * @return CXdmNodeAttribute* |
|
41 */ |
|
42 static CXcapNodeAttribute* NewL( CXdmEngine& aXdmEngine, |
|
43 const TDesC& aAttributeName, |
|
44 CXdmDocumentNode* aParentNode ); |
|
45 |
|
46 /** |
|
47 * Two-phased constructor. |
|
48 * |
|
49 * @param CXdmDocumentNode* Parent of this attribute |
|
50 * |
|
51 * NOTE! "Parent", in this case, denotes the |
|
52 * element this attribute attributes. |
|
53 * |
|
54 * @return CXdmNodeAttribute* |
|
55 */ |
|
56 static CXcapNodeAttribute* NewL( CXdmEngine& aXdmEngine, |
|
57 CXdmDocumentNode* aParentNode ); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 virtual ~CXcapNodeAttribute(); |
|
63 |
|
64 public: // New functions |
|
65 |
|
66 |
|
67 |
|
68 private: |
|
69 |
|
70 /** |
|
71 * C++ constructor, private version. |
|
72 */ |
|
73 CXcapNodeAttribute( CXdmEngine& aXdmEngine ); |
|
74 |
|
75 /** |
|
76 * C++ constructor, protected version. |
|
77 * |
|
78 * @param CXdmDocumentNode* The parent node of this element |
|
79 */ |
|
80 CXcapNodeAttribute( CXdmEngine& aXdmEngine, CXdmDocumentNode* aParentNode ); |
|
81 |
|
82 /** |
|
83 * By default Symbian OS constructor is private. |
|
84 * |
|
85 * @param TDesC8& Name of this node |
|
86 * @return void |
|
87 */ |
|
88 void ConstructL( const TDesC& aNodeName ); |
|
89 |
|
90 /** |
|
91 * C++ constructor, another private version. |
|
92 */ |
|
93 CXcapNodeAttribute( const TBool aLeafNode, |
|
94 CXdmEngine& aXdmEngine, |
|
95 CXdmDocumentNode* aParentNode ); |
|
96 |
|
97 private: //From MXdmNodeInterface |
|
98 |
|
99 /** |
|
100 * Copies the request data |
|
101 * @param aRequestData Data to be sent |
|
102 */ |
|
103 TPtrC8 Prefix() const; |
|
104 |
|
105 /** |
|
106 * Copies the request data |
|
107 * @param aRequestData Data to be sent |
|
108 */ |
|
109 void SetPrefixL( const TDesC& aNamespacePrefix ); |
|
110 |
|
111 /** |
|
112 * Copies the request data |
|
113 * @param aRequestData Data to be sent |
|
114 */ |
|
115 void SetPrefixL( const TDesC8& aNamespacePrefix ); |
|
116 |
|
117 |
|
118 private: |
|
119 }; |
|
120 |
|
121 #endif //__XCAPNODEATTRIBUTE__ |
|
122 |
|
123 // End of File |