realtimenetprots/sipfw/SIP/ConnectionMgr/src/MTlsTransStateOwner.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          : MTlsTransStateOwner.h
       
    16 * Part of       : ConnectionMgr
       
    17 * Version       : SIP/5.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 
       
    29 #ifndef MTLSTRANSSTATEOWNER_H
       
    30 #define MTLSTRANSSTATEOWNER_H
       
    31 
       
    32 //  INCLUDES
       
    33 #include "TTlsTransStateBase.h"
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 class CSender;
       
    37 
       
    38 // CLASS DECLARATION
       
    39 /**
       
    40 *  Defines an interface of CTlsTransport used by state classes.
       
    41 */
       
    42 class MTlsTransStateOwner
       
    43 	{
       
    44     public:
       
    45     
       
    46         virtual void ChangeStateL( TTlsTransStateBase::TState aState ) = 0;
       
    47     	
       
    48     	virtual void ConnectTcpL() = 0;
       
    49     	
       
    50     	virtual void ConnectTlsL() = 0;
       
    51     	
       
    52     	virtual TBool Retry() const = 0;
       
    53     	
       
    54     	virtual void ResetL() = 0;
       
    55     	
       
    56     	virtual void Destroy() = 0;
       
    57 
       
    58         virtual CSender& GetSender() = 0;
       
    59         
       
    60         virtual void StartTimerL( TInt aTimeout ) = 0;
       
    61         
       
    62         virtual  void StopTimer() = 0;
       
    63         
       
    64         virtual TBool HasSecureSocket() = 0;
       
    65 		
       
    66         virtual TBool MatchCertificateL() = 0;
       
    67         
       
    68 	};
       
    69 	
       
    70 #endif // MTLSTRANSSTATEOWNER_H
       
    71 
       
    72 // End of File
       
    73