summaryrefslogtreecommitdiffstats
path: root/krusader/Dialogs/checksumdlg.h
diff options
context:
space:
mode:
Diffstat (limited to 'krusader/Dialogs/checksumdlg.h')
-rw-r--r--krusader/Dialogs/checksumdlg.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/krusader/Dialogs/checksumdlg.h b/krusader/Dialogs/checksumdlg.h
new file mode 100644
index 0000000..41bb1ad
--- /dev/null
+++ b/krusader/Dialogs/checksumdlg.h
@@ -0,0 +1,54 @@
+#ifndef CHECKSUMDLG_H
+#define CHECKSUMDLG_H
+
+#include <kdialogbase.h>
+#include <qvaluelist.h>
+
+class KTempFile;
+extern void initChecksumModule();
+
+class CreateChecksumDlg: public KDialogBase {
+public:
+ CreateChecksumDlg(const QStringList& files, bool containFolders, const QString& path);
+
+private:
+ KTempFile *tmpOut, *tmpErr;
+};
+
+
+class MatchChecksumDlg: public KDialogBase {
+public:
+ MatchChecksumDlg(const QStringList& files, bool containFolders,
+ const QString& path, const QString& checksumFile=QString::null);
+
+ static QString checksumTypesFilter;
+
+protected:
+ bool verifyChecksumFile(QString path, QString& extension);
+
+private:
+ KTempFile *tmpOut, *tmpErr;
+};
+
+
+class ChecksumResultsDlg: public KDialogBase {
+public:
+ ChecksumResultsDlg(const QStringList& stdOut, const QStringList& stdErr,
+ const QString& suggestedFilename, const QString& binary, const QString& type,
+ bool standardFormat);
+
+protected:
+ bool saveChecksum(const QStringList& data, QString filename);
+ void savePerFile(const QStringList& data, const QString& type);
+
+private:
+ QString _binary;
+};
+
+
+class VerifyResultDlg: public KDialogBase {
+public:
+ VerifyResultDlg(const QStringList& failed);
+};
+
+#endif // CHECKSUMDLG_H