• 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
  • dbus
dbusverifierwrapper.h
Go to the documentation of this file.
1 /***************************************************************************
2 * Copyright (C) 2010 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 DBUSVERIFIERWRAPPER_H
21 #define DBUSVERIFIERWRAPPER_H
22 
23 #include <QDBusVariant>
24 #include <kio/global.h>
25 
26 class Verifier;
27 
28 class DBusVerifierWrapper : public QObject
29 {
30  Q_OBJECT
31  public:
32  DBusVerifierWrapper(Verifier *parent);
33  ~DBusVerifierWrapper();
34 
35  public slots:
39  QString destination() const;
40 
44  void addChecksum(const QString &type, const QString &hash);
45 
55  void addPartialChecksums(const QString &type, qulonglong length, const QStringList &checksums);
56 
57  bool isVerifyable() const;
58 
59  void verify();
60 
66  void brokenPieces() const;
67 
68  signals:
72  void verified(bool verified);
73 
79  void brokenPieces(const QStringList &offsets, qulonglong length);
80 
81  private slots:
82  void slotBrokenPieces(const QList<KIO::fileoffset_t> &offsets, KIO::filesize_t length);
83 
84  private:
85  Verifier *m_verifier;
86 };
87 
88 #endif
DBusVerifierWrapper
Definition: dbusverifierwrapper.h:28
DBusVerifierWrapper::verify
void verify()
Definition: dbusverifierwrapper.cpp:56
DBusVerifierWrapper::DBusVerifierWrapper
DBusVerifierWrapper(Verifier *parent)
Definition: dbusverifierwrapper.cpp:24
QObject
DBusVerifierWrapper::brokenPieces
void brokenPieces() const
Call this method after calling verify() with a negative result, it will emit a list of the broken pie...
Definition: dbusverifierwrapper.cpp:61
DBusVerifierWrapper::~DBusVerifierWrapper
~DBusVerifierWrapper()
Definition: dbusverifierwrapper.cpp:32
DBusVerifierWrapper::verified
void verified(bool verified)
Emitted when the verification of a file finishes.
Verifier
Definition: verifier.h:68
DBusVerifierWrapper::destination
QString destination() const
Definition: dbusverifierwrapper.cpp:36
DBusVerifierWrapper::isVerifyable
bool isVerifyable() const
Definition: dbusverifierwrapper.cpp:51
DBusVerifierWrapper::addChecksum
void addChecksum(const QString &type, const QString &hash)
Adds a checksum to the transfer.
Definition: dbusverifierwrapper.cpp:41
DBusVerifierWrapper::addPartialChecksums
void addPartialChecksums(const QString &type, qulonglong length, const QStringList &checksums)
Add partial checksums that can be used as repairinformation.
Definition: dbusverifierwrapper.cpp:46
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