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