File indexing completed on 2023-10-01 08:39:29
0001 /************************************************************************** 0002 * Copyright (C) 2009-2011 Matthias Fuchs <mat69@gmx.net> * 0003 * * 0004 * This program is free software; you can redistribute it and/or modify * 0005 * it under the terms of the GNU General Public License as published by * 0006 * the Free Software Foundation; either version 2 of the License, or * 0007 * (at your option) any later version. * 0008 * * 0009 * This program is distributed in the hope that it will be useful, * 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0012 * GNU General Public License for more details. * 0013 * * 0014 * You should have received a copy of the GNU General Public License * 0015 * along with this program; if not, write to the * 0016 * Free Software Foundation, Inc., * 0017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * 0018 ***************************************************************************/ 0019 0020 #ifndef KGET_SIGNATURE_P_H 0021 #define KGET_SIGNATURE_P_H 0022 0023 #include "signature.h" 0024 #include "signaturethread.h" 0025 0026 struct SignaturePrivate { 0027 SignaturePrivate(Signature *signature); 0028 ~SignaturePrivate(); 0029 0030 /** 0031 * Starts verification again if a verification was tried before but aborted 0032 * because of missing keys 0033 */ 0034 void signatureDownloaded(); 0035 0036 #ifdef HAVE_QGPGME 0037 /** 0038 * Verifies a signature 0039 */ 0040 static GpgME::VerificationResult verify(const QUrl &dest, const QByteArray &sig); 0041 #endif // HAVE_QGPGME 0042 0043 Signature *q; 0044 0045 Signature::SignatureType type; 0046 Signature::VerificationStatus status; 0047 bool verifyTried; 0048 int sigSummary; 0049 int error; 0050 SignatureThread thread; 0051 QUrl dest; 0052 QByteArray signature; 0053 QString fingerprint; 0054 #ifdef HAVE_QGPGME 0055 GpgME::VerificationResult verificationResult; 0056 #endif // HAVE_QGPGME 0057 }; 0058 0059 #endif