diff options
author | Luboš Doležel <lubos@dolezel.info> | 2020-02-23 09:50:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-23 09:50:24 +0100 |
commit | 188bd0606473fee9d7a09e17b9980f7a16d4dc31 (patch) | |
tree | e3147fbe8243a91893e2e31cf1b7246869604430 /src/gui/gui.h | |
parent | e9e1b86afd75cb55c90bc6ce58fc9c2d0c025a3f (diff) | |
parent | 3d9fb0ac7490620a49a400b77ab8f851cdd4fcf5 (diff) | |
download | twinkle-188bd0606473fee9d7a09e17b9980f7a16d4dc31.tar twinkle-188bd0606473fee9d7a09e17b9980f7a16d4dc31.tar.gz twinkle-188bd0606473fee9d7a09e17b9980f7a16d4dc31.tar.lz twinkle-188bd0606473fee9d7a09e17b9980f7a16d4dc31.tar.xz twinkle-188bd0606473fee9d7a09e17b9980f7a16d4dc31.zip |
Merge pull request #154 from fbriere/feature/inhibit-idle-session
Add an option to prevent an idle session while a call is in progress
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r-- | src/gui/gui.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h index 3538afb..63f2cc9 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -43,6 +43,7 @@ using namespace std; // Forward declaration class MphoneForm; +class IdleSessionManager; // Length of redial list in combo boxes #define SIZE_REDIAL_LIST 10 @@ -65,6 +66,8 @@ class t_gui : public QObject, public t_userintf { Q_OBJECT private: MphoneForm *mainWindow; + + IdleSessionManager *m_idle_session_manager; // List of active instant messaging session. list<im::t_msg_session *> messageSessions; @@ -426,6 +429,10 @@ signals: void mw_update_call_history(); void mw_update_missed_call_status(int num_missed_calls); +public slots: + // Apply the current "inhibit_idle_session" setting + void updateInhibitIdleSession(); + private slots: /** * Update timers associated with message sessions. This @@ -433,6 +440,9 @@ private slots: */ void updateTimersMessageSessions(); + // Update the current idle/busy state + void updateIdleSessionState(); + bool do_cb_ask_user_to_redirect_invite(t_user *user_config, const t_url &destination, const string &display); bool do_cb_ask_user_to_redirect_request(t_user *user_config, const t_url &destination, |