|
1 /* |
|
2 * Copyright (c) 2008-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 * Defines the test step which deletes SCR database file. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalComponent |
|
23 @test |
|
24 */ |
|
25 |
|
26 #ifndef SCRDBDELETE_H |
|
27 #define SCRDBDELETE_H |
|
28 |
|
29 #include "tscrstep.h" |
|
30 #include "tscraccessor_client.h" |
|
31 class CScrTestServer; |
|
32 |
|
33 _LIT(KScrDeleteDbFileStep, "SCRDeleteDbFile"); |
|
34 _LIT(KScrCopyDbFileStep, "SCRCopyDbFile"); |
|
35 |
|
36 class CScrDeleteDbFileStep : public CScrTestStep |
|
37 /** |
|
38 TEF test step which deletes the SCR DB database. |
|
39 If the file cannot be deleted, it gives other tries in the specified amount of time. |
|
40 */ |
|
41 { |
|
42 public: |
|
43 CScrDeleteDbFileStep(CScrTestServer& aParent); |
|
44 |
|
45 protected: |
|
46 // From CScrTestStep |
|
47 void ImplTestStepPreambleL(); |
|
48 void ImplTestStepL(); |
|
49 void ImplTestStepPostambleL(); |
|
50 |
|
51 private: |
|
52 void DeleteFileL(const TDesC& aFilePath); |
|
53 |
|
54 private: |
|
55 RScrAccessor iScrAccessor; |
|
56 }; |
|
57 |
|
58 |
|
59 class CScrCopyDbFileStep : public CScrTestStep |
|
60 /** |
|
61 TEF test step which copies a SCR database into the given location. |
|
62 */ |
|
63 { |
|
64 public: |
|
65 CScrCopyDbFileStep(CScrTestServer& aParent); |
|
66 |
|
67 protected: |
|
68 // From CScrTestStep |
|
69 void ImplTestStepPreambleL(); |
|
70 void ImplTestStepL(); |
|
71 void ImplTestStepPostambleL(); |
|
72 |
|
73 private: |
|
74 RScrAccessor iScrAccessor; |
|
75 }; |
|
76 |
|
77 #endif /* SCRDBDELETE_H */ |