realtimenetprots/sipfw/SIP/ConnectionMgr/src/TTlsTransStateBase.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2005-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          : TTlsTransStateBase.h
       
    16 * Part of       : ConnectionMgr
       
    17 * Version       : SIP/5.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 
       
    29 #ifndef TTLSTRANSSTATEBASE_H
       
    30 #define TTLSTRANSSTATEBASE_H
       
    31 
       
    32 //  INCLUDES
       
    33 #include <e32base.h>
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 class TSIPTransportParams;
       
    37 class TInetAddr;
       
    38 class CSIPMessage;
       
    39 class MTlsTransStateOwner;
       
    40 
       
    41 // CLASS DECLARATION
       
    42 /**
       
    43 * A base class for TLS transport states.
       
    44 *
       
    45 */
       
    46 class TTlsTransStateBase
       
    47 	{
       
    48     public:	// State enums
       
    49     
       
    50         enum TState
       
    51             {
       
    52             ETcpConnecting,
       
    53             ETlsConnecting,
       
    54             ETlsConnected,
       
    55             EMaxStates
       
    56             };
       
    57 	    
       
    58 	public: // New functions
       
    59 	
       
    60 	    virtual void EnterL();
       
    61 	    
       
    62 	    virtual TBool ConnectionOpenL();
       
    63 	    
       
    64 	    virtual TBool DisconnectedL();
       
    65 	    
       
    66 	    virtual void SendToNetL( const TSIPTransportParams& aParams,
       
    67                                  const TInetAddr& aAddress, 
       
    68                                  CSIPMessage& aMessage, 
       
    69                                  TUint aOrigTransport,
       
    70                                  TRequestStatus& aStatus );
       
    71 
       
    72     protected: // Constructor
       
    73     
       
    74         TTlsTransStateBase( MTlsTransStateOwner& aOwner );
       
    75         
       
    76     protected: // Data
       
    77 
       
    78         MTlsTransStateOwner& iOwner;
       
    79 	};
       
    80 	
       
    81 #endif // TTLSTRANSSTATEBASE_H
       
    82 
       
    83 // End of File