GpgFrontend Project A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.

SignersPicker.h
1 /*
2 * Copyright (c) 2022. Saturneric
3 *
4 * This file is part of GpgFrontend.
5 *
6 * GpgFrontend is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * GpgFrontend is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with GpgFrontend. If not, see <https://www.gnu.org/licenses/>.
18 *
19 * The initial version of the source code is inherited from
20 * the gpg4usb project, which is under GPL-3.0-or-later.
21 *
22 * All the source code of GpgFrontend was modified and released by
23 * Saturneric<eric@bktus.com> starting on May 12, 2021.
24 *
25 * SPDX-License-Identifier: GPL-3.0-or-later
26 */
27
28 #ifndef GPGFRONTEND_ZH_CN_TS_SIGNERSPIRCKER_H
29 #define GPGFRONTEND_ZH_CN_TS_SIGNERSPIRCKER_H
30
31 #include "GpgFrontendUI.h"
32 #include "ui/dialog//GeneralDialog.h"
33
34 namespace GpgFrontend::UI {
35
36 class KeyList;
37
42 class SignersPicker : public GeneralDialog {
43 Q_OBJECT
44
45 public:
51 explicit SignersPicker(QWidget* parent = nullptr);
52
58 GpgFrontend::KeyIdArgsListPtr GetCheckedSigners();
59
64 [[nodiscard]] bool GetStatus() const;
65
66 private:
67 KeyList* key_list_;
68 bool accepted_ = false;
69 };
70
71 } // namespace GpgFrontend::UI
72
73 #endif // GPGFRONTEND_ZH_CN_TS_SIGNERSPIRCKER_H
GpgFrontend::UI::GeneralDialog
Definition: GeneralDialog.h:35
GpgFrontend::UI::KeyList
Definition: KeyList.h:152
GpgFrontend::UI::SignersPicker
Definition: SignersPicker.h:42
GpgFrontend::UI::SignersPicker::SignersPicker
SignersPicker(QWidget *parent=nullptr)
Construct a new Signers Picker object.
Definition: SignersPicker.cpp:34
GpgFrontend::UI::SignersPicker::GetCheckedSigners
GpgFrontend::KeyIdArgsListPtr GetCheckedSigners()
Get the Checked Signers object.
Definition: SignersPicker.cpp:77
GpgFrontend::UI::SignersPicker::GetStatus
bool GetStatus() const
Definition: SignersPicker.cpp:81
GpgFrontend::UI
Definition: FileReadTask.cpp:29