kde-extraapps/kgpg/caff.h
Ivailo Monev e166af4e02 generic: replace forward declarations with headers inclusions
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-23 00:08:45 +00:00

56 lines
1.6 KiB
C++

/*
* Copyright (C) 2009,2010,2012 Rolf Eike Beer <kde@opensource.sf-tec.de>
*/
/***************************************************************************
* *
* 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 <QObject>
#include <QStringList>
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 */