|
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 "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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 */ |
|
23 |
|
24 #ifndef __MESSAGINGTESTUTILITY2_H__ |
|
25 #define __MESSAGINGTESTUTILITY2_H__ |
|
26 |
|
27 #include <e32std.h> |
|
28 |
|
29 //DeleteMessageStore headers: |
|
30 #include <msvstd.h> |
|
31 |
|
32 //GetDir headers: |
|
33 #include <f32file.h> |
|
34 |
|
35 _LIT(KTestServerName,"!MessagingTestUtilityServer2"); |
|
36 _LIT(KTestServerImg,"MessagingTestUtilityServer2"); // EXE name |
|
37 |
|
38 |
|
39 /** |
|
40 Performes the operation of deleting the messagestore, making, deleting a directory |
|
41 */ |
|
42 class RMessagingTestUtilityServer2 : public RSessionBase |
|
43 { |
|
44 public: |
|
45 IMPORT_C TInt Connect(); |
|
46 IMPORT_C TInt DeleteMessageStore(const TMsvId aMsvId); |
|
47 IMPORT_C TInt KillProcess(const TProcessId aProcessId); |
|
48 IMPORT_C TInt CopyFile(const TDesC& aSrc, const TDesC& aDest); |
|
49 IMPORT_C TInt DeleteFile(const TDesC& aPath); |
|
50 IMPORT_C TInt MkDir(const TDesC& aPath); |
|
51 IMPORT_C TInt RmDir(const TDesC& aPath); |
|
52 IMPORT_C TInt GetDirL(const TDesC& aPath, const TUint aEntryAttMask,const TUint aEntrySortKey, CDir*& aDir); |
|
53 IMPORT_C TBool FileExists(const TDesC& aFileName); |
|
54 IMPORT_C TInt EventHandlerInit(); |
|
55 IMPORT_C TInt EventHandlerAdd(const TDesC& aFlag, const TDesC& aCall); |
|
56 IMPORT_C TInt EventHandlerCheck(); |
|
57 |
|
58 IMPORT_C TInt MountDrive(TInt aDrive); |
|
59 IMPORT_C TInt UnMountDrive(TInt aDrive); |
|
60 |
|
61 }; |
|
62 |
|
63 |
|
64 enum TMessagingTestUtilityService2 |
|
65 { |
|
66 EDeleteMessageStore, |
|
67 EKillProcess, |
|
68 ECopyFile, |
|
69 EDeleteFile, |
|
70 EMkDir, |
|
71 ERmDir, |
|
72 EGetDir, |
|
73 EGetDirCount, |
|
74 EGetDirEntry, |
|
75 EFileExists, |
|
76 EEventHandlerInit, |
|
77 EEventHandlerAdd, |
|
78 EEventHandlerCheck, |
|
79 EMount, |
|
80 EUnMount |
|
81 }; |
|
82 |
|
83 |
|
84 /** |
|
85 Array of directory entries that has been read into memory from the file system. |
|
86 It can be read and sorted by user programs, but cannot be created by them. |
|
87 |
|
88 @see CDir |
|
89 */ |
|
90 class CDirDerived : public CDir |
|
91 { |
|
92 public: |
|
93 static CDirDerived* NewL(); |
|
94 void AddL(const TEntry& aEntry); |
|
95 }; |
|
96 |
|
97 #endif //__MESSAGINGTESTUTILITY2_H__ |