File indexing completed on 2024-12-01 05:18:38
0001 /* 0002 SPDX-FileCopyrightText: 2002 Jean-Baptiste Mardelle <bj@altern.org> 0003 SPDX-FileCopyrightText: 2007, 2008, 2009, 2010, 2011, 2012 Rolf Eike Beer <kde@opensource.sf-tec.de> 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KGPGTEXTINTERFACE_H 0008 #define KGPGTEXTINTERFACE_H 0009 0010 #include <QObject> 0011 #include <QUrl> 0012 #include <QStringList> 0013 0014 class KGpgTextInterfacePrivate; 0015 class QString; 0016 0017 class KGpgTextInterface : public QObject 0018 { 0019 Q_OBJECT 0020 0021 private: 0022 KGpgTextInterfacePrivate * const d; 0023 0024 KGpgTextInterface(); 0025 Q_DISABLE_COPY(KGpgTextInterface) 0026 0027 public: 0028 explicit KGpgTextInterface(QObject *parent, const QString &keyID, const QStringList &options); 0029 ~KGpgTextInterface() override; 0030 0031 Q_SIGNALS: 0032 /** 0033 * Emitted when all files passed to KgpgSignFile() where processed. 0034 */ 0035 void fileSignFinished(); 0036 0037 public Q_SLOTS: 0038 /** 0039 * Sign file function 0040 * @param srcUrl file to sign. 0041 */ 0042 void signFiles(const QList<QUrl> &srcUrl); 0043 0044 private Q_SLOTS: 0045 void slotSignFile(); 0046 void slotSignFinished(); 0047 }; 0048 0049 #endif