|
1 /* |
|
2 * Copyright (c) 2008-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: CCFContextSourceCommandParameterImpl class declaration. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CFCONTEXTSOURCECOMMANDPARAMETERIMPL_H |
|
20 #define C_CFCONTEXTSOURCECOMMANDPARAMETERIMPL_H |
|
21 |
|
22 |
|
23 // SYSTEM INCLUDE FILES |
|
24 #include <cfcontextsourcecommandparameter.h> |
|
25 |
|
26 // USER INCLUDE FILES |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 |
|
30 // DATA TYPES |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * Context source command parameter interface implementation header. |
|
36 * |
|
37 * @lib CFServices |
|
38 * @since S60 5.0 |
|
39 */ |
|
40 NONSHARABLE_CLASS( CCFContextSourceCommandParameterImpl ) : |
|
41 public CCFContextSourceCommandParameter |
|
42 { |
|
43 public: |
|
44 |
|
45 /** |
|
46 * Symbian two phased constructors. |
|
47 * |
|
48 * @since S60 5.0 |
|
49 * @param None. |
|
50 * @return CCFContextSourceCommandParameterImpl |
|
51 */ |
|
52 static CCFContextSourceCommandParameterImpl* NewL(); |
|
53 static CCFContextSourceCommandParameterImpl* NewLC(); |
|
54 |
|
55 /** |
|
56 * C++ destructor. |
|
57 */ |
|
58 virtual ~CCFContextSourceCommandParameterImpl(); |
|
59 |
|
60 public: // From CCFContextSourceCommandParameter |
|
61 |
|
62 /** @see CCFContextSourceCommandParameter */ |
|
63 virtual const TDesC& Name() const; |
|
64 |
|
65 /** @see CCFContextSourceCommandParameter */ |
|
66 virtual void SetNameL( const TDesC& aName ); |
|
67 |
|
68 /** @see CCFContextSourceCommandParameter */ |
|
69 virtual const RKeyValueArray& Attributes() const; |
|
70 |
|
71 /** @see CCFContextSourceCommandParameter */ |
|
72 virtual void AddAttributeL( CCFKeyValuePair* aAttribute ); |
|
73 |
|
74 /** @see CCFContextSourceCommandParameter */ |
|
75 virtual void AddAttributesL( RKeyValueArray& aAttributes ); |
|
76 |
|
77 /** @see CCFContextSourceCommandParameter */ |
|
78 virtual const RSourceCommandParameterArray& Parameters() const; |
|
79 |
|
80 /** @see CCFContextSourceCommandParameter */ |
|
81 virtual void AddParameterL( |
|
82 CCFContextSourceCommandParameter* aParameter ); |
|
83 |
|
84 /** @see CCFContextSourceCommandParameter */ |
|
85 virtual TInt Size() const; |
|
86 |
|
87 /** @see CCFContextSourceCommandParameter */ |
|
88 virtual void ExternalizeL( RWriteStream& aStream ) const; |
|
89 |
|
90 /** @see CCFContextSourceCommandParameter */ |
|
91 virtual void InternalizeL( RReadStream& aStream ); |
|
92 |
|
93 /** @see CCFContextSourceCommandParameter */ |
|
94 virtual CCFContextSourceCommandParameter* CloneLC() const; |
|
95 |
|
96 private: |
|
97 |
|
98 CCFContextSourceCommandParameterImpl(); |
|
99 void ConstructL(); |
|
100 |
|
101 private: // Data |
|
102 |
|
103 // Parameter name; owned. |
|
104 HBufC* iName; |
|
105 |
|
106 // Parameter attributes; owned. |
|
107 RKeyValueArray iAttributes; |
|
108 |
|
109 // Nested parameters; owned. |
|
110 RSourceCommandParameterArray iParameters; |
|
111 }; |
|
112 |
|
113 #endif // C_CFCONTEXTSOURCECOMMANDPARAMETERIMPL_H |