aboutsummaryrefslogtreecommitdiffstats
path: root/kgpg/transactions/kgpgdelkey.h
blob: c7a35ae12bd38e5951cb95046166c21131396694 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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