1 /* |
|
2 * Copyright (c) 2009 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __MDERELATIONQUERY_H__ |
|
20 #define __MDERELATIONQUERY_H__ |
|
21 |
|
22 |
|
23 #include <mdequery.h> |
|
24 |
|
25 |
|
26 /* Forward declarations. */ |
|
27 class CMdERelation; |
|
28 class CMdENamespaceDef; |
|
29 class CMdESession; |
|
30 |
|
31 /** |
|
32 * Query that fetches a set of relation items from the metadata engine |
|
33 * database. |
|
34 */ |
|
35 NONSHARABLE_CLASS(CMdERelationQuery) : public CMdEQuery |
|
36 { |
|
37 public: |
|
38 |
|
39 /* Constructors and destructor. */ |
|
40 |
|
41 /** |
|
42 * Destructor. |
|
43 */ |
|
44 virtual ~CMdERelationQuery(); |
|
45 |
|
46 |
|
47 /* Methods. */ |
|
48 |
|
49 /** |
|
50 * Returns one of the result objects. |
|
51 * |
|
52 * @return The result object that was requested. The query retains |
|
53 * ownership of the returned object. |
|
54 */ |
|
55 IMPORT_C CMdERelation& Result(TInt aIndex) const; |
|
56 |
|
57 |
|
58 protected: |
|
59 |
|
60 /* Constructors. */ |
|
61 |
|
62 /** |
|
63 * Constructor. |
|
64 * |
|
65 * @param aType type of the condition node |
|
66 */ |
|
67 CMdERelationQuery(CMdESession& aSession, CMdENamespaceDef& aNamespaceDef); |
|
68 |
|
69 /** |
|
70 * Second-phase constructor. |
|
71 */ |
|
72 void RelationQueryConstructL(); |
|
73 |
|
74 virtual void DoCancel(); |
|
75 |
|
76 private: |
|
77 |
|
78 /* Private methods. */ |
|
79 |
|
80 |
|
81 private: |
|
82 |
|
83 }; |
|
84 |
|
85 #endif // __MDERELATIONQUERY_H__ |
|