diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/bluetooth/hci/hctlchannelobserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/epoc32/include/bluetooth/hci/hctlchannelobserver.h Tue Mar 16 16:12:26 2010 +0000 @@ -0,0 +1,73 @@ +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + + + +/** + @file + @publishedPartner +*/ + +#ifndef HCTLCHANNELOBSERVER_H +#define HCTLCHANNELOBSERVER_H + +/** Definition of the HCI transport channel type */ +typedef TUint16 THCITransportChannel; + +/** No HCI transport channels available for sending */ +static const THCITransportChannel KHCITransportNoChannels = 0x0000; + +/** Command HCI transport channel available for sending */ +static const THCITransportChannel KHCITransportCommandChannel = 0x0001; + +/** ACL data HCI transport channel available for sending */ +static const THCITransportChannel KHCITransportACLDataChannel = 0x0002; + +/** SCO data HCI transport channel available for sending */ +static const THCITransportChannel KHCITransportSCODataChannel = 0x0004; + +/** All HCI transport channels available for sending */ +static const THCITransportChannel KHCITransportAllChannels = static_cast(KHCITransportCommandChannel | + KHCITransportACLDataChannel | + KHCITransportSCODataChannel); + +/** The UID associated with the MHCTLChannelObserver interface. */ +const TInt KHCTLChannelObserverUid = 0x102736EF; + +/** +API for observing information regarding the status of a HCTL channel. + +This should be implemented by the stack so it can control the multiplexing +of the command and data sent over the HCTL. +*/ +class MHCTLChannelObserver + { +public: + /** + Indication that a HCTL channel has been opened. + + @param aChannel A bitmask containing the channels which are now open. + */ + virtual void MhcoChannelOpen(THCITransportChannel aChannels) =0; + + /** + Indication that a HCTL channel has been closed. + + @param aChannel A bitmask containing the channels which are now closed. + */ + virtual void MhcoChannelClosed(THCITransportChannel aChannels) =0; + }; + +#endif // HCTLCHANNELOBSERVER_H