• 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
verifier_p.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 VERIFIER_P_H
21 #define VERIFIER_P_H
22 
23 class PartialChecksums;
24 class Verifier;
25 
26 #include "verifier.h"
27 #include "verificationthread.h"
28 
29 struct VerifierPrivate
30 {
31  VerifierPrivate(Verifier *verifier)
32  : q(verifier),
33  model(0)
34  {
35  }
36 
37  ~VerifierPrivate();
38 
39  static QString calculatePartialChecksum(QFile *file, const QString &type, KIO::fileoffset_t startOffset, int pieceLength, KIO::filesize_t fileSize = 0, bool *abortPtr = 0);
40  QStringList orderChecksumTypes(Verifier::ChecksumStrength strength) const;
41 
42 
43  Verifier *q;
44 
45  QString dBusObjectPath;
46  VerificationModel *model;
47  KUrl dest;
48  Verifier::VerificationStatus status;
49 
50  QHash<QString, PartialChecksums*> partialSums;
51 
52  mutable VerificationThread thread;
53 
54  static const QStringList SUPPORTED;
55  static const QString MD5;
56  static const int DIGGESTLENGTH[];
57  static const int MD5LENGTH;
58  static const int PARTSIZE;
59 };
60 
61 #endif
VerifierPrivate::MD5
static const QString MD5
Definition: verifier_p.h:55
VerificationThread
Definition: verificationthread.h:29
VerifierPrivate::dBusObjectPath
QString dBusObjectPath
Definition: verifier_p.h:45
VerifierPrivate::q
Verifier * q
Definition: verifier_p.h:43
VerifierPrivate::thread
VerificationThread thread
Definition: verifier_p.h:52
VerifierPrivate::orderChecksumTypes
QStringList orderChecksumTypes(Verifier::ChecksumStrength strength) const
Definition: verifier.cpp:142
Verifier::ChecksumStrength
ChecksumStrength
Definition: verifier.h:83
VerifierPrivate::~VerifierPrivate
~VerifierPrivate()
Definition: verifier.cpp:44
VerifierPrivate::PARTSIZE
static const int PARTSIZE
Definition: verifier_p.h:58
Verifier::VerificationStatus
VerificationStatus
Definition: verifier.h:76
VerifierPrivate::SUPPORTED
static const QStringList SUPPORTED
Definition: verifier_p.h:54
VerifierPrivate::status
Verifier::VerificationStatus status
Definition: verifier_p.h:48
verificationthread.h
verifier.h
VerifierPrivate::partialSums
QHash< QString, PartialChecksums * > partialSums
Definition: verifier_p.h:50
VerifierPrivate::model
VerificationModel * model
Definition: verifier_p.h:46
Verifier
Definition: verifier.h:68
VerifierPrivate::calculatePartialChecksum
static QString calculatePartialChecksum(QFile *file, const QString &type, KIO::fileoffset_t startOffset, int pieceLength, KIO::filesize_t fileSize=0, bool *abortPtr=0)
Definition: verifier.cpp:50
VerificationModel
Definition: verificationmodel.h:29
VerifierPrivate::dest
KUrl dest
Definition: verifier_p.h:47
VerifierPrivate::DIGGESTLENGTH
static const int DIGGESTLENGTH[]
Definition: verifier_p.h:56
VerifierPrivate::MD5LENGTH
static const int MD5LENGTH
Definition: verifier_p.h:57
VerifierPrivate::VerifierPrivate
VerifierPrivate(Verifier *verifier)
Definition: verifier_p.h:31
VerifierPrivate
Definition: verifier_p.h:29
PartialChecksums
Definition: verifier.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:18 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