diff options
Diffstat (limited to '')
-rw-r--r-- | src/ui/function/RaisePinentry.h (renamed from src/ui/dialog/settings/SettingsAdvanced.h) | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/src/ui/dialog/settings/SettingsAdvanced.h b/src/ui/function/RaisePinentry.h index c1a3d5a6..40175dfd 100644 --- a/src/ui/dialog/settings/SettingsAdvanced.h +++ b/src/ui/function/RaisePinentry.h @@ -1,5 +1,5 @@ /** - * Copyright (C) 2021 Saturneric + * Copyright (C) 2021 Saturneric <[email protected]> * * This file is part of GpgFrontend. * @@ -20,36 +20,41 @@ * 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_SETTINGSADVANCED_H -#define GPGFRONTEND_SETTINGSADVANCED_H +#pragma once #include "ui/GpgFrontendUI.h" +namespace GpgFrontend { +class GpgPassphraseContext; +} + namespace GpgFrontend::UI { -class AdvancedTab : public QWidget { - Q_OBJECT +class RaisePinentry : public QWidget { + Q_OBJECT public: - explicit AdvancedTab(QWidget* parent = nullptr); - - void SetSettings(); - - void ApplySettings(); + /** + * @brief Construct a new Raise Pinentry object + * + * @param parent + */ + explicit RaisePinentry(QWidget *parent, QSharedPointer<GpgPassphraseContext>); + + /** + * @brief + * + * @return int + */ + auto Exec() -> int; private: - QCheckBox* stegano_check_box_; - QCheckBox* auto_pubkey_exchange_check_box_; - - signals: - - void SignalRestartNeeded(bool needed); + QSharedPointer<GpgPassphraseContext> context_; }; -} // namespace GpgFrontend::UI -#endif // GPGFRONTEND_SETTINGSADVANCED_H +} // namespace GpgFrontend::UI
\ No newline at end of file |