35 const TBTDevAddr& aRemoteDevice); |
35 const TBTDevAddr& aRemoteDevice); |
36 //from base |
36 //from base |
37 // can just forward down to L2CAP... |
37 // can just forward down to L2CAP... |
38 |
38 |
39 virtual void DetachTransportSession(CUserPlaneTransportSession& aSession, TAvdtpTransportSessionType aType); |
39 virtual void DetachTransportSession(CUserPlaneTransportSession& aSession, TAvdtpTransportSessionType aType); |
40 virtual TInt AttachTransportSession(CUserPlaneTransportSession& aSession, TAvdtpTransportSessionType aType); |
40 virtual TInt AttachTransportSession(CUserPlaneTransportSession& aSession, TAvdtpTransportSessionType aType, TL2CapConfig::TChannelPriority aPriority = TL2CapConfig::ELow); |
41 virtual TBool CouldAttachSession(const TAvdtpSockAddr& aAddr); |
41 virtual TBool CouldAttachSession(const TAvdtpSockAddr& aAddr); |
42 virtual TTCID TCID() const; |
42 virtual TTCID TCID() const; |
43 CServProviderBase* ObtainSAP(); |
43 CServProviderBase* ObtainSAP(); |
44 |
44 |
45 virtual TUint SendPacket(TTSID aTSID, RMBufChain& aPacket); |
45 virtual TUint SendPacket(TTSID aTSID, RMBufChain& aPacket); |
46 |
46 |
47 virtual void TransportSessionBlocked(TAvdtpTransportSessionType aSession, TBool aBlocked); |
47 virtual void TransportSessionBlocked(TAvdtpTransportSessionType aSession, TBool aBlocked); |
48 |
48 |
49 private: |
49 private: |
50 CDirectChannel(CAvdtpProtocol& aProtocol, const TBTDevAddr& aRemoteDevice); |
50 CDirectChannel(CAvdtpProtocol& aProtocol, const TBTDevAddr& aRemoteDevice); |
51 |
51 void UpdateChannelPriority(); |
|
52 |
52 private: |
53 private: |
53 // interesting stuff from l2cap |
54 // interesting stuff from l2cap |
54 virtual void NewData(TUint aCount); |
55 virtual void NewData(TUint aCount); |
55 virtual void CanSend(); |
56 virtual void CanSend(); |
56 virtual void Error(TInt aError,TUint aOperationMask=EErrorAllOperations); |
57 virtual void Error(TInt aError,TUint aOperationMask=EErrorAllOperations); |
57 virtual void Disconnect(); |
58 virtual void Disconnect(); |
58 |
59 |
59 private: |
60 private: |
60 CUserPlaneTransportSession* iTransportSession; // non-owned |
61 CUserPlaneTransportSession* iTransportSession; // non-owned |
61 TBool iTransportSessionBlocked; |
62 TBool iTransportSessionBlocked; |
|
63 TL2CapConfig::TChannelPriority iChannelPriority; |
62 }; |
64 }; |
63 |
65 |
64 #endif //AVDTPDIRECTCHANNEL_H |
66 #endif //AVDTPDIRECTCHANNEL_H |