File indexing completed on 2024-05-05 05:50:42

0001 /*
0002     SPDX-FileCopyrightText: 2016 Ragnar Thomsen <rthomsen6@gmail.com>
0003 
0004     SPDX-License-Identifier: BSD-2-Clause
0005 */
0006 
0007 #ifndef PROPERTIESDIALOG_H
0008 #define PROPERTIESDIALOG_H
0009 
0010 #include "kerfuffle_export.h"
0011 
0012 #include <QCryptographicHash>
0013 #include <QDialog>
0014 
0015 class QLabel;
0016 
0017 namespace Kerfuffle
0018 {
0019 class Archive;
0020 
0021 class KERFUFFLE_EXPORT PropertiesDialog : public QDialog
0022 {
0023     Q_OBJECT
0024 
0025 public:
0026     explicit PropertiesDialog(QWidget *parent, Archive *archive, qulonglong numberOfFiles, qulonglong numberOfFolders, qulonglong size);
0027 
0028 private:
0029     QString calcHash(QCryptographicHash::Algorithm algorithm, const QString &path);
0030     void showChecksum(QCryptographicHash::Algorithm algorithm, const QString &fileName, QLabel *label);
0031 
0032     class PropertiesDialogUI *m_ui;
0033 };
0034 }
0035 
0036 #endif