realtimenetprots/sipfw/SIP/TransactionUser/inc/MTransactionFinder.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          : MTransactionFinder.h
       
    16 * Part of       : TransactionUser
       
    17 * Version       : SIP/4.0
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 #ifndef MTRANSACTIONFINDER_H
       
    29 #define MTRANSACTIONFINDER_H
       
    30 
       
    31 // INCLUDES
       
    32 #include "CSipConnectionMgr.h"
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class CSIPMessage;
       
    36 class MReceiverObserver;
       
    37 
       
    38 // CLASS DECLARATION
       
    39 class MTransactionFinder
       
    40 {
       
    41 public:
       
    42 	virtual ~MTransactionFinder() {}
       
    43 
       
    44     /**
       
    45 	 * Searches for the transaction which should handle the SIP message.
       
    46 	 *
       
    47 	 * @pre
       
    48 	 * @post	
       
    49 	 * 
       
    50 	 * @param aMsg SIP message
       
    51 	 *
       
    52 	 * @return value Pointer to the MReceiverObserver interface of the found
       
    53 	 *	transaction, NULL if not found. Ownership is not transferred.
       
    54 	 */	
       
    55 	virtual MReceiverObserver* Search(CSIPMessage& aMsg) = 0;
       
    56 
       
    57 	/**
       
    58 	 * An ICMP occurred on the specified remote address.
       
    59 	 *
       
    60 	 * @pre
       
    61 	 * @post
       
    62 	 *
       
    63 	 * @param aAddress Remote address on which the error occurred
       
    64 	 * @param aError Identifies the ICMP error
       
    65 	 */
       
    66 	virtual void IcmpErrorL(const TInetAddr& aAddress,
       
    67 							CSipConnectionMgr::TICMPError aError) = 0;
       
    68 };
       
    69 
       
    70 #endif // end of MTRANSACTIONFINDER_H
       
    71 
       
    72 // End of File