bthci/hci2implementations/hctls/ti/inc/hctltisender.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2006-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 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef HCTLTISENDER_H
       
    22 #define HCTLTISENDER_H
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 class RBusDevComm;
       
    27 class MHCTLChannelObserver;
       
    28 
       
    29 NONSHARABLE_CLASS(CHCTLTiSender) : public CActive
       
    30     {
       
    31 public:
       
    32     static CHCTLTiSender* NewL(RBusDevComm& aPort);
       
    33     ~CHCTLTiSender();         
       
    34 
       
    35     TInt Write(const TDesC8& aData);
       
    36 	void SetChannelObserver(MHCTLChannelObserver& aObserver);
       
    37 
       
    38 private:
       
    39 	// From CActive
       
    40 	virtual void RunL();     
       
    41 	virtual void DoCancel();
       
    42 
       
    43     CHCTLTiSender(RBusDevComm& aPort);
       
    44 
       
    45 private:
       
    46 	MHCTLChannelObserver* iChannelObserver;
       
    47 	RBusDevComm& iPort;
       
    48     };
       
    49 
       
    50 #endif // HCTLTISENDER_H
       
    51