aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/UserInterfaceUtils.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ui/UserInterfaceUtils.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ui/UserInterfaceUtils.h b/src/ui/UserInterfaceUtils.h
index 7761de7b..7dd7bb1e 100644
--- a/src/ui/UserInterfaceUtils.h
+++ b/src/ui/UserInterfaceUtils.h
@@ -144,6 +144,12 @@ class CommonUtils : public QWidget {
*/
static CommonUtils* GetInstance();
+ /**
+ * @brief
+ *
+ */
+ bool isApplicationNeedRestart();
+
signals:
/**
* @brief
@@ -175,6 +181,12 @@ class CommonUtils : public QWidget {
*/
void SignalUserInputPassphraseDone(QString passphrase);
+ /**
+ * @brief
+ *
+ */
+ void SignalRestartApplication(int);
+
public slots:
/**
* @brief
@@ -235,6 +247,12 @@ class CommonUtils : public QWidget {
void SlotExecuteCommand(const std::string& cmd, const QStringList& arguments,
const std::function<void(QProcess*)>& interact_func);
+ /**
+ * @brief
+ *
+ */
+ void SlotRestartApplication(int);
+
private slots:
/**
@@ -251,6 +269,7 @@ class CommonUtils : public QWidget {
private:
static std::unique_ptr<CommonUtils> instance_; ///<
+ bool application_need_to_restart_at_once_ = false;
};
} // namespace GpgFrontend::UI