epoc32/include/bluetooth/dutmode.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/bluetooth/dutmode.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,72 @@
     1.4 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +/**
    1.20 + @file
    1.21 + @publishedPartner
    1.22 +*/
    1.23 +
    1.24 +#ifndef BLUETOOTH_DUT_MODE_H
    1.25 +#define BLUETOOTH_DUT_MODE_H
    1.26 +
    1.27 +#include <e32base.h>
    1.28 +#include <bluetooth/hci/hcitypes.h>
    1.29 +
    1.30 +class RHCIServerSession;
    1.31 +
    1.32 +_LIT(KBluetoothDutModePanic, "DutModeClient");
    1.33 +
    1.34 +NONSHARABLE_CLASS(RBluetoothDutMode)
    1.35 +/**
    1.36 +API used to control the Bluetooth Device Under Test Mode
    1.37 +
    1.38 +@publishedPartner
    1.39 +@released
    1.40 +*/
    1.41 +	{
    1.42 +public:
    1.43 +	enum TBluetoothDutModePanic
    1.44 +		{
    1.45 +		EApiUsedWhenHandleIsNotOpen = 0,
    1.46 +		EHandleIsAlreadyOpen = 1,
    1.47 +		};
    1.48 +
    1.49 +	enum TBluetoothDutModeFunctionIds
    1.50 +		{
    1.51 +		EHCIActivateDutMode = 0,
    1.52 +		EHCIDeactivateDutMode = 1,
    1.53 +		};
    1.54 +
    1.55 +public:
    1.56 +	IMPORT_C RBluetoothDutMode();
    1.57 +
    1.58 +	IMPORT_C TInt Open();
    1.59 +	IMPORT_C void Close();
    1.60 +
    1.61 +	// Device Under Test methods
    1.62 +	IMPORT_C TInt ActivateDutMode() const;
    1.63 +	IMPORT_C TInt DeactivateDutMode() const;
    1.64 +
    1.65 +private:
    1.66 +	// private copy c'tor to prevent shallow copy of iHCIServerSession
    1.67 +	RBluetoothDutMode(const RBluetoothDutMode&);
    1.68 +		
    1.69 +private:
    1.70 +	RHCIServerSession* iHCIServerSession;
    1.71 +
    1.72 +	TUint32 iReserved1; // Padding for possible future "per-copy" state.
    1.73 +	};
    1.74 +
    1.75 +#endif // BLUETOOTH_DUT_MODE_H