|
1 // Copyright (c) 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 /** |
|
17 @file |
|
18 @publishedPartner |
|
19 */ |
|
20 |
|
21 #ifndef BLUETOOTH_DUT_MODE_H |
|
22 #define BLUETOOTH_DUT_MODE_H |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <bluetooth/hci/hcitypes.h> |
|
26 |
|
27 class RHCIServerSession; |
|
28 |
|
29 _LIT(KBluetoothDutModePanic, "DutModeClient"); |
|
30 |
|
31 NONSHARABLE_CLASS(RBluetoothDutMode) |
|
32 /** |
|
33 API used to control the Bluetooth Device Under Test Mode |
|
34 |
|
35 @publishedPartner |
|
36 @released |
|
37 */ |
|
38 { |
|
39 public: |
|
40 enum TBluetoothDutModePanic |
|
41 { |
|
42 EApiUsedWhenHandleIsNotOpen = 0, |
|
43 EHandleIsAlreadyOpen = 1, |
|
44 }; |
|
45 |
|
46 enum TBluetoothDutModeFunctionIds |
|
47 { |
|
48 EHCIActivateDutMode = 0, |
|
49 EHCIDeactivateDutMode = 1, |
|
50 }; |
|
51 |
|
52 public: |
|
53 IMPORT_C RBluetoothDutMode(); |
|
54 |
|
55 IMPORT_C TInt Open(); |
|
56 IMPORT_C void Close(); |
|
57 |
|
58 // Device Under Test methods |
|
59 IMPORT_C TInt ActivateDutMode() const; |
|
60 IMPORT_C TInt DeactivateDutMode() const; |
|
61 |
|
62 private: |
|
63 // private copy c'tor to prevent shallow copy of iHCIServerSession |
|
64 RBluetoothDutMode(const RBluetoothDutMode&); |
|
65 |
|
66 private: |
|
67 RHCIServerSession* iHCIServerSession; |
|
68 |
|
69 TUint32 iReserved1; // Padding for possible future "per-copy" state. |
|
70 }; |
|
71 |
|
72 #endif // BLUETOOTH_DUT_MODE_H |