diff -r 9f17f914e828 -r 32ba20339036 bluetooth/btstack/linkmgr/physicallinks.h --- a/bluetooth/btstack/linkmgr/physicallinks.h Tue May 11 17:15:36 2010 +0300 +++ b/bluetooth/btstack/linkmgr/physicallinks.h Tue May 25 13:54:55 2010 +0300 @@ -70,17 +70,20 @@ { public: static CArbitrationDelayTimer* NewL(CPhysicalLink* aParent); - void Start(TBool aLocalPriority=EFalse); - + TInt Start(TBool aImmediate, TBool aLocalPriority); + void Restart(); + private: CArbitrationDelayTimer(CPhysicalLink* aParent); void ConstructL(); void RunL(); - void DoCancel(); - + void DoCancel(); + TInt DoArbitrate(); + void CancelButPreserveLocalPriority(); + private: - CPhysicalLink* iParent; - TBool iLocalPriority; + CPhysicalLink* iParent; + TBool iLocalPriority; }; @@ -296,15 +299,14 @@ inline TBTBasebandRole Role() const; void SetDeviceNamePending(TBool aBool); TInt GetOption(TUint aLevel,TUint aName,TDes8& aOption) const; - TInt Connect(TBasebandPageTimePolicy aPolicy=EPagingNormal); + void Connect(TBasebandPageTimePolicy aPolicy=EPagingNormal); TInt SCOConnect(); TInt SCOConnect(const TUint16 aUserHVPacketTypes); TInt SynchronousConnect(TUint aTransmitBandwidth, TUint aReceiveBandwidth, TUint16 aMaxLatency, TUint16 aVoiceSettings, TUint8 aRetransmissionEffort, const TBTSyncPacketTypes aUserPacketTypes); - TInt PassiveOpen(); - TInt Arbitrate(TBool aImmediately=EFalse, TBool aLocalPriority=EFalse); - TInt DoArbitrate(TBool aLocalPriority); + TInt Arbitrate(TBool aImmediately=EFalse, TBool aLocalPriority=EFalse); + TInt DoArbitrate(TBool aLocalPriority); void SetPassKey(const TDesC8& aPassKey); const TBTPinCode& PassKey() const; @@ -374,6 +376,8 @@ virtual void RoleChange(THCIErrorCode aErr, const TBTDevAddr& aAddr, TBTBasebandRole aRole); virtual void ClockOffset(THCIErrorCode aErr, THCIConnHandle aConnH, TBasebandTime aClockOffset); virtual void RemoteName(THCIErrorCode aErr, const TBTDevAddr& aAddr, const TBTDeviceName8& aName); + + void ConnectionComplete(TInt aResult, const TBTConnect& aConn); TBool LinkKeyRequestPending(); void SetAuthenticationPending(TUint8 aFlag); @@ -553,7 +557,7 @@ TDeltaTimerEntry iOverrideLPMTimerEntry; TLinkPolicy iLinkPolicy; - TUint8 iPreviousRequestedModeMask; + TUint16 iPreviousRequestedModeMask; TBool iOverrideParkRequests; //for maybe temporary unpark TBool iOverrideLPMRequests; //for maybe temporary force active TBool iLPMOverrideTimerQueued;