~ubuntu-branches/ubuntu/vivid/krusader/vivid-proposed

« back to all changes in this revision

Viewing changes to krusader/Dialogs/checksumdlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-05-05 22:26:37 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505222637-ydv3cwjwy365on2r
Tags: 1:2.1.0~beta1-1ubuntu1
* Merge from Debian Unstable.  Remaining changes:
  - Retain Kubuntu doc path

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>                        *
 
5
 *                                                                           *
 
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.                                       *
 
10
 *                                                                           *
 
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.                              *
 
15
 *                                                                           *
 
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
 *****************************************************************************/
 
20
 
1
21
#ifndef CHECKSUMDLG_H
2
22
#define CHECKSUMDLG_H
3
23
 
6
26
class KTemporaryFile;
7
27
extern void initChecksumModule();
8
28
 
9
 
class CreateChecksumDlg: public KDialog {
10
 
public:
11
 
        CreateChecksumDlg(const QStringList& files, bool containFolders, const QString& path);
12
 
 
13
 
private:
14
 
        KTemporaryFile *tmpOut, *tmpErr;
15
 
};
16
 
 
17
 
 
18
 
class MatchChecksumDlg: public KDialog {
19
 
public:
20
 
        MatchChecksumDlg(const QStringList& files, bool containFolders, 
21
 
                const QString& path, const QString& checksumFile=QString());
22
 
 
23
 
        static QString checksumTypesFilter;
24
 
 
25
 
protected:
26
 
        bool verifyChecksumFile(QString path, QString& extension);
27
 
 
28
 
private:
29
 
        KTemporaryFile *tmpOut, *tmpErr;
30
 
};
31
 
 
32
 
 
33
 
class ChecksumResultsDlg: public KDialog {
34
 
public:
35
 
        ChecksumResultsDlg(const QStringList& stdOut, const QStringList& stdErr,
36
 
                const QString& suggestedFilename, const QString& binary, const QString& type,
37
 
                bool standardFormat);
38
 
 
39
 
protected:
40
 
        bool saveChecksum(const QStringList& data, QString filename);
41
 
        void savePerFile(const QStringList& data, const QString& type);
42
 
        
43
 
private:
44
 
        QString _binary;
45
 
};
46
 
 
47
 
 
48
 
class VerifyResultDlg: public KDialog {
49
 
public:
50
 
        VerifyResultDlg(const QStringList& failed);
 
29
class CreateChecksumDlg: public KDialog
 
30
{
 
31
public:
 
32
    CreateChecksumDlg(const QStringList& files, bool containFolders, const QString& path);
 
33
 
 
34
private:
 
35
    KTemporaryFile *tmpOut, *tmpErr;
 
36
};
 
37
 
 
38
 
 
39
class MatchChecksumDlg: public KDialog
 
40
{
 
41
public:
 
42
    MatchChecksumDlg(const QStringList& files, bool containFolders,
 
43
                     const QString& path, const QString& checksumFile = QString());
 
44
 
 
45
    static QString checksumTypesFilter;
 
46
 
 
47
protected:
 
48
    bool verifyChecksumFile(QString path, QString& extension);
 
49
 
 
50
private:
 
51
    KTemporaryFile *tmpOut, *tmpErr;
 
52
};
 
53
 
 
54
 
 
55
class ChecksumResultsDlg: public KDialog
 
56
{
 
57
public:
 
58
    ChecksumResultsDlg(const QStringList& stdOut, const QStringList& stdErr,
 
59
                       const QString& suggestedFilename, const QString& binary, const QString& type,
 
60
                       bool standardFormat);
 
61
 
 
62
protected:
 
63
    bool saveChecksum(const QStringList& data, QString filename);
 
64
    void savePerFile(const QStringList& data, const QString& type);
 
65
 
 
66
private:
 
67
    QString _binary;
 
68
};
 
69
 
 
70
 
 
71
class VerifyResultDlg: public KDialog
 
72
{
 
73
public:
 
74
    VerifyResultDlg(const QStringList& failed);
51
75
};
52
76
 
53
77
#endif // CHECKSUMDLG_H