aboutsummaryrefslogtreecommitdiffstats
path: root/kgpg/transactions/kgpgdelkey.h
diff options
context:
space:
mode:
Diffstat (limited to 'kgpg/transactions/kgpgdelkey.h')
-rw-r--r--kgpg/transactions/kgpgdelkey.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/kgpg/transactions/kgpgdelkey.h b/kgpg/transactions/kgpgdelkey.h
new file mode 100644
index 0000000..c7a35ae
--- /dev/null
+++ b/kgpg/transactions/kgpgdelkey.h
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2008,2009 Rolf Eike Beer <[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. *
+ * *
+ ***************************************************************************/
+
+#ifndef KGPGDELKEY_H
+#define KGPGDELKEY_H
+
+#include "kgpgtransaction.h"
+
+#include "../core/KGpgKeyNode.h"
+
+#include <QObject>
+
+/**
+ * @brief delete a public key
+ */
+class KGpgDelKey: public KGpgTransaction {
+ Q_OBJECT
+
+ Q_DISABLE_COPY(KGpgDelKey)
+ KGpgDelKey(); // = delete C++0x
+public:
+ //KGpgDelKey(QObject *parent, KGpgKeyNode *key);
+ KGpgDelKey(QObject *parent, const QStringList &uids);
+ virtual ~KGpgDelKey();
+
+ /**
+ * @brief the keys that were requested to be removed
+ * @return the list of key nodes
+ */
+ QStringList keys() const;
+
+protected:
+ virtual bool nextLine(const QString &line);
+ virtual ts_boolanswer boolQuestion(const QString &line);
+ virtual bool preStart();
+
+private:
+ //KGpgKeyNode::List m_keys;
+ QStringList m_uids;
+ int m_argscount;
+
+ void setCmdLine();
+};
+
+#endif // KGPGDELKEY_H