|
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 NCD_CONFIGURATION_PROTOCOL_QUERYRESPONSE_IMPL_H |
|
20 #define NCD_CONFIGURATION_PROTOCOL_QUERYRESPONSE_IMPL_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 #include "ncd_cp_queryresponse.h" |
|
25 |
|
26 class CNcdString; |
|
27 |
|
28 |
|
29 class CNcdConfigurationProtocolQueryResponseValueImpl |
|
30 : public CBase, public MNcdConfigurationProtocolQueryResponseValue |
|
31 { |
|
32 public: |
|
33 static CNcdConfigurationProtocolQueryResponseValueImpl* NewL(); |
|
34 static CNcdConfigurationProtocolQueryResponseValueImpl* NewLC(); |
|
35 void ConstructL(); |
|
36 virtual ~CNcdConfigurationProtocolQueryResponseValueImpl(); |
|
37 private: |
|
38 CNcdConfigurationProtocolQueryResponseValueImpl(); |
|
39 public: |
|
40 virtual const TDesC& Id() const; |
|
41 virtual MNcdQuery::TSemantics Semantics() const; |
|
42 virtual TInt ValueCount() const; |
|
43 virtual TDesC& ValueL(TInt aIndex) const; |
|
44 public: |
|
45 RPointerArray<HBufC> iValues; |
|
46 HBufC* iId; |
|
47 MNcdQuery::TSemantics iSemantics; |
|
48 }; |
|
49 |
|
50 |
|
51 class CNcdConfigurationProtocolQueryResponseImpl |
|
52 : public CBase, public MNcdConfigurationProtocolQueryResponse |
|
53 { |
|
54 public: |
|
55 |
|
56 static CNcdConfigurationProtocolQueryResponseImpl* NewL(); |
|
57 static CNcdConfigurationProtocolQueryResponseImpl* NewLC(); |
|
58 |
|
59 CNcdConfigurationProtocolQueryResponseImpl(); |
|
60 |
|
61 void ConstructL(); |
|
62 |
|
63 virtual ~CNcdConfigurationProtocolQueryResponseImpl(); |
|
64 |
|
65 /** |
|
66 * @see MNcdPerminetProtocolQuery |
|
67 */ |
|
68 virtual const TDesC& Id() const; |
|
69 |
|
70 /** |
|
71 * @see MNcdPerminetProtocolQuery |
|
72 */ |
|
73 virtual MNcdQuery::TSemantics Semantics() const; |
|
74 |
|
75 /** |
|
76 * @see MNcdPerminetProtocolQuery |
|
77 */ |
|
78 virtual TBool Cancel() const; |
|
79 |
|
80 /** |
|
81 * @see MNcdPerminetProtocolQuery |
|
82 */ |
|
83 virtual TInt ResponseCount() const; |
|
84 |
|
85 /** |
|
86 * @see MNcdPerminetProtocolQuery |
|
87 */ |
|
88 virtual const MNcdConfigurationProtocolQueryResponseValue& |
|
89 ResponseL( TInt aIndex ) const; |
|
90 |
|
91 public: |
|
92 |
|
93 HBufC* iId; |
|
94 MNcdQuery::TSemantics iSemantics; |
|
95 TBool iCancel; |
|
96 |
|
97 RPointerArray<CNcdConfigurationProtocolQueryResponseValueImpl> iResponses; |
|
98 |
|
99 |
|
100 }; |
|
101 |
|
102 |
|
103 #endif // NCD_CONFIGURATION_PROTOCOL_QUERYRESPONSE_IMPL_H |