GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
KeyUploadDialog.h
1 
29 #ifndef GPGFRONTEND_KEYUPLOADWIDGET_H
30 #define GPGFRONTEND_KEYUPLOADWIDGET_H
31 
32 #include "core/GpgContext.h"
33 #include "ui/GpgFrontendUI.h"
34 #include "ui/dialog/GeneralDialog.h"
35 
36 namespace GpgFrontend::UI {
37 
43  Q_OBJECT
44  public:
51  explicit KeyUploadDialog(const KeyIdArgsListPtr& keys_ids, QWidget* parent);
52 
53  public slots:
54 
59  void SlotUpload();
60 
61  private slots:
62 
68  void slot_upload_key_to_server(const GpgFrontend::ByteArray& keys_data);
69 
74  void slot_upload_finished();
75 
76  private:
77  KeyListPtr m_keys_;
78  QByteArray m_key_data_;
79 };
80 
81 } // namespace GpgFrontend::UI
82 
83 #endif // GPGFRONTEND_KEYUPLOADWIDGET_H
GpgFrontend::UI
Definition: FileReadTask.cpp:31
GpgFrontend::GpgKeyImportExporter::ExportKeys
bool ExportKeys(KeyIdArgsListPtr &uid_list, ByteArrayPtr &out_buffer, bool secret=false) const
Definition: GpgKeyImportExporter.cpp:71
GpgFrontend::SingletonFunctionObject< GpgKeyImportExporter >::GetInstance
static GpgKeyImportExporter & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:170
GpgFrontend::UI::KeyUploadDialog::slot_upload_key_to_server
void slot_upload_key_to_server(const GpgFrontend::ByteArray &keys_data)
Definition: KeyUploadDialog.cpp:65
GpgFrontend::GlobalSettingStation::GetUISettings
libconfig::Setting & GetUISettings() noexcept
Definition: GlobalSettingStation.h:63
GpgFrontend::UI::GeneralDialog
Definition: GeneralDialog.h:35
GpgFrontend::GpgKeyGetter
Definition: GpgKeyGetter.h:45
GpgFrontend::UI::KeyUploadDialog::KeyUploadDialog
KeyUploadDialog(const KeyIdArgsListPtr &keys_ids, QWidget *parent)
Construct a new Key Upload Dialog object.
Definition: KeyUploadDialog.cpp:39
GpgFrontend::UI::KeyUploadDialog
Definition: KeyUploadDialog.h:42