|
1 /* |
|
2 * Copyright (c) 2007-2008 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_HNMDQUERY_H |
|
21 #define C_HNMDQUERY_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <xmlengelement.h> |
|
25 |
|
26 #include "hnglobals.h" |
|
27 |
|
28 class CHnMdServiceCommand; |
|
29 class CHnMdBaseKey; |
|
30 class CLiwGenericParamList; |
|
31 class CHnMdService; |
|
32 |
|
33 /** |
|
34 * Query. |
|
35 * |
|
36 * This class represents the query. |
|
37 * |
|
38 * This class allows sending queries to different services. |
|
39 * |
|
40 * Queries are mostly used during evaluation. |
|
41 * |
|
42 * @lib hnmetadatamodel |
|
43 * @since S60 5.0 *** for example, S60 v3.0 |
|
44 * @ingroup group_hnmetadatamodel |
|
45 */ |
|
46 NONSHARABLE_CLASS(CHnMdQuery) : public CBase |
|
47 { |
|
48 public: |
|
49 |
|
50 /** |
|
51 * Two-phase constructor. |
|
52 * |
|
53 * @since S60 5.0 |
|
54 * @param aElement Xml element. |
|
55 * @return Fully cosntructed object. |
|
56 */ |
|
57 static CHnMdQuery* NewL( TXmlEngElement aElement ); |
|
58 |
|
59 /** |
|
60 * Two-phase constructor. |
|
61 * |
|
62 * @since S60 5.0 |
|
63 * @param aElement Xml element. |
|
64 * @return Fully cosntructed object. |
|
65 */ |
|
66 static CHnMdQuery* NewLC( TXmlEngElement aElement ); |
|
67 |
|
68 /** |
|
69 * Standard C++ virtual destructor. |
|
70 * |
|
71 * @since S60 5.0 |
|
72 */ |
|
73 virtual ~CHnMdQuery(); |
|
74 |
|
75 /** |
|
76 * Gets namespace. |
|
77 * |
|
78 * @since S60 5.0 |
|
79 * @return Namespace. |
|
80 */ |
|
81 const TDesC& NameSpace() const; |
|
82 |
|
83 /** |
|
84 * Gets namespace. |
|
85 * |
|
86 * @since S60 5.0 |
|
87 * @return Service object. |
|
88 */ |
|
89 CHnMdService& GetService() const; |
|
90 |
|
91 private: |
|
92 |
|
93 /** |
|
94 * Standard C++ constructor. |
|
95 * |
|
96 * @since S60 5.0 |
|
97 */ |
|
98 CHnMdQuery(); |
|
99 |
|
100 /** |
|
101 * Standard symbian 2nd phase constructor. |
|
102 * |
|
103 * @since S60 5.0 |
|
104 * @param aElement Xml element. |
|
105 */ |
|
106 void ConstructL(TXmlEngElement aElement); |
|
107 |
|
108 /** |
|
109 * Sets namespace. |
|
110 * |
|
111 * @since S60 5.0 |
|
112 * @param aNameSpace Namespace descriptor. |
|
113 */ |
|
114 void SetNameSpaceL( const TDesC& aNameSpace ); |
|
115 |
|
116 /** |
|
117 * Sets namespace. |
|
118 * |
|
119 * @since S60 5.0 |
|
120 * @param aAttr Xml attribute. |
|
121 */ |
|
122 void SetNameSpaceL( TXmlEngAttr aAttr ); |
|
123 |
|
124 private: // data |
|
125 |
|
126 /** |
|
127 * Own - Namespace. |
|
128 */ |
|
129 RBuf iNameSpace; |
|
130 |
|
131 /** |
|
132 * Own - service object. |
|
133 */ |
|
134 CHnMdService* iService; |
|
135 |
|
136 }; |
|
137 |
|
138 #endif // C_HNMMQUERY_H |