diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-28 22:44:34 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-31 23:30:34 +0900 |
commit | f9abd9d505434c9244c03eac708e29a0ca042f6b (patch) | |
tree | 30a197ab4c413849188bc131ff859212e636c821 /src/app/Dialogs/checksumdlg.h | |
parent | 14d42d284de233f9937becf3fc9ee0dabede3b21 (diff) | |
download | krusader-r14.1.x.tar.gz krusader-r14.1.x.zip |
Restructure source foldersr14.1.x
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 086012dcad8a976a0dabbb7cbc20c9cb612cdfa9)
Diffstat (limited to 'src/app/Dialogs/checksumdlg.h')
-rw-r--r-- | src/app/Dialogs/checksumdlg.h | 54 |
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 |