bluetooth/btstack/avdtp/avdtpDirectChannel.h
branchRCL_3
changeset 56 015fa7494bd2
parent 41 786b94c6f0a4
equal deleted inserted replaced
49:10183c6d2913 56:015fa7494bd2
    31 NONSHARABLE_CLASS(CDirectChannel) : public CTransportChannel
    31 NONSHARABLE_CLASS(CDirectChannel) : public CTransportChannel
    32 	{
    32 	{
    33 public:
    33 public:
    34 	static CDirectChannel* NewL(CAvdtpProtocol& aProtocol,
    34 	static CDirectChannel* NewL(CAvdtpProtocol& aProtocol,
    35 								const TBTDevAddr& aRemoteDevice);
    35 								const TBTDevAddr& aRemoteDevice);
       
    36 	~CDirectChannel();
       
    37 
    36 	//from base
    38 	//from base
    37 // can just forward down to L2CAP...
    39 // can just forward down to L2CAP...
    38 
    40 
    39 	virtual void DetachTransportSession(CUserPlaneTransportSession& aSession, TAvdtpTransportSessionType aType);
    41 	virtual void DetachTransportSession(CUserPlaneTransportSession& aSession, TAvdtpTransportSessionType aType);
    40 	virtual TInt AttachTransportSession(CUserPlaneTransportSession& aSession, TAvdtpTransportSessionType aType, TL2CapConfig::TChannelPriority aPriority = TL2CapConfig::ELow);
    42 	virtual TInt AttachTransportSession(CUserPlaneTransportSession& aSession, TAvdtpTransportSessionType aType);
    41 	virtual TBool CouldAttachSession(const TAvdtpSockAddr& aAddr);
    43 	virtual TBool CouldAttachSession(const TAvdtpSockAddr& aAddr);
    42 	virtual TTCID TCID() const;
    44 	virtual TTCID TCID() const;
    43 	CServProviderBase* ObtainSAP();
    45 	CServProviderBase* ObtainSAP();
    44 
    46 
    45 	virtual TUint SendPacket(TTSID aTSID, RMBufChain& aPacket);
    47 	virtual TUint SendPacket(TTSID aTSID, RMBufChain& aPacket);
    46 
    48 
    47 	virtual void TransportSessionBlocked(TAvdtpTransportSessionType aSession, TBool aBlocked);
    49 	virtual void TransportSessionBlocked(TAvdtpTransportSessionType aSession, TBool aBlocked);
    48 	
    50 	
    49 private:
    51 private:
    50 	CDirectChannel(CAvdtpProtocol& aProtocol, const TBTDevAddr& aRemoteDevice);
    52 	CDirectChannel(CAvdtpProtocol& aProtocol, const TBTDevAddr& aRemoteDevice);
    51 	void UpdateChannelPriority();
    53  
    52 	
       
    53 private:
    54 private:
    54 // interesting stuff from l2cap
    55 // interesting stuff from l2cap
    55 	virtual void NewData(TUint aCount);
    56 	virtual void NewData(TUint aCount);
    56 	virtual void CanSend();
    57 	virtual void CanSend();
    57 	virtual void Error(TInt aError,TUint aOperationMask=EErrorAllOperations);
    58 	virtual void Error(TInt aError,TUint aOperationMask=EErrorAllOperations);
    58 	virtual void Disconnect();
    59 	virtual void Disconnect();
    59 
    60 
    60 private:
    61 private:
    61 	CUserPlaneTransportSession*	iTransportSession;			// non-owned
    62 	CUserPlaneTransportSession*	iTransportSession;			// non-owned
    62 	TBool						iTransportSessionBlocked;
    63 	TBool						iTransportSessionBlocked;
    63 	TL2CapConfig::TChannelPriority iChannelPriority;
       
    64 	};
    64 	};
    65 	
    65 	
    66 #endif //AVDTPDIRECTCHANNEL_H
    66 #endif //AVDTPDIRECTCHANNEL_H