aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/ExportKeyPackageDialog.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-01-23 08:35:59 +0000
committerSaturneric <[email protected]>2022-01-23 08:35:59 +0000
commita7fb788cd0379bc3f49d5c0fdb0cbdf2b8401f7b (patch)
tree3299c2bcbddc0eb1fa0b9bb3ae002e5ac856180c /src/ui/widgets/ExportKeyPackageDialog.h
parent<refactor>(ui): tidy up codes and comments. (diff)
downloadGpgFrontend-a7fb788cd0379bc3f49d5c0fdb0cbdf2b8401f7b.tar.gz
GpgFrontend-a7fb788cd0379bc3f49d5c0fdb0cbdf2b8401f7b.zip
<refactor>(ui): tidy up codes and comments.
1. tidy up widgets.
Diffstat (limited to '')
-rw-r--r--src/ui/widgets/ExportKeyPackageDialog.h34
1 files changed, 26 insertions, 8 deletions
diff --git a/src/ui/widgets/ExportKeyPackageDialog.h b/src/ui/widgets/ExportKeyPackageDialog.h
index 5a7c3952..68f9b433 100644
--- a/src/ui/widgets/ExportKeyPackageDialog.h
+++ b/src/ui/widgets/ExportKeyPackageDialog.h
@@ -35,23 +35,41 @@ class Ui_exportKeyPackageDialog;
namespace GpgFrontend::UI {
+/**
+ * @brief
+ *
+ */
class ExportKeyPackageDialog : public QDialog {
Q_OBJECT
public:
+ /**
+ * @brief Construct a new Export Key Package Dialog object
+ *
+ * @param key_ids
+ * @param parent
+ */
explicit ExportKeyPackageDialog(KeyIdArgsListPtr key_ids, QWidget* parent);
- std::string generate_passphrase(int len);
-
private:
- std::shared_ptr<Ui_exportKeyPackageDialog> ui;
- KeyIdArgsListPtr key_ids_;
-
- std::random_device rd;
- std::mt19937 mt;
+ std::shared_ptr<Ui_exportKeyPackageDialog> ui_; ///<
+ KeyIdArgsListPtr key_ids_; ///<
+ std::random_device rd_; ///<
+ std::mt19937 mt_; ///<
+ std::string passphrase_; ///<
- std::string passphrase_;
+ /**
+ * @brief
+ *
+ * @param len
+ * @return std::string
+ */
+ std::string generate_passphrase(int len);
+ /**
+ * @brief
+ *
+ */
void generate_key_package_name();
};
} // namespace GpgFrontend::UI