installationservices/swtransactionservices/test/tintegrityservices/inc/tintegrityservicesclientserver.h
branchRCL_3
changeset 25 7333d7932ef7
equal deleted inserted replaced
24:5cc91383ab1e 25:7333d7932ef7
       
     1 /*
       
     2 * Copyright (c) 2006-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 * Common header for the server and the client.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __INTEGRITYSERVICESCLIENTSERVER_H__
       
    21 #define __INTEGRITYSERVICESCLIENTSERVER_H__
       
    22 
       
    23 #include <e32std.h>
       
    24 #include "tintegrityservicescommon.h"
       
    25 
       
    26 /**
       
    27  * @test
       
    28  * @internalTechnology
       
    29  */
       
    30 class RIntegrityServicesServerSession : public RSessionBase
       
    31 	{
       
    32 public:
       
    33 	/**
       
    34 	 * Connect to the server, attempt to start it if it is not yet running
       
    35 	 * @return KErrNone if successful, or an error code
       
    36 	 */
       
    37 	IMPORT_C TInt Connect();
       
    38 	IMPORT_C void AddL(const TDesC& aFileName);
       
    39 	IMPORT_C void RemoveL(const TDesC& aFileName);
       
    40 	IMPORT_C void TemporaryL(const TDesC& aFileName);
       
    41 	IMPORT_C void CommitL();
       
    42 	IMPORT_C void RollBackL(TBool aAllTransactions);
       
    43 	IMPORT_C void SetSimulatedFailureL(TPtrC aFailType, TPtrC aFailPosition, TPtrC aFileName);
       
    44 	IMPORT_C void CreateNewTestFileL(const TDesC& aFileName);
       
    45 	IMPORT_C void CreateTempTestFileL(const TDesC& aFileName);
       
    46 	};
       
    47 #endif // #ifndef __INTEGRITYSERVICESCLIENTSERVER_H__