diff -r 000000000000 -r a03f92240627 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 Tue Feb 02 01:57:15 2010 +0200 @@ -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 CloseTCPConnection( TUint aPort ) = 0; + + /** + * Close all TCP connections from listening & connecting ports + */ + virtual void CloseAllTCPConnections() = 0; + }; + +#endif // MPROTOCOLOBSERVERTCP_H + +// End of File