1
/*****************************************************************************
2
* Copyright (C) 2005 Shie Erlich <erlich@users.sourceforge.net> *
3
* Copyright (C) 2007-2008 Csaba Karai <cskarai@freemail.hu> *
4
* Copyright (C) 2008 Jonas Bähr <jonas.baehr@web.de> *
6
* This program is free software; you can redistribute it and/or modify *
7
* it under the terms of the GNU General Public License as published by *
8
* the Free Software Foundation; either version 2 of the License, or *
9
* (at your option) any later version. *
11
* This package is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU General Public License for more details. *
16
* You should have received a copy of the GNU General Public License *
17
* along with this package; if not, write to the Free Software *
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
19
*****************************************************************************/
1
21
#ifndef CHECKSUMDLG_H
2
22
#define CHECKSUMDLG_H
6
26
class KTemporaryFile;
7
27
extern void initChecksumModule();
9
class CreateChecksumDlg: public KDialog {
11
CreateChecksumDlg(const QStringList& files, bool containFolders, const QString& path);
14
KTemporaryFile *tmpOut, *tmpErr;
18
class MatchChecksumDlg: public KDialog {
20
MatchChecksumDlg(const QStringList& files, bool containFolders,
21
const QString& path, const QString& checksumFile=QString());
23
static QString checksumTypesFilter;
26
bool verifyChecksumFile(QString path, QString& extension);
29
KTemporaryFile *tmpOut, *tmpErr;
33
class ChecksumResultsDlg: public KDialog {
35
ChecksumResultsDlg(const QStringList& stdOut, const QStringList& stdErr,
36
const QString& suggestedFilename, const QString& binary, const QString& type,
40
bool saveChecksum(const QStringList& data, QString filename);
41
void savePerFile(const QStringList& data, const QString& type);
48
class VerifyResultDlg: public KDialog {
50
VerifyResultDlg(const QStringList& failed);
29
class CreateChecksumDlg: public KDialog
32
CreateChecksumDlg(const QStringList& files, bool containFolders, const QString& path);
35
KTemporaryFile *tmpOut, *tmpErr;
39
class MatchChecksumDlg: public KDialog
42
MatchChecksumDlg(const QStringList& files, bool containFolders,
43
const QString& path, const QString& checksumFile = QString());
45
static QString checksumTypesFilter;
48
bool verifyChecksumFile(QString path, QString& extension);
51
KTemporaryFile *tmpOut, *tmpErr;
55
class ChecksumResultsDlg: public KDialog
58
ChecksumResultsDlg(const QStringList& stdOut, const QStringList& stdErr,
59
const QString& suggestedFilename, const QString& binary, const QString& type,
63
bool saveChecksum(const QStringList& data, QString filename);
64
void savePerFile(const QStringList& data, const QString& type);
71
class VerifyResultDlg: public KDialog
74
VerifyResultDlg(const QStringList& failed);
53
77
#endif // CHECKSUMDLG_H