diff options
Diffstat (limited to 'include/ui/KeyServerImportDialog.h')
-rw-r--r-- | include/ui/KeyServerImportDialog.h | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/include/ui/KeyServerImportDialog.h b/include/ui/KeyServerImportDialog.h index 74ae864e..6fd45fc5 100644 --- a/include/ui/KeyServerImportDialog.h +++ b/include/ui/KeyServerImportDialog.h @@ -34,11 +34,16 @@ class KeyServerImportDialog : public QDialog { Q_OBJECT public: - KeyServerImportDialog(GpgME::GpgContext *ctx, KeyList *keyList, QWidget *parent = nullptr); + KeyServerImportDialog(GpgME::GpgContext *ctx, KeyList *keyList, bool automatic, + QWidget *parent); - void slotImport(QStringList keyIds); + KeyServerImportDialog(GpgME::GpgContext *ctx, QWidget *parent); - void slotImport(QStringList keyIds, const QUrl& keyserverUrl); + void slotImport(const QStringList& keyIds); + + void slotImport(const QStringList& keyIds, const QUrl& keyserverUrl); + + void slotImportKey(const QVector<GpgKey>& keys); private slots: @@ -57,23 +62,29 @@ private: void importKeys(QByteArray inBuffer); + void setLoading(bool status); + QPushButton *createButton(const QString &text, const char *member); QComboBox *createComboBox(); + bool mAutomatic; + QString appPath; QSettings settings; + GpgME::GpgContext *mCtx; - KeyList *mKeyList; - QLineEdit *searchLineEdit; - QComboBox *keyServerComboBox; - QLabel *searchLabel; - QLabel *keyServerLabel; - QLabel *message; - QLabel *icon; - QPushButton *closeButton; - QPushButton *importButton; - QPushButton *searchButton; + KeyList *mKeyList{}; + QLineEdit *searchLineEdit{}; + QComboBox *keyServerComboBox{}; + QProgressBar *waitingBar; + QLabel *searchLabel{}; + QLabel *keyServerLabel{}; + QLabel *message{}; + QLabel *icon{}; + QPushButton *closeButton{}; + QPushButton *importButton{}; + QPushButton *searchButton{}; QTableWidget *keysTable{}; QNetworkAccessManager *qnam{}; |