diff -r 000000000000 -r f63038272f30 bluetoothengine/btsac/inc/btsacActivePacketDropIoctl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bluetoothengine/btsac/inc/btsacActivePacketDropIoctl.h Mon Jan 18 20:28:57 2010 +0200 @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: ?Description +* +*/ + + +#ifndef __BTSACACTIVEPACKETDROPIOCTL_H__ +#define __BTSACACTIVEPACKETDROPIOCTL_H__ + +#include +#include +#include + +/** + * An observer pattern. + * + * This class defines an observer interface for BT Audio Streamer. + * + * @lib btaudiostreamer.lib + * @since S60 v3.1 + */ +class MActivePacketDropIoctlObserver + { + public: + virtual void PacketsDropped(TInt aPacketCount) = 0; + }; + +class CActivePacketDropIoctl : public CActive + { +public: + static CActivePacketDropIoctl* NewL(MActivePacketDropIoctlObserver &aObserver, RSocket &aPendingSocket); + CActivePacketDropIoctl(MActivePacketDropIoctlObserver &aObserver, RSocket &aPendingSocket); + ~CActivePacketDropIoctl(); + void DoCancel(); + void RunL(); + void Start(); +private: + MActivePacketDropIoctlObserver &iObserver; + RSocket iPendingSocket; + TPckgBuf iPacketsLostPkgBuf; + }; + +#endif