|
1 // Copyright (c) 1999-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 // |
|
15 |
|
16 #ifndef BTMANCLIENTSERVER_H |
|
17 #define BTMANCLIENTSERVER_H |
|
18 |
|
19 /* |
|
20 * BT Manager Client and Server Utilities |
|
21 */ |
|
22 |
|
23 // server name |
|
24 _LIT(KBTManServerName,"!BTManServer"); |
|
25 |
|
26 |
|
27 #ifdef __BTMANSERVER_NO_PROCESSES__ |
|
28 _LIT(KBTManServerImg,"BTManServer"); //<DLL/EXE name |
|
29 const TInt KBTManServerStackSize=0x2000; // 8KB |
|
30 const TInt KBTManServerInitHeapSize=0x1000; // 4KB |
|
31 const TInt KBTManServerMaxHeapSize=0x1000000; // 16MB |
|
32 #else |
|
33 _LIT(KBTManServerImg,"BTManServer"); //<DLL/EXE name |
|
34 #endif |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 const TUid KBTManServerUid3={0x100069cc}; |
|
40 |
|
41 // A version must be specified when creating a session with the server |
|
42 const TUint KBTManServerMajorVersionNumber=2; |
|
43 const TUint KBTManServerMinorVersionNumber=0; |
|
44 const TUint KBTManServerBuildVersionNumber=0; |
|
45 |
|
46 // opcodes used in message passing between client and server |
|
47 enum TBTManServerRequest |
|
48 { |
|
49 // EBTManCreateRegistrySession, //can't do this...no named sessions :-( |
|
50 EBTManCreateHostResolverSubSession, |
|
51 EBTManCreateRegistrySubSession, |
|
52 EBTManCreateCommPortSettingsSubSession, |
|
53 EBTManCreateLocalDeviceSubSession, |
|
54 EBTManRegistrySearch, |
|
55 EBTManExtractRegistryDataIntoServer, |
|
56 EBTManRetrieveRegistryData, |
|
57 EBTManCloseSubSession, |
|
58 EBTManCancelRequest, |
|
59 EBTRegistryRetrieveDevice, |
|
60 EBTRegistryAddDevice, |
|
61 EBTRegistryGetNamelessDevice, |
|
62 EBTRegistryModifyBluetoothName, |
|
63 EBTRegistryModifyFriendlyName, |
|
64 EBTRegistryModifyNamelessDevice, |
|
65 EBTRegistryDeleteDevices, |
|
66 EBTRegistryDeleteLinkKey, |
|
67 EBTRegistryUnpairView, |
|
68 EBTRegistryCloseView, |
|
69 EBTRegistryGetLocalDevice, |
|
70 EBTRegistryUpdateLocalDevice, |
|
71 EBTRegistryGetCommPortSettings, |
|
72 EBTRegistryUpdateCommPortSettings, |
|
73 EBTRegistryDeleteCommPortSettings, |
|
74 // EBTRegistryNotifyLocalDeviceChange, |
|
75 // EBTRegistryNotifyRegistryChange, |
|
76 EBTHostResolverDeviceRequest, |
|
77 EBTHostResolverGetNextDeviceRequest, |
|
78 EBTHostResolverDeviceModifyDevice, |
|
79 EBTHostResolverNotifyRequest, |
|
80 EBTManSetHeapFailure, |
|
81 EBTManSubSessionCount, |
|
82 EBTRegistryNotifyViewChange, |
|
83 // ** Important note ** |
|
84 // If new function enums are added, the security policy |
|
85 // in BtManSec.h *will* need to be amended. |
|
86 // ******************** |
|
87 }; |
|
88 |
|
89 _LIT(KBTManClientPanic, "BTManClient"); |
|
90 |
|
91 enum TBTManClientPanics |
|
92 { |
|
93 EBTManClientBadResultRetrieveState, |
|
94 EBTManClientResultRetrieveAlreadyActive, |
|
95 }; |
|
96 |
|
97 #endif |