cbsref/csyrefplugins/csy27010/inc/PortC32Interface.h
branchRCL_3
changeset 65 630d2f34d719
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
       
     1 //
       
     2 // * Copyright 2004 Neusoft America Inc.
       
     3 // * All rights reserved.
       
     4 // * This component and the accompanying materials are made available
       
     5 // * under the terms of the Eclipse Public License v1.0
       
     6 // * which accompanies this distribution, and is available
       
     7 // * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 // *
       
     9 // * Contributors:
       
    10 // * Keith Collins (Neusoft America Inc.)  original software development and additional code and modifications.
       
    11 // * Thomas Gahagen (Neusoft America Inc.)  additional code and modifications.
       
    12 // * Zhen Yuan (Neusoft America Inc.)  additional code and modifications.
       
    13 // *
       
    14 // * Description:  This file defines the CPortC32Interface class.  This class
       
    15 // *               is equivalent to client RComm subsessions. This is derived 
       
    16 // *               from the C32 base class for ports CPort.
       
    17 //
       
    18 
       
    19 // CPortC32Interface.h
       
    20 
       
    21 /** @file CPortC32Interface.h
       
    22  *
       
    23  * PortC32Interface:
       
    24  * - Equivalent to client RComm subsessions. This is derived 
       
    25  *   from the C32 base class for ports CPort.
       
    26  */
       
    27 
       
    28 #ifndef _PORTC32INTERFACE_H__
       
    29 #define _PORTC32INTERFACE_H__
       
    30 
       
    31 #include <cs_port.h>
       
    32 #include "PortC32InterfaceBase.h"
       
    33 
       
    34 class CPortC32Interface : public CPortC32InterfaceBase
       
    35 	{
       
    36 public:
       
    37 	static CPortC32Interface* NewL(CPortFactory& aPortFactory, 
       
    38 								   CPortFactory::TC32PortInfo& aPortInfo);
       
    39 
       
    40 	virtual ~CPortC32Interface();
       
    41 	void SendFrameToClient(CCsyMsgBufBpFrame* aFrame);
       
    42 
       
    43 protected:
       
    44 	virtual TBool ReadFromBufOrQueue();
       
    45 
       
    46 private:
       
    47 	CPortC32Interface(CPortFactory& aPortFactory,
       
    48 					  CPortFactory::TC32PortInfo& aPortInfo);
       
    49 	void ConstructL();
       
    50 
       
    51 	virtual TInt QueryReceiveBuffer(TInt& aLength) const;
       
    52 	virtual void ResetBuffers(TUint aFlags);
       
    53 
       
    54 private:
       
    55 	TBuf8<KMaxAdvFrameSize>	iPartialReadBuf;
       
    56 
       
    57 	CCsyMsgBufBpFrame* iReadBuf;
       
    58 	};
       
    59 
       
    60 #endif  // _PORTC32INTERFACE_H__