filesystem.h 499 B

1234567891011121314151617181920212223242526
  1. #ifndef FILESYSTEM_H
  2. #define FILESYSTEM_H
  3. #include <QObject>
  4. #include <QFile>
  5. #include <QDir>
  6. #include <QFileInfo>
  7. #include <QCryptographicHash>
  8. class FileSystem : public QObject
  9. {
  10. Q_OBJECT
  11. private:
  12. explicit FileSystem(QObject *parent = nullptr);
  13. public:
  14. static bool fileExists(QString path);
  15. static QString fileHash(const QString &fileName, QCryptographicHash::Algorithm hashAlgorithm);
  16. static void clearFolder(QDir &dir);
  17. signals:
  18. public slots:
  19. };
  20. #endif // FILESYSTEM_H