aboutsummaryrefslogtreecommitdiffstats
path: root/keyserverimportdialog.h
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-03-12 00:54:11 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-03-12 00:54:11 +0000
commitf8b267c2c2f5dbe5f4a8bfdf352e2e664a52bac5 (patch)
treec14e2d5075305d9c0efa21d984c37ebade635612 /keyserverimportdialog.h
parentupdated spanish translation (diff)
downloadgpg4usb-f8b267c2c2f5dbe5f4a8bfdf352e2e664a52bac5.tar.gz
gpg4usb-f8b267c2c2f5dbe5f4a8bfdf352e2e664a52bac5.zip
added import key from keyserver dialog
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@480 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keyserverimportdialog.h')
-rw-r--r--keyserverimportdialog.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/keyserverimportdialog.h b/keyserverimportdialog.h
new file mode 100644
index 0000000..e23aaa2
--- /dev/null
+++ b/keyserverimportdialog.h
@@ -0,0 +1,83 @@
+/*
+ *
+ * keyserverimportdialog.h
+ *
+ * Copyright 2008 gpg4usb-team <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+
+#ifndef KEYSERVERIMPORTDIALOG_H
+#define KEYSERVERIMPORTDIALOG_H
+
+#include <QDialog>
+#include <QDir>
+#include <QNetworkAccessManager>
+#include <QUrl>
+
+QT_BEGIN_NAMESPACE
+class QNetworkReply;
+class QComboBox;
+class QLabel;
+class QPushButton;
+class QTableWidget;
+class QTableWidgetItem;
+class QLineEdit;
+class QPalette;
+class QTreeWidget;
+class QTreeWidgetItem;
+QT_END_NAMESPACE
+struct key {
+ QString name;
+ int fingerprint;
+ QStringList uids;
+};
+
+class KeyServerImportDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ KeyServerImportDialog(QWidget *parent = 0);
+
+private slots:
+ void import();
+ void importKeyOfItem(int row, int column);
+ void searchFinished();
+ void search();
+
+private:
+ void showKeys(const QStringList &files);
+ QPushButton *createButton(const QString &text, const char *member);
+ QComboBox *createComboBox(const QString &text = QString());
+ void createKeysTree();
+ void setMessage(const QString &text, int type);
+ QLineEdit *searchLineEdit;
+ QComboBox *keyServerComboBox;
+ QLabel *searchLabel;
+ QLabel *keyServerLabel;
+ QLabel *message;
+ QPushButton *closeButton;
+ QPushButton *importButton;
+ QPushButton *searchButton;
+ QTreeWidget *keysTree;
+ QDir currentDir;
+ QUrl url;
+ QNetworkAccessManager qnam;
+ QNetworkReply *reply;
+ //QString *text;
+};
+#endif