|
1 // Copyright (c) 2005-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 "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 __CSEARCHORDERTEST__ |
|
17 #define __CSEARCHORDERTEST__ |
|
18 |
|
19 // Source |
|
20 //_LIT(KHelpPathFileAOnZ, "Z:\\System\\Help\\SearchTestA.hlp"); |
|
21 _LIT(KHelpPathFileCOnZ, "z:\\System\\Data\\THlpmodel\\PlatSecSearchTestC.hlp"); |
|
22 _LIT(KHelpPathFileFOnZ, "z:\\System\\Data\\THlpmodel\\PlatSecSearchTestF.hlp"); |
|
23 //_LIT(KHelpPathFileZOnZ, "Z:\\Resource\\Help\\SearchTestZ.hlp"); |
|
24 |
|
25 // Destination |
|
26 //_LIT(KHelpPathFileA, "A:\\Resource\\Help\\PlatSecSearchTest.hlp"); |
|
27 _LIT(KHelpPathFileC, "C:\\Resource\\Help\\PlatSecSearchTest.hlp"); |
|
28 _LIT(KHelpPathFileMMC, "\\Resource\\Help\\PlatSecSearchTest.hlp"); |
|
29 //_LIT(KHelpPathFileZ, "Z:\\Resource\\Help\\SearchTest.hlp"); |
|
30 |
|
31 // Catagorise Define for Catagory UID 0x01007000 |
|
32 _LIT(KDriveZ,"Drive Z:"); |
|
33 //_LIT(KDriveA,"Drive A:"); |
|
34 _LIT(KDriveC,"Drive C:"); |
|
35 _LIT(KDriveF,"Drive F:"); |
|
36 |
|
37 |
|
38 class CSearchOrderTest : public CBase |
|
39 { |
|
40 public: |
|
41 enum TOperation |
|
42 { |
|
43 EInitial_DeleteAll, |
|
44 // EMoveToA, This operation is ignored as A: is not supported on the hardware. |
|
45 EMoveToC, |
|
46 EMoveToMMC, |
|
47 EFinal_DeleteAll, |
|
48 }; |
|
49 |
|
50 static CSearchOrderTest* NewL( RTest& aTest ); |
|
51 void ConstructL(); |
|
52 ~CSearchOrderTest(); |
|
53 |
|
54 void MoveHelpFileL( TInt aOperation ); |
|
55 TBool CheckCategoryListL(TInt aEvent, CDesCArray* aCatList ) const; |
|
56 |
|
57 private: |
|
58 CSearchOrderTest( RTest& aTest ); |
|
59 |
|
60 void DeleteAllHelpFilesL(); |
|
61 void CopyHlpFileL(const TDesC& aFileName, const TDesC& aToFileName); |
|
62 |
|
63 TDriveUnit MMCDriveL(); |
|
64 CArrayFix<TInt>* DrivesOfMediaTypeL( TMediaType aMedia, RFs& aFs, TBool aStopAtFirst ); |
|
65 // Some data |
|
66 RFs iFsSession; |
|
67 RTest& iTest; |
|
68 // First drive encountered mapped to MMC card. |
|
69 TDriveName iMMCDrive; |
|
70 // Destination path for Help file on the MMC card. |
|
71 TFileName iHelpPathFileMMC; |
|
72 }; |
|
73 #endif |