equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef MCCDATARECEIVER_H |
|
24 #define MCCDATARECEIVER_H |
|
25 #include <E32Base.h> |
|
26 #include <e32msgqueue.h> |
|
27 |
|
28 #include "mccdatareceiverobserver.h" |
|
29 |
|
30 typedef TBuf8<50> TQueueBuffer; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CMccDataReceiver class declaration |
|
36 */ |
|
37 class CMccDataReceiver : public CActive |
|
38 { |
|
39 public: |
|
40 |
|
41 static CMccDataReceiver* NewL( MMccDataReceiverObserver& aObserver ); |
|
42 |
|
43 ~CMccDataReceiver(); |
|
44 |
|
45 |
|
46 public: // From CActive |
|
47 |
|
48 void DoCancel(); |
|
49 void RunL(); |
|
50 TInt RunError(TInt aError); |
|
51 |
|
52 private: |
|
53 CMccDataReceiver( MMccDataReceiverObserver& aObserver ); |
|
54 void ConstructL(); // second construction phase |
|
55 TInt AssignNameToMessageQueueL(const TDes16 &aMessageBuffer); |
|
56 |
|
57 private: |
|
58 |
|
59 RMsgQueue<TQueueBuffer> iMsgQueue; |
|
60 RMsgQueue<TQueueBuffer> iMsgQueue1; |
|
61 RMsgQueue<TQueueBuffer> iMsgQueue2; |
|
62 MMccDataReceiverObserver* iObserver; |
|
63 }; |
|
64 |
|
65 |
|
66 #endif |