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