installationservices/swtransactionservices/inc/stsrecovery.h
changeset 24 84a16765cd86
equal deleted inserted replaced
6:aba6b8104af3 24:84a16765cd86
       
     1 /*
       
     2 * Copyright (c) 2008-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 the License "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 *
       
    16 */
       
    17 
       
    18 
       
    19 /**
       
    20  @file
       
    21  @internalComponent
       
    22  @released
       
    23 */
       
    24 
       
    25 
       
    26 #ifndef __STSRECOVERY_H__
       
    27 #define __STSRECOVERY_H__
       
    28 
       
    29 #include <scs/scsclient.h>
       
    30 #include <f32file.h>
       
    31 #include <usif/sts/stsdefs.h>
       
    32 
       
    33 namespace Usif
       
    34 {
       
    35 
       
    36    /**
       
    37 	 This class provides provides synchronous interface to the STS server for rolling back all pending transactions.
       
    38 
       
    39 	 @internalComponent
       
    40 	 @released
       
    41 	 */
       
    42 	class RStsRecoverySession : public RScsClientBase
       
    43 		{
       
    44 	public:
       
    45 		IMPORT_C RStsRecoverySession();
       
    46 
       
    47 		/**
       
    48 		 Connects to the STS server and instructs it to roll back all pending transactions. 
       
    49 		 Does nothing if there are no pending transactions.
       
    50 		 @leave system wide error codes
       
    51 		 */
       
    52 		IMPORT_C void RollbackAllPendingL();
       
    53 
       
    54 		/**
       
    55 		 Closes this session to the STS server.
       
    56 		 */
       
    57 		IMPORT_C void Close();
       
    58 
       
    59 	private:
       
    60 		/**
       
    61 		 Connects to the STS server and starts it if necessary
       
    62 		 @leave system wide error codes
       
    63 		 */
       
    64 		void ConnectL();
       
    65 
       
    66 		};//class RStsRecoverySession   
       
    67 	}////namespace Usif
       
    68 
       
    69 #endif