diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-11-06 07:20:56 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-11-06 07:45:03 -0500 |
| commit | 4f84565085e19b6f6939783c64ebf95599f879be (patch) | |
| tree | 17d2b7b11f57ddcb399917f851c29079285af02f /src/lockwidget.h | |
| parent | 8f40ec0bdcb99cc1a0a2bde3074842391844f5d6 (diff) | |
renamed LockWidget to UILocker
lock interface up to two processes
Diffstat (limited to 'src/lockwidget.h')
| -rw-r--r-- | src/lockwidget.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/lockwidget.h b/src/lockwidget.h index 640d0076..d8c22999 100644 --- a/src/lockwidget.h +++ b/src/lockwidget.h @@ -3,11 +3,11 @@ #include <QMainWindow> #include <mutex> -class LockInterface; +class UILockerInterface; -class LockWidget +class UILocker { - friend class LockInterface; + friend class UILockerInterface; public: // reason to show the widget @@ -62,12 +62,10 @@ public: }; - // if `reason` is not NoReason, lock() is called with it - // - LockWidget(); - ~LockWidget(); + UILocker(); + ~UILocker(); - static LockWidget& instance(); + static UILocker& instance(); void setUserInterface(QWidget* parent); @@ -77,7 +75,7 @@ public: private: QWidget* m_parent; - std::unique_ptr<LockInterface> m_ui; + std::unique_ptr<UILockerInterface> m_ui; std::vector<std::weak_ptr<Session>> m_sessions; std::atomic<Results> m_result; std::vector<QPointer<QWidget>> m_disabled; |
