telephonyprotocols/rawipnif/inc/Receiver.h
branchRCL_3
changeset 65 630d2f34d719
parent 27 4284d6390a82
child 66 07a122eea281
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
    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();
    40 	virtual TInt RunError(TInt aError);
    38 	virtual TInt RunError(TInt aError);
    41 	virtual void DoCancel();
    39 	virtual void DoCancel();
    42 	
    40 	
    43 	void StartListening();
    41 	void StartListening();
    44 	
    42 	
    45 private:
    43 private:
    46 	CReceiver(CBcaIoController& aObserver, CBttLogger* aTheLogger, TUint aMaxPacketSize);
    44 	CReceiver(CBcaIoController& aObserver, TUint aMaxPacketSize);
    47 	void ConstructL();
    45 	void ConstructL();
    48 
    46 
    49 private: // Unowned data.
    47 private: // Unowned data.
    50 	CBcaIoController& iObserver;
    48 	CBcaIoController& iObserver;
    51 	CBttLogger* iTheLogger;
       
    52 	TUint iMaxPacketSize;
    49 	TUint iMaxPacketSize;
    53 	RBuf8 iData;
    50 	RBuf8 iData;
    54 	RMBufPacket iRMBufPacket;
    51 	RMBufPacket iRMBufPacket;
    55 	};
    52 	};
    56 
    53