|
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: MNcdProtocolElementEntity declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef NCDPROTOCOLELEMENTQUERYELEMENTIMPL_H |
|
20 #define NCDPROTOCOLELEMENTQUERYELEMENTIMPL_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 #include "ncd_cp_queryelement.h" |
|
25 |
|
26 class MNcdConfigurationProtocolQueryOption; |
|
27 class CNcdConfigurationProtocolQueryOptionImpl; |
|
28 class MNcdConfigurationProtocolDetail; |
|
29 class CNcdConfigurationProtocolDetailImpl; |
|
30 class CNcdString; |
|
31 |
|
32 |
|
33 class CNcdConfigurationProtocolQueryElementImpl : public CBase, |
|
34 public MNcdConfigurationProtocolQueryElement |
|
35 { |
|
36 public: |
|
37 |
|
38 CNcdConfigurationProtocolQueryElementImpl(); |
|
39 |
|
40 void ConstructL(); |
|
41 |
|
42 virtual ~CNcdConfigurationProtocolQueryElementImpl(); |
|
43 |
|
44 /** |
|
45 * @see MNcdConfigurationProtocolQueryElement |
|
46 */ |
|
47 virtual const TDesC& Id() const; |
|
48 |
|
49 /** |
|
50 * @see MNcdConfigurationProtocolQueryElement |
|
51 */ |
|
52 virtual MNcdQueryItem::TSemantics Semantics() const; |
|
53 |
|
54 /** |
|
55 * @see MNcdConfigurationProtocolQueryElement |
|
56 */ |
|
57 virtual MNcdConfigurationProtocolQueryElement::TNcdProtocolQueryElementType |
|
58 Type() const; |
|
59 |
|
60 /** |
|
61 * @see MNcdConfigurationProtocolQueryElement |
|
62 */ |
|
63 virtual TBool Optional() const; |
|
64 |
|
65 /** |
|
66 * @see MNcdConfigurationProtocolQueryElement |
|
67 */ |
|
68 virtual const CNcdString& Label() const; |
|
69 |
|
70 /** |
|
71 * @see MNcdConfigurationProtocolQueryElement |
|
72 */ |
|
73 virtual const CNcdString& Message() const; |
|
74 |
|
75 /** |
|
76 * @see MNcdConfigurationProtocolQueryElement |
|
77 */ |
|
78 virtual const CNcdString& Description() const; |
|
79 |
|
80 /** |
|
81 * @see MNcdConfigurationProtocolQueryElement |
|
82 */ |
|
83 virtual TInt OptionCount() const; |
|
84 |
|
85 /** |
|
86 * @see MNcdConfigurationProtocolQueryElement |
|
87 */ |
|
88 virtual const MNcdConfigurationProtocolQueryOption& Option( TInt aIndex ) const; |
|
89 |
|
90 /** |
|
91 * @see MNcdConfigurationProtocolQueryElement |
|
92 */ |
|
93 virtual const MNcdConfigurationProtocolDetail* Detail() const; |
|
94 |
|
95 public: |
|
96 |
|
97 HBufC* iId; |
|
98 MNcdQueryItem::TSemantics iSemantics; |
|
99 TNcdProtocolQueryElementType iType; |
|
100 TBool iOptional; |
|
101 CNcdString* iLabel; |
|
102 CNcdString* iMessage; |
|
103 CNcdString* iDescription; |
|
104 RPointerArray<CNcdConfigurationProtocolQueryOptionImpl> iOptions; |
|
105 MNcdConfigurationProtocolDetail* iDetails; |
|
106 }; |
|
107 |
|
108 |
|
109 #endif // NCDPROTOCOLELEMENTQUERYELEMENTIMPL_H |