aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/CoreSignalStation.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/function/CoreSignalStation.h')
-rw-r--r--src/core/function/CoreSignalStation.h31
1 files changed, 21 insertions, 10 deletions
diff --git a/src/core/function/CoreSignalStation.h b/src/core/function/CoreSignalStation.h
index 7497cab7..e0a11fa3 100644
--- a/src/core/function/CoreSignalStation.h
+++ b/src/core/function/CoreSignalStation.h
@@ -1,5 +1,5 @@
/**
- * Copyright (C) 2021 Saturneric
+ * Copyright (C) 2021 Saturneric <[email protected]>
*
* This file is part of GpgFrontend.
*
@@ -20,26 +20,27 @@
* the gpg4usb project, which is under GPL-3.0-or-later.
*
* All the source code of GpgFrontend was modified and released by
- * Saturneric<[email protected]> starting on May 12, 2021.
+ * Saturneric <[email protected]> starting on May 12, 2021.
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
-#ifndef GPGFRONTEND_CORESIGNALSTATION_H
-#define GPGFRONTEND_CORESIGNALSTATION_H
+#pragma once
#include "core/GpgFrontendCore.h"
namespace GpgFrontend {
+class GpgPassphraseContext;
+
/**
* @brief
*
*/
class GPGFRONTEND_CORE_EXPORT CoreSignalStation : public QObject {
Q_OBJECT
- static std::unique_ptr<CoreSignalStation> _instance;
+ static std::unique_ptr<CoreSignalStation> instance;
public:
/**
@@ -47,7 +48,7 @@ class GPGFRONTEND_CORE_EXPORT CoreSignalStation : public QObject {
*
* @return SignalStation*
*/
- static CoreSignalStation* GetInstance();
+ static auto GetInstance() -> CoreSignalStation*;
signals:
@@ -55,15 +56,25 @@ class GPGFRONTEND_CORE_EXPORT CoreSignalStation : public QObject {
* @brief
*
*/
- void SignalUserInputPassphraseDone(QString passparase);
+ void SignalNeedUserInputPassphrase(QSharedPointer<GpgPassphraseContext>);
+
+ /**
+ * @brief
+ *
+ */
+ void SignalUserInputPassphraseCallback(QSharedPointer<GpgPassphraseContext>);
/**
* @brief
*
*/
- void SignalNeedUserInputPassphrase();
+ void SignalBadGnupgEnv(QString);
+
+ /**
+ * @brief
+ *
+ */
+ void SignalGoodGnupgEnv();
};
} // namespace GpgFrontend
-
-#endif // GPGFRONTEND_CORESIGNALSTATION_H