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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
21 #ifndef BLUETOOTH_DUT_MODE_H
22 #define BLUETOOTH_DUT_MODE_H
25 #include <bluetooth/hci/hcitypes.h>
27 class RHCIServerSession;
29 _LIT(KBluetoothDutModePanic, "DutModeClient");
31 NONSHARABLE_CLASS(RBluetoothDutMode)
33 API used to control the Bluetooth Device Under Test Mode
40 enum TBluetoothDutModePanic
42 EApiUsedWhenHandleIsNotOpen = 0,
43 EHandleIsAlreadyOpen = 1,
46 enum TBluetoothDutModeFunctionIds
48 EHCIActivateDutMode = 0,
49 EHCIDeactivateDutMode = 1,
53 IMPORT_C RBluetoothDutMode();
56 IMPORT_C void Close();
58 // Device Under Test methods
59 IMPORT_C TInt ActivateDutMode() const;
60 IMPORT_C TInt DeactivateDutMode() const;
63 // private copy c'tor to prevent shallow copy of iHCIServerSession
64 RBluetoothDutMode(const RBluetoothDutMode&);
67 RHCIServerSession* iHCIServerSession;
69 TUint32 iReserved1; // Padding for possible future "per-copy" state.
72 #endif // BLUETOOTH_DUT_MODE_H