telephonyprotocols/rawipnif/inc/Receiver.h
changeset 44 8b72faa1200f
parent 23 6b1d113cdff3
equal deleted inserted replaced
39:2473f5e227f9 44:8b72faa1200f
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    21 
    21 
    22 #ifndef RECEIVER_H
    22 #ifndef RECEIVER_H
    23 #define RECEIVER_H
    23 #define RECEIVER_H
    24 
    24 
    25 #include "BcaIoController.h"
    25 #include "BcaIoController.h"
    26 #include "bttlog.h"
       
    27 #include "Constants.h"
    26 #include "Constants.h"
    28 #include <nifmbuf.h>
    27 #include <nifmbuf.h>
    29 
    28 
    30 class CBttLogger;
       
    31 
    29 
    32 class CReceiver : public CActive
    30 class CReceiver : public CActive
    33 	{
    31 	{
    34 public:	
    32 public:	
    35 	static CReceiver* NewL(CBcaIoController& aObserver, CBttLogger* aTheLogger, TUint aMaxPacketSize);
    33 	static CReceiver* NewL(CBcaIoController& aObserver, TUint aMaxPacketSize);
    36 	~CReceiver();
    34 	~CReceiver();
    37 
    35 
    38 	// Inherited from CActive.
    36 	// Inherited from CActive.
    39 	virtual void RunL();
    37 	virtual void RunL();
       
    38 	virtual TInt RunError(TInt aError);
    40 	virtual void DoCancel();
    39 	virtual void DoCancel();
       
    40 	
    41 	void StartListening();
    41 	void StartListening();
    42 	
    42 	
    43 private:
    43 private:
    44 	CReceiver(CBcaIoController& aObserver, CBttLogger* aTheLogger, TUint aMaxPacketSize);
    44 	CReceiver(CBcaIoController& aObserver, TUint aMaxPacketSize);
    45 	void ConstructL();
    45 	void ConstructL();
    46 
    46 
    47 private: // Unowned data.
    47 private: // Unowned data.
    48 	CBcaIoController& iObserver;
    48 	CBcaIoController& iObserver;
    49 	CBttLogger* iTheLogger;
       
    50 	TUint iMaxPacketSize;
    49 	TUint iMaxPacketSize;
    51 	RBuf8 iData;
    50 	RBuf8 iData;
    52 	RMBufPacket iRMBufPacket;
    51 	RMBufPacket iRMBufPacket;
    53 	};
    52 	};
    54 
    53