realtimenetprots/sipfw/SIP/Dialogs/src/Confirmed.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          : Confirmed.h
       
    16 * Part of       : SIPDialogs
       
    17 * Version       : SIP/6.0 
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 
       
    29 #ifndef TCONFIRMED_H
       
    30 #define TCONFIRMED_H
       
    31 
       
    32 #include "DialogStateBase.h"
       
    33 
       
    34 /**
       
    35  * Dialog item has four states, confirmed is one of those. 
       
    36  * A dialog is in confirmed state
       
    37  * when 2xx response is received for request.
       
    38  */
       
    39 class TConfirmed : public TDialogStateBase
       
    40     {
       
    41 public:
       
    42 
       
    43 	TConfirmed (MDialogContext& aDialog,
       
    44 	            TDialogStateBase& aStateTerminated);
       
    45 
       
    46 	const TDesC8& Name () const;
       
    47 
       
    48     void SendL (TTransactionId& aTransactionId,
       
    49                 CSIPRequest* aRequest,
       
    50                 CTransactionItemBase& aTransactionItem,
       
    51                 CURIContainer& aRemoteTarget);
       
    52 
       
    53 	void SendL (CTransactionItemBase& aTransactionItem,
       
    54 				CSIPResponse* aResponse);
       
    55 
       
    56 	void ReceiveL (CTransactionItemBase& aTransactionItem,
       
    57                    CSIPResponse* aResponse);
       
    58 	
       
    59 	void ReceiveL (TTransactionId aTransactionId,
       
    60                    CSIPRequest* aRequest);
       
    61 
       
    62 	void EndTransaction (CTransactionItemBase& aTransactionItem,
       
    63                          TInt aReason);
       
    64 
       
    65     void GetState (CSIPInternalStates::TState& aState);
       
    66 
       
    67 private:
       
    68 	
       
    69 	TDialogStateBase& iStateTerminated;
       
    70 
       
    71 private: // For testing purposes
       
    72 
       
    73 	UNIT_TEST(CConfirmedStateTest)
       
    74     };
       
    75 
       
    76 #endif // TCONFIRMED_H
       
    77 
       
    78 // End of File