author | ivan.fildichev@opencode.com |
Fri, 15 Oct 2010 11:27:58 +0300 | |
branch | opencode |
changeset 78 | d4cfc65049ba |
parent 32 | 58332560b319 |
permissions | -rw-r--r-- |
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
1 |
// Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
24 | 2 |
// All rights reserved. |
3 |
// This component and the accompanying materials are made available |
|
4 |
// under the terms of "Eclipse Public License v1.0" |
|
5 |
// which accompanies this distribution, and is available |
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 |
// |
|
8 |
// Initial Contributors: |
|
9 |
// Nokia Corporation - initial contribution. |
|
10 |
// |
|
11 |
// Contributors: |
|
12 |
// |
|
13 |
// Description: |
|
14 |
// Defines the active object that controls the BCA Read() requests. |
|
15 |
// |
|
16 |
// |
|
17 |
||
18 |
/** |
|
19 |
@file |
|
20 |
*/ |
|
21 |
||
22 |
#ifndef RECEIVER_H |
|
23 |
#define RECEIVER_H |
|
24 |
||
25 |
#include "BcaIoController.h" |
|
26 |
#include "bttlog.h" |
|
27 |
#include "Constants.h" |
|
28 |
#include <nifmbuf.h> |
|
29 |
||
30 |
class CBttLogger; |
|
31 |
||
32 |
class CReceiver : public CActive |
|
33 |
{ |
|
34 |
public: |
|
35 |
static CReceiver* NewL(CBcaIoController& aObserver, CBttLogger* aTheLogger, TUint aMaxPacketSize); |
|
36 |
~CReceiver(); |
|
37 |
||
38 |
// Inherited from CActive. |
|
39 |
virtual void RunL(); |
|
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
40 |
virtual TInt RunError(TInt aError); |
24 | 41 |
virtual void DoCancel(); |
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
42 |
|
24 | 43 |
void StartListening(); |
44 |
||
45 |
private: |
|
46 |
CReceiver(CBcaIoController& aObserver, CBttLogger* aTheLogger, TUint aMaxPacketSize); |
|
47 |
void ConstructL(); |
|
48 |
||
49 |
private: // Unowned data. |
|
50 |
CBcaIoController& iObserver; |
|
51 |
CBttLogger* iTheLogger; |
|
52 |
TUint iMaxPacketSize; |
|
53 |
RBuf8 iData; |
|
54 |
RMBufPacket iRMBufPacket; |
|
55 |
}; |
|
56 |
||
57 |
#endif // RECEIVER_H |