equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __BTSACACTIVEPACKETDROPIOCTL_H__ |
|
20 #define __BTSACACTIVEPACKETDROPIOCTL_H__ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <e32std.h> |
|
24 #include <es_sock.h> |
|
25 |
|
26 /** |
|
27 * An observer pattern. |
|
28 * |
|
29 * This class defines an observer interface for BT Audio Streamer. |
|
30 * |
|
31 * @lib btaudiostreamer.lib |
|
32 * @since S60 v3.1 |
|
33 */ |
|
34 class MActivePacketDropIoctlObserver |
|
35 { |
|
36 public: |
|
37 virtual void PacketsDropped(TInt aPacketCount) = 0; |
|
38 }; |
|
39 |
|
40 class CActivePacketDropIoctl : public CActive |
|
41 { |
|
42 public: |
|
43 static CActivePacketDropIoctl* NewL(MActivePacketDropIoctlObserver &aObserver, RSocket &aPendingSocket); |
|
44 CActivePacketDropIoctl(MActivePacketDropIoctlObserver &aObserver, RSocket &aPendingSocket); |
|
45 ~CActivePacketDropIoctl(); |
|
46 void DoCancel(); |
|
47 void RunL(); |
|
48 void Start(); |
|
49 private: |
|
50 MActivePacketDropIoctlObserver &iObserver; |
|
51 RSocket iPendingSocket; |
|
52 TPckgBuf<TInt> iPacketsLostPkgBuf; |
|
53 }; |
|
54 |
|
55 #endif |