• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kget

  • sources
  • kde-4.12
  • kdenetwork
  • kget
  • core
signaturethread.h
Go to the documentation of this file.
1 /**************************************************************************
2 * Copyright (C) 2009-2011 Matthias Fuchs <mat69@gmx.net> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
18 ***************************************************************************/
19 
20 #ifndef SIGNATURE_THREAD_H
21 #define SIGNATURE_THREAD_H
22 
23 #include <KUrl>
24 
25 #include <QtCore/QMutex>
26 #include <QtCore/QThread>
27 
28 #ifdef HAVE_QGPGME
29 #include <gpgme++/verificationresult.h>
30 #endif //HAVE_QGPGME
31 
32 class SignatureThread : public QThread
33 {
34  Q_OBJECT
35 
36  public:
37  SignatureThread(QObject *parent = 0);
38  ~SignatureThread();
39 
43  bool isValid() const;
44  void verify(const KUrl &dest, const QByteArray &sig);
45 
46 #ifdef HAVE_QGPGME
47  signals:
53  void verified(const GpgME::VerificationResult &result);
54 #endif //HAVE_QGPGME
55 
56  protected:
57  void run();
58 
59  private:
60  QMutex m_mutex;
61  bool m_abort;
62  QList<KUrl> m_dest;
63  QList<QByteArray> m_sig;
64 };
65 
66 #endif
SignatureThread::~SignatureThread
~SignatureThread()
Definition: signaturethread.cpp:31
QObject
SignatureThread
Definition: signaturethread.h:32
SignatureThread::SignatureThread
SignatureThread(QObject *parent=0)
Definition: signaturethread.cpp:25
SignatureThread::verify
void verify(const KUrl &dest, const QByteArray &sig)
Definition: signaturethread.cpp:49
SignatureThread::isValid
bool isValid() const
Definition: signaturethread.cpp:40
SignatureThread::run
void run()
Definition: signaturethread.cpp:60
QThread
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal