aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/KeyUploadDialog.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-10-02 14:08:50 +0000
committerSaturneric <[email protected]>2021-10-02 14:16:27 +0000
commit3c65d087eeee687ac01af2e80f3dd538f9a2c230 (patch)
tree1e860dc6343c1897e2224a002f2ca44c574381b3 /src/ui/KeyUploadDialog.h
parentThe basic functions of the core pass the test. (diff)
downloadGpgFrontend-3c65d087eeee687ac01af2e80f3dd538f9a2c230.tar.gz
GpgFrontend-3c65d087eeee687ac01af2e80f3dd538f9a2c230.zip
UI Framework Modified.
Diffstat (limited to '')
-rw-r--r--src/ui/KeyUploadDialog.h (renamed from include/ui/KeyUploadDialog.h)36
1 files changed, 18 insertions, 18 deletions
diff --git a/include/ui/KeyUploadDialog.h b/src/ui/KeyUploadDialog.h
index e6c3b836..b57440d4 100644
--- a/include/ui/KeyUploadDialog.h
+++ b/src/ui/KeyUploadDialog.h
@@ -25,33 +25,33 @@
#ifndef GPGFRONTEND_KEYUPLOADWIDGET_H
#define GPGFRONTEND_KEYUPLOADWIDGET_H
-#include "GpgFrontend.h"
#include "gpg/GpgContext.h"
+#include "ui/GpgFrontendUI.h"
-class KeyUploadDialog : public QDialog {
-Q_OBJECT
-public:
- KeyUploadDialog(GpgFrontend::GpgContext *ctx, const QVector<GpgKey> &keys, QWidget *parent = nullptr);
-
-public slots:
+namespace GpgFrontend::UI {
- void slotUpload();
+class KeyUploadDialog : public QDialog {
+ Q_OBJECT
+ public:
+ explicit KeyUploadDialog(const KeyIdArgsListPtr& keys_ids, QWidget* parent);
-private slots:
+ public slots:
- void uploadKeyToServer(QByteArray &keys);
+ void slotUpload();
- void slotUploadFinished();
+ private slots:
-private:
+ void uploadKeyToServer(GpgFrontend::ByteArrayPtr keys_data);
- GpgFrontend::GpgContext *mCtx;
- const QVector<GpgKey> &mKeys;
- QString appPath;
- QSettings settings;
- QByteArray mKeyData;
+ void slotUploadFinished();
+ private:
+ QString appPath;
+ QSettings settings;
+ KeyListPtr mKeys;
+ QByteArray mKeyData;
};
+} // namespace GpgFrontend::UI
-#endif //GPGFRONTEND_KEYUPLOADWIDGET_H
+#endif // GPGFRONTEND_KEYUPLOADWIDGET_H