summaryrefslogtreecommitdiffstats
path: root/src/app/Dialogs/checksumdlg.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-08-28 22:44:34 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-08-31 23:25:26 +0900
commit086012dcad8a976a0dabbb7cbc20c9cb612cdfa9 (patch)
tree56c9bfcfd7cd13b17707dc8862f26932e9814973 /src/app/Dialogs/checksumdlg.h
parent409e7f624d202c7f96b4d0ab2da1834135169f8b (diff)
downloadkrusader-master.tar.gz
krusader-master.zip
Restructure source foldersHEADmaster
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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