|
1 /* |
|
2 * Copyright (c) 2008 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: Client-Server message passing declarations |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CLIENTSRV_H |
|
20 #define CLIENTSRV_H |
|
21 |
|
22 // Opcodes used in message passing between client and server |
|
23 enum TBTHidIpc |
|
24 { |
|
25 EBTHIDServConnectDevice, /*!< Connect New device command */ |
|
26 EBTHIDServCancelConnect, /*!< Cancel connection attempt */ |
|
27 EBTHIDServDisconnectDevice, /*!< Disconnect device command */ |
|
28 EBTHidSrvDisconnectAllGracefully,/*!< Disconnect all device command */ |
|
29 EBTHIDServDropConnection, /*!< Close Bluetooth Connection */ |
|
30 EBTHIDServNotifyConnectionChange,/*!< Notify connection status change */ |
|
31 EBTHIDServCancelNotify, /*!< Cancel outstanding notify command */ |
|
32 EBTHIDServConnectionCount, /*!< Get connection count command */ |
|
33 EBTHIDServConnectionStatus, /*!< Get connection details command */ |
|
34 EBTHIDServFindConnection, /*!< Get connection details command */ |
|
35 EBTHIDServAuthoriseFlag, /*!< Get Authorisation flag command */ |
|
36 EBTHIDServSetAuthoriseFlag, /*!< Set Authorisation flag command */ |
|
37 EBTHIDServIsAlreadyPairedFlag, /*!< Get pairing status for given address */ |
|
38 EBTHIDServIsTrusted, /*!< Get trust status for given address */ |
|
39 EBTHIDServIsConnected, /*!< Get Connected status for given address */ |
|
40 EBTHIDServConnectionDetails, /*!< Get connection details */ |
|
41 EBTHIDGetConnections, /*!< Get HID connections addresses */ |
|
42 EInvalidIpc |
|
43 }; |
|
44 |
|
45 // server name |
|
46 _LIT(KBTHidSrvName,"bthidserver"); |
|
47 _LIT(KBTHidServerFilename, "bthidserver.exe"); |
|
48 |
|
49 // UID of the server |
|
50 const TUid KUidBTHidServer = |
|
51 { |
|
52 0x2001E301 |
|
53 }; |
|
54 |
|
55 //the server version. A version must be specified when |
|
56 //creating a session with the server |
|
57 const TUint KBTHIDServMajorVersionNumber = 0; |
|
58 const TUint KBTHIDServMinorVersionNumber = 1; |
|
59 const TUint KBTHIDServBuildVersionNumber = 1; |
|
60 |
|
61 typedef TPckgBuf<TInt> TBTHidParamPkg; |
|
62 |
|
63 #endif // _BTACCCLIENTSRV_H |