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