diff -r 7fdc9a71d314 -r 8ad140f3dd41 hti/HtiServicePlugins/HtiIpProxyServicePlugin/IPProxyEngine/Src/MProtocolObserverTCP.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hti/HtiServicePlugins/HtiIpProxyServicePlugin/IPProxyEngine/Src/MProtocolObserverTCP.h Wed Oct 13 16:17:58 2010 +0300 @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: TCP protocol specific callback functions +* +*/ + + + +#ifndef MPROTOCOLOBSERVERTCP_H +#define MPROTOCOLOBSERVERTCP_H + +// INCLUDES +#include + +#include "MProtocolObserver.h" + +// CLASS DECLARATION + +/** +* Events for protocol. +*/ +NONSHARABLE_CLASS( MProtocolObserverTCP ) : public MProtocolObserver + { + + public: // Abstract functions + + /** + * TCP Frame has been parsed. + * @param aPort Port number parsed from received frame. + * @param aData Data parsed from received frame. + */ + virtual void TCPFrameParsedL( + TUint aPort, + const TDesC8& aData ) = 0; + + /** + * Open a TCP connection to phone side port + * @param aPort Port number where to connect + */ + virtual void OpenLocalTCPConnectionL( TUint aPort ) = 0; + + /** + * Open a listening TCP port on the phone side + * @param aPort Port number where to start listening + */ + virtual void OpenListeningTCPConnectionL( TUint aPort ) = 0; + + /** + * Close a TCP connection + * @param aPort Remote port number to close + */ + virtual void CloseTCPConnectionL( TUint aPort ) = 0; + + /** + * Close all TCP connections from listening & connecting ports + */ + virtual void CloseAllTCPConnections() = 0; + }; + +#endif // MPROTOCOLOBSERVERTCP_H + +// End of File