telephonyprotocols/rawipnif/version1/inc/Receiver.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
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 
       
    29 class CBttLogger;
       
    30 
       
    31 class CReceiver : public CActive
       
    32 	{
       
    33 public:
       
    34 	CReceiver(CBcaIoController& aObserver, CBttLogger* aTheLogger);
       
    35 	~CReceiver();
       
    36 
       
    37 public: // Inherited from CActive.
       
    38 	virtual void RunL();
       
    39 	virtual void DoCancel();
       
    40 
       
    41 public:
       
    42 	void StartListening();
       
    43 
       
    44 private: // Unowned data.
       
    45 	CBcaIoController& iObserver;
       
    46 	CBttLogger* iTheLogger;
       
    47 	
       
    48 private:
       
    49 	TBuf8<KMaxIPPacketAndHeader> iData;
       
    50 	};
       
    51 
       
    52 #endif // RECEIVER_H