|
1 // Copyright (c) 2004-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 // API for the Remote Control server side. |
|
15 // Used by the Remote Control client side library. |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 */ |
|
23 |
|
24 #ifndef REMCONSERVER_H |
|
25 #define REMCONSERVER_H |
|
26 |
|
27 #include <remcon/remconserverid.h> |
|
28 #include <remconaddress.h> |
|
29 #include "operationinformation.h" |
|
30 |
|
31 _LIT(KRemConServerImg, "z:\\sys\\bin\\remconserver.exe"); |
|
32 |
|
33 _LIT(KRemConServerName, "!RemConSrv"); |
|
34 |
|
35 /** Version numbers for the RemCon server. */ |
|
36 const TInt8 KRemConSrvMajorVersionNumber = 1; |
|
37 const TInt8 KRemConSrvMinorVersionNumber = 1; |
|
38 const TInt16 KRemConSrvBuildNumber = 0; |
|
39 |
|
40 /** IPC messages supported by the RemCon server. */ |
|
41 enum TRemConIpc |
|
42 { |
|
43 ERemConDbgMarkHeap = 0, // the 1st message must be 0 for CPolicyServer to start up |
|
44 ERemConDbgCheckHeap = 1, |
|
45 ERemConDbgMarkEnd = 2, |
|
46 ERemConDbgFailNext = 3, |
|
47 ERemConSetClientType = 4, |
|
48 ERemConGoConnectionOriented = 5, |
|
49 ERemConGoConnectionless = 6, |
|
50 ERemConConnectBearer = 7, |
|
51 ERemConConnectBearerCancel = 8, |
|
52 ERemConDisconnectBearer = 9, |
|
53 ERemConDisconnectBearerCancel = 10, |
|
54 ERemConSend = 11, |
|
55 ERemConSendCancel = 12, |
|
56 ERemConReceive = 13, |
|
57 ERemConReceiveCancel = 14, |
|
58 ERemConGetConnectionCount = 15, |
|
59 ERemConGetConnections = 16, |
|
60 ERemConNotifyConnectionsChange = 17, |
|
61 ERemConNotifyConnectionsChangeCancel = 18, |
|
62 ERemConRegisterInterestedAPIs = 19, |
|
63 ERemConSendUnreliable = 20, |
|
64 ERemConSendNotify = 21, |
|
65 // |
|
66 // Next entry should always come last. |
|
67 // |
|
68 ERemConNumberOfServerFunctions |
|
69 }; |
|
70 |
|
71 _LIT(KRemConBulkServerName, "!RemConBulkSrv"); |
|
72 |
|
73 /** Version numbers for RemCon bulk server. */ |
|
74 const TInt8 KRemConBulkSrvMajorVersionNumber = 1; |
|
75 const TInt8 KRemConBulkSrvMinorVersionNumber = 1; |
|
76 const TInt16 KRemConBulkSrvBuildNumber = 0; |
|
77 |
|
78 /** IPC messages supported by the RemCon bulk server. */ |
|
79 enum TRemConBulkIpc |
|
80 { |
|
81 ERemConBulkDbgMarkHeap = 0, // the 1st message must be 0 for CPolicyServer to start up |
|
82 ERemConBulkDbgCheckHeap = 1, |
|
83 ERemConBulkDbgMarkEnd = 2, |
|
84 ERemConBulkDbgFailNext = 3, |
|
85 ERemConBulkSend = 4, |
|
86 ERemConBulkSendCancel = 5, |
|
87 ERemConBulkReceive = 6, |
|
88 ERemConBulkReceiveCancel = 7, |
|
89 ERemConBulkRegisterInterestedAPIs = 8, |
|
90 ERemConBulkSendUnreliable = 9, |
|
91 // |
|
92 // Next entry should always come last. |
|
93 // |
|
94 ERemConBulkNumberOfServerFunctions |
|
95 }; |
|
96 |
|
97 /** |
|
98 This struct wraps up the information passed from the server to the client in |
|
99 an RRemCon::Receive operation. |
|
100 It does not however include the arbitrary-length narrow descriptor 'associated |
|
101 data' as this cannot be wrapped in a struct. |
|
102 We do it this way because TIpcArgs only has four slots and we've used all of |
|
103 them. |
|
104 */ |
|
105 NONSHARABLE_STRUCT(TRemConClientReceivePackage) |
|
106 { |
|
107 TUid iInterfaceUid; |
|
108 TUint iOperationId; |
|
109 TRemConMessageSubType iMessageSubType; |
|
110 TRemConAddress iRemoteAddress; |
|
111 }; |
|
112 |
|
113 #endif // REMCONSERVER_H |