telephonyprotocols/rawipnif/inc/Receiver.h
changeset 0 3553901f7fa8
child 8 3f227a47ad75
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     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 	CReceiver(CBcaIoController& aObserver, CBttLogger* aTheLogger, TInt aMaxPacketSise);	
       
    36 	static CReceiver* NewL(CBcaIoController& aObserver, CBttLogger* aTheLogger, TInt aMaxPacketSise);
       
    37 	void ConstructL();
       
    38 	~CReceiver();
       
    39 
       
    40 public: // Inherited from CActive.
       
    41 	virtual void RunL();
       
    42 	virtual void DoCancel();
       
    43 
       
    44 public:
       
    45 	void StartListening();
       
    46 
       
    47 private: // Unowned data.
       
    48 	CBcaIoController& iObserver;
       
    49 	CBttLogger* iTheLogger;
       
    50 	TInt iMaxPacketSise;
       
    51 	
       
    52 private:
       
    53 	
       
    54 	RBuf8 iData;
       
    55 	RMBufPacket iRMBufPacket;
       
    56 	};
       
    57 
       
    58 #endif // RECEIVER_H