bluetoothengine/btsac/inc/btsacActivePacketDropIoctl.h
author Stefan Karlsson <stefan.karlsson@nokia.com>
Sun, 28 Mar 2010 16:36:52 +0100
branchCompilerCompatibility
changeset 12 e769fd13b1f0
parent 0 f63038272f30
permissions -rw-r--r--
Fixed "extra qualification" syntax errors.

/*
* 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 <e32base.h>
#include <e32std.h>
#include <es_sock.h> 

/**
 *  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<TInt> iPacketsLostPkgBuf;
	};

#endif