|
1 /* |
|
2 * Copyright (c) 2005 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef CMCEITCRECEIVERBASE_H |
|
23 #define CMCEITCRECEIVERBASE_H |
|
24 |
|
25 |
|
26 #include <e32base.h> |
|
27 #include <s32mem.h> |
|
28 #include "mcedefs.h" |
|
29 #include "mceclientserver.h" |
|
30 class MMceItc; |
|
31 class CMCERequestElements; |
|
32 class CMCEResponseElements; |
|
33 class MMCEHttpDigestChallengeObserver; |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 class CMceItcReceiverBase : public CActive |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 virtual ~CMceItcReceiverBase(); |
|
44 |
|
45 protected: |
|
46 |
|
47 CMceItcReceiverBase ( MMceItc& aITC ); |
|
48 |
|
49 void Init(); |
|
50 |
|
51 |
|
52 virtual void IncomingEventL( TMceItcCallBack aEvent, TMceIds& aIds, |
|
53 const TDesC8& aContext ) = 0; |
|
54 virtual void IncomingEventL( TMceItcCallBack aEvent, TMceIds& aIds, |
|
55 const TDesC8& aContext, |
|
56 HBufC8* aContent ) = 0; |
|
57 |
|
58 virtual void IncomingEventL( TMceItcCallBack aEvent, TMceIds& aIds ) = 0; |
|
59 |
|
60 virtual void ErrorOccuredL ( TMceIds& aIds, TInt aError) = 0; |
|
61 |
|
62 private: // From CActive |
|
63 |
|
64 void RunL(); |
|
65 TInt RunError(TInt aError); |
|
66 void DoCancel(); |
|
67 |
|
68 private: // New functions |
|
69 |
|
70 void ReceiveNext(); |
|
71 |
|
72 void IncomingEventL( TMceIds& aIds ); |
|
73 |
|
74 void ReceiveDataLC( HBufC8*& aContext, HBufC8*& aContent ); |
|
75 |
|
76 |
|
77 |
|
78 protected: // Data |
|
79 |
|
80 TPckgBuf<TMceIds> iIdsPckg; |
|
81 |
|
82 private: // Data |
|
83 |
|
84 MMceItc& iITC; |
|
85 TIpcArgs iITCMsgArgs; |
|
86 TPckgBuf<TMceMessageBufSizes> iSizesPckg; |
|
87 |
|
88 //for testing |
|
89 |
|
90 MCE_UNIT_TEST_DEFS |
|
91 |
|
92 }; |
|
93 |
|
94 #endif // CMCEITCRECEIVERBASE_H |
|
95 |
|
96 // End of File |