diff options
author | Frédéric Brière <fbriere@fbriere.net> | 2019-07-12 19:01:41 -0400 |
---|---|---|
committer | Frédéric Brière <fbriere@fbriere.net> | 2019-07-13 13:54:11 -0400 |
commit | 1e9f091f39a32193b0671e9dfbfb657dd45fec3e (patch) | |
tree | f681d42a408178bcdf31f784a27d027ec6b0b291 /src/sys_settings.h | |
parent | 05082ae12051821b1d969e6672d9e4e5afe1bc07 (diff) | |
download | twinkle-1e9f091f39a32193b0671e9dfbfb657dd45fec3e.tar twinkle-1e9f091f39a32193b0671e9dfbfb657dd45fec3e.tar.gz twinkle-1e9f091f39a32193b0671e9dfbfb657dd45fec3e.tar.lz twinkle-1e9f091f39a32193b0671e9dfbfb657dd45fec3e.tar.xz twinkle-1e9f091f39a32193b0671e9dfbfb657dd45fec3e.zip |
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
Diffstat (limited to 'src/sys_settings.h')
-rw-r--r-- | src/sys_settings.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); |