installationservices/swtransactionservices/inc_private/integrityservices.h
changeset 42 d17dc5398051
parent 24 84a16765cd86
equal deleted inserted replaced
37:6e7b00453237 42:d17dc5398051
     1 /*
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    26 #ifndef __INTEGRITYSERVICES_H__
    26 #ifndef __INTEGRITYSERVICES_H__
    27 #define __INTEGRITYSERVICES_H__
    27 #define __INTEGRITYSERVICES_H__
    28 
    28 
    29 #include <e32base.h>
    29 #include <e32base.h>
    30 #include <f32file.h>
    30 #include <f32file.h>
       
    31 #include <e32ldr_private.h>
    31 #include <usif/sts/stsdefs.h>
    32 #include <usif/sts/stsdefs.h>
    32 #include "integrityservicesevent.h"
    33 #include "integrityservicesevent.h"
    33 
    34 
    34 
    35 
    35 class RFs;
    36 class RFs;
   197 		 *                 however if any of the transactions fail to roll back properly the function finally
   198 		 *                 however if any of the transactions fail to roll back properly the function finally
   198 		 *                 will leave with the latest error encountered. (After it has tried to roll back all!)    
   199 		 *                 will leave with the latest error encountered. (After it has tried to roll back all!)    
   199 		 */
   200 		 */
   200 		static void RollbackAllL();
   201 		static void RollbackAllL();
   201 
   202 
   202 
       
   203 		/**
       
   204 		 * Creates a backup file by copying the source to a defined backup name. This MUST be used for executables.
       
   205 		 * The source files will then be deleted by invoking RLoader::Delete
       
   206 		 * @param aSource	the file to backup
       
   207 		 * @param aBackup	the name of the backup file
       
   208 		*/
       
   209 		void CopyToBackupL(const TDesC& aSource, const TDesC& aBackup);
       
   210 
       
   211 		/**
   203 		/**
   212 		 * Failure types - indicate when to simulate power failure during
   204 		 * Failure types - indicate when to simulate power failure during
   213 		 * testing
   205 		 * testing
   214 		 */
   206 		 */
   215 		enum TFailType
   207 		enum TFailType