|
1 /* |
|
2 * Copyright (c) 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 #ifndef __toolscmdcodes_H__ |
|
19 #define __toolscmdcodes_H__ |
|
20 |
|
21 // System includes |
|
22 #include <e32std.h> |
|
23 |
|
24 // Constants |
|
25 const TInt KToolsServerMajorVN = 1; |
|
26 const TInt KToolsServerMinorVN = 0; |
|
27 const TInt KToolsServerBuildVN = 0; |
|
28 |
|
29 // asynchronous cmd slot count |
|
30 const TInt KToolsServerAsynchronousSlotCount = 16; |
|
31 |
|
32 // Uids for platform security |
|
33 |
|
34 const TUid KToolsClientUid = { 0x200170B4 }; |
|
35 const TUid KToolsServerUid = { 0x200170B5 }; |
|
36 const TUid KTraceServerUid = { 0x200170B6 }; |
|
37 const TUid KTrkServerUid = { 0x200170B7 }; |
|
38 |
|
39 const TUid KMetroTrkAppUid = { 0x200170BB }; |
|
40 const TUid KMetroTrkExeUid = { 0x200159E2 }; |
|
41 |
|
42 |
|
43 |
|
44 // Literal constants |
|
45 |
|
46 |
|
47 |
|
48 #if defined(EKA2) |
|
49 _LIT(KToolsServerName, "!toolsstarterserver"); |
|
50 #else |
|
51 _LIT(KToolsServerName, "toolsstarterserver"); |
|
52 #endif |
|
53 |
|
54 _LIT(KToolsServerImageName, "toolsstarterserver"); |
|
55 |
|
56 _LIT(KServerIntiatedSessionPanic, "toolsstarterserver"); |
|
57 |
|
58 #define KCapabilityCustomCheck 0 |
|
59 |
|
60 |
|
61 // Enumerations |
|
62 // |
|
63 // The cmd-codes used to communicate between the Tools client and Tools server. |
|
64 // |
|
65 enum TToolsCmdCode |
|
66 { |
|
67 //Custom check |
|
68 EToolsCmdCodeFirst = KCapabilityCustomCheck, |
|
69 EToolsCmdCodeGetUsbConnStatus, |
|
70 EToolsCmdCodeConnNotify, |
|
71 EToolCmdCodeConnNotifyCancel, |
|
72 EToolsCmdCodeShutDownServer, |
|
73 EToolsCmdCodeLast |
|
74 }; |
|
75 |
|
76 // Identifies server-initiated panics relating to the client session. |
|
77 enum TToolsServerInitiatedClientPanic |
|
78 { |
|
79 //This panic occurs when the client requests a copy of any data attached to any |
|
80 //read request, but does not supply enough buffer space to contain the data. |
|
81 EToolsServerInitiatedClientPanicInsufficientRoomForFileData = 1, |
|
82 |
|
83 //This panic usually occurs when a client method tries to write to a descriptor |
|
84 //(sometimes asynchronously), and the client-supplied descriptor is not valid. |
|
85 EToolsServerInitiatedClientPanicBadDescriptor = 2, |
|
86 |
|
87 |
|
88 //This panic occurs when a client tries to perform an invalid operation. |
|
89 EToolsServerInitiatedClientPanicInvalidOperation = 3, |
|
90 }; |
|
91 |
|
92 #endif //__toolscmdCodes_H__ |
|
93 |