realtimenetprots/sipfw/SIP/ConnectionMgr/inc/CSenderUdp.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2007-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          : CSenderUdp.h
       
    16 * Part of       : ConnectionMgr
       
    17 * Version       : SIP/5.1 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 #ifndef CSENDERUDP_H
       
    28 #define CSENDERUDP_H
       
    29 
       
    30 #include "CSender.h"
       
    31 #include <e32base.h>
       
    32 
       
    33 class CSIPMessage;
       
    34 class MContext;
       
    35 class COwnerSettingsList;
       
    36 
       
    37 
       
    38 class CSenderUdp : public CSender
       
    39 	{
       
    40 public:
       
    41 
       
    42 	static CSenderUdp* NewL( MContext& aContext, COwnerSettingsList& aSettingsList );
       
    43 	static CSenderUdp* NewLC( MContext& aContext, COwnerSettingsList& aSettingsList );
       
    44 	~CSenderUdp();
       
    45 	
       
    46 	TBool SendL( const TSIPTransportParams& aTransportParams,
       
    47 	             CSIPMessage& aMessage,
       
    48 			     const TInetAddr& aAddr,
       
    49 			     TUint aOrigTransport,
       
    50 			     TRequestStatus& aStat,
       
    51 			     TBool aStore,
       
    52 			     TBool aForceUDP );
       
    53 	void SendL( COutgoingData* aData );
       
    54 	void SendNextL();
       
    55 	void SetSendPermission( TBool aPermissionToSend );
       
    56 	
       
    57 private:
       
    58 
       
    59 	CSenderUdp( MContext& aContext, COwnerSettingsList& aSettingsList );
       
    60 	           
       
    61 	void EncodeAndSendL( TBool aRemoveFromList );
       
    62 	
       
    63 private: // Data
       
    64 
       
    65     TBool iPermissionToSend;
       
    66 	
       
    67 	};
       
    68 	
       
    69 #endif // end of CSENDERUDP_H
       
    70 
       
    71 // End of File