installationservices/swtransactionservices/source/client/stsrecovery.cpp
branchRCL_3
changeset 65 7333d7932ef7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/installationservices/swtransactionservices/source/client/stsrecovery.cpp	Tue Aug 31 15:21:33 2010 +0300
@@ -0,0 +1,60 @@
+/*
+* 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
+*/
+
+#include <usif/sts/sts.h>
+#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
+#include "stsrecovery.h"
+#endif //SYMBIAN_ENABLE_SPLIT_HEADERS
+#include "stscommon.h"
+#include <e32cmn.h>
+#include <e32uid.h>
+
+namespace Usif
+	{
+	void RStsRecoverySession::ConnectL()
+		{
+		TInt err = RScsClientBase::Connect(KStsServerName, 
+				                           TVersion(KStsVerMajor, KStsVerMinor, KStsVerBuild), 
+				                           KStsServerImgName, 
+				                           TUidType (KExecutableImageUid, KNullUid, TUid::Uid(KUidStsServer)));
+		User::LeaveIfError(err);
+		}
+	
+	EXPORT_C RStsRecoverySession::RStsRecoverySession()
+		:	RScsClientBase()
+		{
+		}
+
+	EXPORT_C void RStsRecoverySession::Close()
+		{
+		RScsClientBase::Close();
+		}
+
+	EXPORT_C void RStsRecoverySession::RollbackAllPendingL()
+		{
+		ConnectL();
+		User::LeaveIfError(CallSessionFunction(ERollBackAllPending));
+		Close();
+		}
+	}