diff -r 5cc91383ab1e -r 7333d7932ef7 installationservices/swtransactionservices/inc/stsrecovery.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/installationservices/swtransactionservices/inc/stsrecovery.h Tue Aug 31 15:21:33 2010 +0300 @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +/** + @file + @internalComponent + @released +*/ + + +#ifndef __STSRECOVERY_H__ +#define __STSRECOVERY_H__ + +#include +#include +#include + +namespace Usif +{ + + /** + This class provides provides synchronous interface to the STS server for rolling back all pending transactions. + + @internalComponent + @released + */ + class RStsRecoverySession : public RScsClientBase + { + public: + IMPORT_C RStsRecoverySession(); + + /** + Connects to the STS server and instructs it to roll back all pending transactions. + Does nothing if there are no pending transactions. + @leave system wide error codes + */ + IMPORT_C void RollbackAllPendingL(); + + /** + Closes this session to the STS server. + */ + IMPORT_C void Close(); + + private: + /** + Connects to the STS server and starts it if necessary + @leave system wide error codes + */ + void ConnectL(); + + };//class RStsRecoverySession + }////namespace Usif + +#endif