|
1 /* |
|
2 * Copyright (c) 2004 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: Common constant definitions for FileHandler |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __FILEHANDLERCONSTANTS_H__ |
|
19 #define __FILEHANDLERCONSTANTS_H__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32std.h> |
|
23 |
|
24 /** |
|
25 * Unique name for the server used as: |
|
26 * - server name |
|
27 * - server executable file name (+.exe) |
|
28 * - server thread name on WINS |
|
29 * - server semaphore name |
|
30 */ |
|
31 _LIT( KTcFileHandlerName, "TCFileHandlerServ" ); |
|
32 |
|
33 /** |
|
34 * The server version. A version must be specifyed when creating |
|
35 * a session with the server. It is used to verify that the |
|
36 * client dll is compatible with the server. Doesn't matter |
|
37 * much in our case. |
|
38 */ |
|
39 const TUint KTcFileHandlerMajorVersion = 1; |
|
40 const TUint KTcFileHandlerMinorVersion = 0; |
|
41 const TUint KTcFileHandlerBuildVersion = 0; |
|
42 |
|
43 /// Opcodes used in message passing between client and server. |
|
44 /// Used to identify functions in the server sessions. |
|
45 enum TTcFileHandlerRequest |
|
46 { |
|
47 /// Client-server framework opcodes |
|
48 ECloseSession, |
|
49 EConfigAndStart, |
|
50 ECreateFile, |
|
51 ECopyFile, |
|
52 EDeleteFile |
|
53 }; |
|
54 |
|
55 /// Number of message slots (1 read, 1 write, 1 cancel, 1 spare) |
|
56 /// As recommended by Symbian. |
|
57 const TUint KTcFileHandlerMessageSlots( 4 ); |
|
58 |
|
59 |
|
60 /** |
|
61 * Global function for PANICing the server |
|
62 * |
|
63 * @param aPanic Panic code |
|
64 */ |
|
65 void PanicServer( TInt aPanic ); |
|
66 |
|
67 #endif // __FILEHANDLERCONSTANTS_H__ |