installationservices/swi/test/tintegrityservices/tintegrityservicesclientserver.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/installationservices/swi/test/tintegrityservices/tintegrityservicesclientserver.h Thu Dec 17 08:51:10 2009 +0200
@@ -0,0 +1,74 @@
+/*
+* Copyright (c) 2006-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:
+* Common header for the server and the client.
+*
+*/
+
+
+#ifndef __INTEGRITYSERVICESCLIENTSERVER_H__
+#define __INTEGRITYSERVICESCLIENTSERVER_H__
+
+#include <e32std.h>
+#include "integrityservices.h"
+#include "integrityservicesevent.h"
+
+namespace Swi
+{
+ namespace Test
+ {
+ const TUid KIntegrityServicesServerUid3 = { 0x101FE68A };
+
+/**
+ * @test
+ * @internalTechnology
+ */
+enum TIntegrityServicesServerMessage
+ {
+ EAdd,
+ ERemove,
+ ETemporary,
+ ECommit,
+ ERollBack,
+ ESetSimulatedFailure,
+ ECreateNewTestFile,
+ ECreateTempTestFile
+ };
+
+/**
+ * @test
+ * @internalTechnology
+ */
+class RIntegrityServicesServerSession : public RSessionBase
+ {
+public:
+ /**
+ * Connect to the server, attempt to start it if it is not yet running
+ * @return KErrNone if successful, or an error code
+ */
+ IMPORT_C TInt Connect();
+ IMPORT_C void AddL(const TDesC& aFileName);
+ IMPORT_C void RemoveL(const TDesC& aFileName);
+ IMPORT_C void TemporaryL(const TDesC& aFileName);
+ IMPORT_C void CommitL();
+ IMPORT_C void RollBackL(TBool aAllTransactions);
+ IMPORT_C void SetSimulatedFailure(TPtrC aFailType, TPtrC aFailPosition, TPtrC aFileName);
+ IMPORT_C void CreateNewTestFileL(const TDesC& aFileName);
+ IMPORT_C void CreateTempTestFileL(const TDesC& aFileName);
+ };
+
+ } // namespace Test
+} // namespace Swi
+
+#endif // #ifndef __INTEGRITYSERVICESCLIENTSERVER_H__