|
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_HNMDQUERIES_H |
|
21 #define C_HNMDQUERIES_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <liwcommon.h> |
|
25 |
|
26 class CHnMdQuery; |
|
27 class CLiwGenericParamList; |
|
28 |
|
29 /** |
|
30 * Queries. |
|
31 * |
|
32 * This class stores CHnMdQuery objects. |
|
33 * |
|
34 * @lib hnmetadatamodel |
|
35 * @since S60 5.0 |
|
36 * @ingroup group_hnmetadatamodel |
|
37 */ |
|
38 NONSHARABLE_CLASS(CHnMdQueries) : public CBase |
|
39 { |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Two-phase constructor. |
|
44 * |
|
45 * @since S60 5.0 |
|
46 * @param aElement Xml element. |
|
47 * @return Fully constructed object. |
|
48 */ |
|
49 static CHnMdQueries* NewL( TXmlEngElement aElement ); |
|
50 |
|
51 /** |
|
52 * Two-phase constructor. |
|
53 * |
|
54 * @since S60 5.0 |
|
55 * @param aElement Xml element. |
|
56 * @return Fully constructed object. |
|
57 */ |
|
58 static CHnMdQueries* NewLC( TXmlEngElement aElement ); |
|
59 |
|
60 /** |
|
61 * Standard C++ virtual destructor. |
|
62 * |
|
63 * @since S60 5.0 |
|
64 */ |
|
65 virtual ~CHnMdQueries(); |
|
66 |
|
67 /** |
|
68 * Adds query. |
|
69 * |
|
70 * @since S60 5.0 |
|
71 * @param aQuery Query. |
|
72 * @return Status code. |
|
73 */ |
|
74 TInt AddQuery( CHnMdQuery* aQuery ); |
|
75 |
|
76 /** |
|
77 * Gets query. |
|
78 * |
|
79 * @since S60 5.0 |
|
80 * @param aPosition Position of a query. |
|
81 * @return Query. |
|
82 */ |
|
83 CHnMdQuery& Query( TInt aPosition ) const; |
|
84 |
|
85 /** |
|
86 * Gets number of queries. |
|
87 * |
|
88 * @since S60 5.0 |
|
89 * @return Number of queries. |
|
90 */ |
|
91 TInt Count() const; |
|
92 |
|
93 private: |
|
94 |
|
95 /** |
|
96 * Standard C++ constructor. |
|
97 * |
|
98 * @since S60 5.0 |
|
99 */ |
|
100 CHnMdQueries(); |
|
101 |
|
102 /** |
|
103 * Standard symbian 2nd phase constructor. |
|
104 * |
|
105 * @since S60 5.0 |
|
106 * @param aElement Xml element. |
|
107 */ |
|
108 void ConstructL( TXmlEngElement aElement ); |
|
109 |
|
110 private: // data |
|
111 |
|
112 /** |
|
113 * Own - Queries. |
|
114 */ |
|
115 RPointerArray<CHnMdQuery> iQueries; |
|
116 |
|
117 }; |
|
118 |
|
119 #endif // C_HNMMQUERIES_H |