|
1 /* |
|
2 * Copyright (c) 2006-2007 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: Action indication impl class declaration. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CFACTIONINDICATIONIMPL_H |
|
20 #define C_CFACTIONINDICATIONIMPL_H |
|
21 |
|
22 #include "cfactionindication.h" |
|
23 #include "cfkeyvaluepair.h" |
|
24 |
|
25 class RWriteStream; |
|
26 class RReadStream; |
|
27 |
|
28 /** |
|
29 * Action indication implementation. |
|
30 * |
|
31 * @since S60 5.0 |
|
32 * @lib cfservices.lib |
|
33 */ |
|
34 NONSHARABLE_CLASS( CCFActionIndicationImpl ): public CCFActionIndication |
|
35 { |
|
36 public: |
|
37 |
|
38 // Two phased constructors |
|
39 IMPORT_C static CCFActionIndicationImpl* NewL (); |
|
40 IMPORT_C static CCFActionIndicationImpl* NewLC (); |
|
41 |
|
42 // Destructor |
|
43 ~CCFActionIndicationImpl(); |
|
44 |
|
45 public: // From base classes |
|
46 |
|
47 // From CCFActionIndication |
|
48 void SetIdentifierL( const TDesC& aIdentifier ); |
|
49 |
|
50 // From CCFActionIndication |
|
51 const TDesC& Identifier() const; |
|
52 |
|
53 // From CCFActionIndication |
|
54 void AddParameterL( const TDesC& aKey, const TDesC& aValue ); |
|
55 |
|
56 // From CCFActionIndication |
|
57 const RKeyValueArray& Parameters() const; |
|
58 |
|
59 public: // New methods |
|
60 |
|
61 /** |
|
62 * Gets object size in bytes. |
|
63 * |
|
64 * @since S60 4.0 |
|
65 * @param None |
|
66 * @return TInt |
|
67 */ |
|
68 IMPORT_C TInt Size() const; |
|
69 |
|
70 /** |
|
71 * Externalizes object. |
|
72 * |
|
73 * @since S60 4.0 |
|
74 * @param aStream Write stream. |
|
75 * @return None |
|
76 */ |
|
77 IMPORT_C void ExternalizeL( RWriteStream& aStream ); |
|
78 |
|
79 /** |
|
80 * Internalizes object. |
|
81 * |
|
82 * @since S60 4.0 |
|
83 * @param aStream Read stream. |
|
84 * @return None |
|
85 */ |
|
86 IMPORT_C void InternalizeL( RReadStream& aStream ); |
|
87 |
|
88 private: // New methods |
|
89 |
|
90 // Creates a new buffer from stream |
|
91 HBufC* ReadBufferFromStreamLC( TInt aLength, |
|
92 RReadStream& aStream ); |
|
93 |
|
94 private: |
|
95 |
|
96 CCFActionIndicationImpl(); |
|
97 void ConstructL(); |
|
98 |
|
99 private: // Data |
|
100 |
|
101 // Own: Parameters |
|
102 RKeyValueArray iParameters; |
|
103 |
|
104 // Own: Identifier |
|
105 HBufC* iIdentifier; |
|
106 }; |
|
107 |
|
108 #endif |