/* * Copyright (C) 2009,2010,2012 Rolf Eike Beer */ /*************************************************************************** * * * 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 _KGPGCAFF_H #define _KGPGCAFF_H #include "core/KGpgSignableNode.h" #include #include class KGpgCaffPrivate; class KGpgCaff : public QObject { Q_OBJECT KGpgCaffPrivate * const d_ptr; Q_DECLARE_PRIVATE(KGpgCaff) Q_DISABLE_COPY(KGpgCaff) public: enum OperationFlags { DefaultMode = 0, ///< use none of the other flags IgnoreAlreadySigned = 1 ///< uids that are already signed will not be mailed again }; /** * @brief create a new object to sign and mail key ids * @param parent parent object * @param ids list of keys to sign * @param signids secret key ids to sign @ids with * @param flags control flags */ KGpgCaff(QObject *parent, const KGpgSignableNode::List &ids, const QStringList &signids, const int checklevel = 0, const OperationFlags flags = DefaultMode); public slots: void run(); signals: void done(); void aborted(); }; #endif /* _KGPGCAFF_H */