realtimenetprots/sipfw/SIP/sipapi/src/MessageHeaderCleanup.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2004-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        : MessageHeaderCleanup.h
       
    16 * Part of     : SIP Client
       
    17 * Interface   : SDK API, SIP Client API
       
    18 * Version     : 1.0
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 /**
       
    26  @internalComponent
       
    27 */
       
    28 
       
    29 
       
    30 #ifndef MESSAGEHEADERCLEANUP_H
       
    31 #define MESSAGEHEADERCLEANUP_H
       
    32 
       
    33 
       
    34 //  INCLUDES
       
    35 #include <e32base.h>
       
    36 
       
    37 // FORWARD DECLARATIONS
       
    38 class CSIPHeaderBase;
       
    39 class CSIPMessageElements;
       
    40 
       
    41 
       
    42 /**
       
    43 * Class for detaching user headers from CSIPMessageElements in case leave
       
    44 * occurs.
       
    45 */
       
    46 class TMessageHeaderCleanup
       
    47 	{
       
    48 	public:
       
    49 		TMessageHeaderCleanup(CSIPMessageElements& aElements);		
       
    50 
       
    51 		void AddHeader(CSIPHeaderBase& aHeader);
       
    52 
       
    53 		static void Cleanup(TAny* aHeaderCleanup);
       
    54 
       
    55 	private:
       
    56 		CSIPMessageElements& iElements;
       
    57 		
       
    58 		CSIPHeaderBase* iHeader;
       
    59 		CSIPHeaderBase* iHeader2;
       
    60 		CSIPHeaderBase* iHeader3;
       
    61 	};
       
    62 
       
    63 #endif