realtimenetprots/sipfw/ProfileAgent/Client/Inc/SipProfileCleanupItem.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2003-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        : sipprofilecleanupitem.h
       
    16 * Part of     : SIP Profile Client
       
    17 * Interface   : private
       
    18 * The cleanup class used when roll back in case of failure
       
    19 * Version     : 1.0
       
    20 *
       
    21 */
       
    22 
       
    23 
       
    24 
       
    25 #ifndef CSIPPROFILECLEANUPITEM_H
       
    26 #define CSIPPROFILECLEANUPITEM_H
       
    27 
       
    28 /**
       
    29 *@internalComponent
       
    30 */
       
    31 
       
    32 //  INCLUDES
       
    33 
       
    34 #include <e32base.h>
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 class CSIPProfile;
       
    38 class CSIPConcreteProfile;
       
    39 class CSIPProfileRegistryBase;
       
    40 class CSIPProfileITC;
       
    41 
       
    42 // CLASS DECLARATION
       
    43 
       
    44 /**
       
    45  * Class used with CleanupStack to provide roll back mechanism
       
    46  * in case of failure.
       
    47  */
       
    48 class CSIPProfileCleanupItem : public CBase
       
    49 	{
       
    50 	public: 
       
    51 
       
    52 		/** 
       
    53 		* Constructor
       
    54 		*/
       
    55 		CSIPProfileCleanupItem(CSIPProfileITC* aITC);
       
    56 
       
    57 		/** 
       
    58 		* Clean up in case of failure
       
    59 		*/
       
    60 		void CrashRevertL();
       
    61 
       
    62 	public: 
       
    63 
       
    64 		TUint iProfileId;
       
    65 		TBool iStored;
       
    66 		CSIPConcreteProfile* iConcreteProfile;
       
    67 		CSIPProfile* iManagedProfile;
       
    68 		CSIPProfileITC* iITC;
       
    69 	};
       
    70 
       
    71 #endif