1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef SDFILEOPERATIONSBASE_H |
|
17 #define SDFILEOPERATIONSBASE_H |
|
18 |
|
19 #include "sdbase.h" |
|
20 |
|
21 /* |
|
22 Base class for file operation test steps. |
|
23 */ |
|
24 class CBaseTestSDFileOperationsBase : public CBaseTestSDBase |
|
25 { |
|
26 public: |
|
27 virtual TVerdict doTestStepPreambleL(); |
|
28 |
|
29 protected: |
|
30 TInt iRootEntries; |
|
31 TInt iExpandRootFilesNumber; |
|
32 TInt iExpandRootFilesSize; |
|
33 TInt iDeleteRootDirs; |
|
34 TInt iSubDirEntries; |
|
35 TInt iLargeFileSize; |
|
36 TPtrC iVolumeName; |
|
37 TInt iExpectedErrorCode; |
|
38 |
|
39 TInt SetVolumeName(); |
|
40 TInt CreateRootEntries(); |
|
41 TInt ExpandRootFiles(); |
|
42 TInt DeleteRootDirs(); |
|
43 TInt RenameFile(const TDesC& aOldFile, const TDesC& aNewFile); |
|
44 TInt CreateSubDirEntries(const TDesC& aDir); |
|
45 TInt DeleteSubDirEntries(const TDesC& aDir); |
|
46 TInt ExpandFile(const TDesC& aFile, TInt aSize); |
|
47 TInt CopyFile(const TDesC& aOrig, const TDesC& aDest); |
|
48 TInt MoveFile(const TDesC& aOrig, const TDesC& aDest); |
|
49 }; |
|
50 |
|
51 #endif // SDFILEOPERATIONSBASE_H |
|