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

kget

  • sources
  • kde-4.14
  • kdenetwork
  • kget
  • core
keydownloader.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 KEY_DOWNLOADER_H
21 #define KEY_DOWNLOADER_H
22 
23 #include <QtCore/QMultiHash>
24 #include <QtCore/QObject>
25 
26 class KJob;
27 class Signature;
28 
34 class KeyDownloader : public QObject
35 {
36  Q_OBJECT
37 
38  public:
39  KeyDownloader(QObject *parent = 0);
40 
44  bool isValid() const;
45 
51  void downloadKey(QString fingerprint, Signature *sig);
52 
53  private slots:
58  void slotDownloaded(KJob *job);
59 
60  private:
67  void downloadKey(QString fingerprint, Signature *sig, bool mirrorFailed);
68 
69  private:
70  QMultiHash<QString, Signature*> m_downloading;
71  QHash<KJob*, QString> m_jobs;
72  QMultiHash<QString, QString> m_triedMirrors;
73 };
74 
75 #endif
KeyDownloader
Class to download Keys.
Definition: keydownloader.h:34
KeyDownloader::KeyDownloader
KeyDownloader(QObject *parent=0)
Definition: keydownloader.cpp:36
KeyDownloader::downloadKey
void downloadKey(QString fingerprint, Signature *sig)
Searches for a key with fignerprint.
Definition: keydownloader.cpp:50
QHash< KJob *, QString >
QObject
QString
KeyDownloader::isValid
bool isValid() const
Definition: keydownloader.cpp:41
Signature
Class to verify signatures.
Definition: signature.h:38
QObject::parent
QObject * parent() const
KJob
QMultiHash< QString, Signature * >
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 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