realtimenetprots/sipfw/SIP/sipapi/src/csipdialogresponsesender.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        : sipdialogresponsesender.h
       
    16 * Part of     : SIP Client
       
    17 * Interface   : SDK API, SIP API
       
    18 * Version     : 1.0
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 /**
       
    26  @internalComponent
       
    27 */
       
    28 
       
    29 #ifndef CSIPDIALOGRESPONSESENDER_H
       
    30 #define CSIPDIALOGRESPONSESENDER_H
       
    31 
       
    32 //  INCLUDES
       
    33 #include <e32base.h>
       
    34 #include "msipresponsesender.h"
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 /**
       
    41 *  For sending responses that are related to dialog, 
       
    42 *
       
    43 *  @lib n/a
       
    44 */
       
    45 
       
    46 class CSIPDialogResponseSender : public CBase, public MSIPResponseSender
       
    47 	{
       
    48     public: // Constructors and destructor
       
    49         
       
    50         /**
       
    51         * Two-phased constructor.	
       
    52         */
       
    53         static CSIPDialogResponseSender*
       
    54         	NewL(CSIPDialogImplementation& aDialog);
       
    55 
       
    56 		/** 
       
    57 		* Destructor
       
    58 		*/
       
    59 		~CSIPDialogResponseSender();
       
    60 
       
    61     public: // From MSIPResponseSender
       
    62 		
       
    63         void SendResponseL(CSIPClientConnection& aConnection,                                   
       
    64                            const CSIPResponseElements& aElements,
       
    65 						   TUint32 aRequestId,
       
    66                            TBool aAffectsDialogState,
       
    67                            TBool aTargetRefresh);
       
    68 
       
    69     	CSIPDialogImplementation* Dialog() const;
       
    70 
       
    71     private: // Constructor
       
    72         CSIPDialogResponseSender(CSIPDialogImplementation& aDialog);
       
    73 
       
    74 	private: // Data
       
    75 	
       
    76         CSIPDialogImplementation& iDialog;
       
    77     };
       
    78 
       
    79 #endif