realtimenetprots/sipfw/SIP/TransactionUser/inc/MServerTaFactory.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          : MServerTaFactory.h
       
    16 * Part of       : TransactionUser
       
    17 * Version       : SIP/4.0
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 
       
    29 #ifndef MSERVERTAFACTORY_H
       
    30 #define MSERVERTAFACTORY_H
       
    31 
       
    32 #include "SipStackServerDefs.h"
       
    33 
       
    34 class CSIPRequest;
       
    35 class MReceiverObserver;
       
    36 class TSIPTransportParams;
       
    37 
       
    38 
       
    39 class MServerTaFactory
       
    40 	{
       
    41 public:
       
    42 	virtual ~MServerTaFactory() {}
       
    43 
       
    44 	/**
       
    45 	 * Creates resources for a new transaction to handle a SIP request that
       
    46 	 * was received from the network.
       
    47 	 *
       
    48 	 * @pre
       
    49 	 * @post
       
    50 	 *
       
    51 	 * @see
       
    52 	 *
       
    53 	 * @param aRequest IN: SIP request for which a new transaction should be
       
    54 	 *	created. MServerTaFactory inspects the request to determine the type
       
    55 	 *  of the transaction that will be created. Ownership is not transferred.
       
    56      * @param aParams The transport params including the IAP ID.
       
    57 	 * @param aTransactionId OUT: TransactionId identifying the new transaction.
       
    58 	 * @return value Pointer to the receive interface of the new transaction.
       
    59 	 *	Caller should use MReceiverObserver::ReceiveL() after creating the
       
    60 	 *  transaction. Ownership is not transferred.
       
    61 	 *  If NULL, then the aRequest should be dropped.
       
    62 	 */
       
    63 	virtual MReceiverObserver* NewTransactionL(
       
    64 	                                CSIPRequest& aRequest,
       
    65                                     const TSIPTransportParams& aParams,
       
    66 		                            TTransactionId& aTransactionId) = 0;
       
    67 	};
       
    68 
       
    69 #endif // MSERVERTAFACTORY_H
       
    70 
       
    71 // End of File