realtimenetprots/sipfw/SIP/ConnectionMgr/inc/MContext.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Name          : MContext.h
       
    16 * Part of       : ConnectionMgr
       
    17 * Version       : SIP/4.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 #ifndef __MCONTEXT_H__
       
    29 #define __MCONTEXT_H__
       
    30 
       
    31 #include <e32base.h>
       
    32 
       
    33 class COutgoingData;
       
    34 class TSIPTransportParams;
       
    35 class TInetAddr;
       
    36 class MSigCompController;
       
    37 class CSIPMessage;
       
    38 class CSocketContainer;
       
    39 
       
    40 class MContext
       
    41 	{
       
    42 public:
       
    43     virtual CSocketContainer& SocketContainer() = 0;
       
    44     virtual CSocketContainer* SocketContainer(TUint aIPAddrFamily) = 0;
       
    45 	virtual void ReceivedDataL(HBufC8* aData,
       
    46 							   const TInetAddr& aRemoteAddr,
       
    47 							   TBool aCompressed) = 0;
       
    48 	virtual void ReceivedDataL(CSIPMessage* aMessage,
       
    49 							   const TInetAddr& aRemoteAddr,
       
    50 							   TInt aError,
       
    51 							   TBool aCompressed) = 0;
       
    52 	virtual MSigCompController* SigCompHandler() = 0;
       
    53 	virtual void ResetSocketL() = 0;
       
    54 	virtual void ContinueL() = 0;
       
    55 	virtual TBool StopL() = 0;
       
    56 	virtual TBool ConnectionOpenL() = 0;
       
    57 	virtual TBool DisconnectedL() = 0;
       
    58 	virtual TInt Remove() = 0;
       
    59 	virtual void ReRouteL(TUint aProtocol, 
       
    60 	                      COutgoingData* aData) = 0;
       
    61 	virtual TUint32 IapId() = 0;
       
    62 	virtual void Sending( TBool aIsSending ) = 0;
       
    63 	};
       
    64 
       
    65 #endif // end of __MCONTEXT_H__
       
    66 
       
    67 // End of File