bluetooth/btstack/avdtp/avdtpMediaSession.h
changeset 0 29b1cd4cb562
child 51 20ac952a623c
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Defines the avdtp media transport session
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #ifndef AVDTPMEDIASESSION_H
       
    24 #define AVDTPMEDIASESSION_H
       
    25 
       
    26 #include "avdtpTransportSession.h"
       
    27 
       
    28 class CTransportChannel;
       
    29 class CAvdtpSAP;
       
    30 class CAvdtpProtocol;
       
    31 
       
    32 NONSHARABLE_CLASS(CMediaSession) : public CUserPlaneTransportSession
       
    33 	{
       
    34 public:
       
    35 	static CMediaSession* NewLC(CAvdtpProtocol& aProtocol, CAvdtpSAP& aSAP, CAVStream& aStream);
       
    36 	static CMediaSession* NewL(CAvdtpProtocol& aProtocol, CAvdtpSAP& aSAP, CAVStream& aStream);
       
    37 
       
    38 	virtual TInt GetOption(TUint aLevel, TUint aName, TDes8& aOption) const;
       
    39 	virtual void Ioctl(TUint aLevel, TUint aName,  const TDesC8* aOption);
       
    40 	virtual TInt Send(RMBufChain& aData, TUint aOptions, TSockAddr* aAddr);
       
    41 	virtual void CanSend();
       
    42 
       
    43 	virtual TInt DoActiveOpen();
       
    44 
       
    45 private:
       
    46 	CMediaSession(CAvdtpProtocol& aProtocol, CAvdtpSAP& aSAP, CAVStream& aStream);
       
    47 	void ConstructL();
       
    48 	void DoSend(RMBufChain& aData);
       
    49 	void ReceivePacketLost();
       
    50 	
       
    51 	TBool iNotifyMediaPacketDroppedFlag;
       
    52 	TInt iPacketsLost; // Cumulative packets lost since last IOCTL
       
    53 	};
       
    54 
       
    55 #endif //AVDTPMEDIASESSION_H