From 1e9f091f39a32193b0671e9dfbfb657dd45fec3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Bri=C3=A8re?= Date: Fri, 12 Jul 2019 19:01:41 -0400 Subject: Add an option to prevent an idle session while a call is in progress Having the session marked as idle while a call is in progress could trigger certain actions (such as locking the screen, logging out automatically, or suspending the system) which could be undesirable in this situation. Closes #123 --- src/sys_settings.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/sys_settings.h') diff --git a/src/sys_settings.h b/src/sys_settings.h index 232c4f9..5a74fc4 100644 --- a/src/sys_settings.h +++ b/src/sys_settings.h @@ -156,6 +156,9 @@ private: string gui_browser_cmd; //@} + // Inhibit idle session + bool inhibit_idle_session; + // Address book settings bool ab_show_sip_only; bool ab_lookup_name; @@ -295,6 +298,7 @@ public: int get_gui_auto_show_timeout(void) const; string get_gui_browser_cmd(void) const; bool get_gui_show_call_osd() const; + bool get_inhibit_idle_session() const; bool get_ab_show_sip_only(void) const; bool get_ab_lookup_name(void) const; bool get_ab_override_display(void) const; @@ -351,6 +355,7 @@ public: void set_gui_auto_show_timeout(int timeout); void set_gui_browser_cmd(const string &s); void set_gui_show_call_osd(bool b); + void set_inhibit_idle_session(bool b); void set_ab_show_sip_only(bool b); void set_ab_lookup_name(bool b); void set_ab_override_display(bool b); -- cgit v1.2.3