diff options
author | samr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109> | 2008-12-15 20:05:58 +0000 |
---|---|---|
committer | samr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109> | 2008-12-15 20:05:58 +0000 |
commit | 761963e51215c233b49819ae1d685f935c33d33e (patch) | |
tree | 6f39cef62500d2e667a117ad962fd39c83498e10 /include | |
parent | 45f0c5213d76a9272900b1f045cbb58863fa6dff (diff) | |
download | nohands-761963e51215c233b49819ae1d685f935c33d33e.tar.gz |
Improve handling of auto-reconnection, notification of the "connecting"
state for HfpSession/AudioGateway, and name lookups.
git-svn-id: http://nohands.svn.sourceforge.net/svnroot/nohands/trunk@69 126591fb-c623-4b62-a76d-97a8e4f34109
Diffstat (limited to 'include')
-rw-r--r-- | include/libhfp/hfp.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/libhfp/hfp.h b/include/libhfp/hfp.h index 8bf1b3f..5d67006 100644 --- a/include/libhfp/hfp.h +++ b/include/libhfp/hfp.h @@ -95,21 +95,24 @@ private: char *m_svc_desc; sdp_record_t *m_sdp_rec; - TimerNotifier *m_timer; - - void Timeout(TimerNotifier*); + void AutoReconnectTimeout(TimerNotifier*); bool m_sco_enable; ListItem m_autoreconnect_list; int m_autoreconnect_timeout; bool m_autoreconnect_set; + TimerNotifier *m_autoreconnect_timer; + + ListItem m_autoreconnect_now_list; + bool m_autoreconnect_now_set; + TimerNotifier *m_autoreconnect_now_timer; bool m_complaint_sco_mtu; bool m_complaint_sco_vs; bool m_complaint_sco_listen; - void AddAutoReconnect(HfpSession *sessp); + void AddAutoReconnect(HfpSession *sessp, bool now = false); void RemoveAutoReconnect(HfpSession *sessp); bool ScoListen(ErrorInfo *error); |