OSDN Git Service

Refactored the "LockedFile" class + moved hash computation to a separate class, for...
[lamexp/LameXP.git] / src / LockedFile.h
index 77b49ff..e5eb42e 100644 (file)
@@ -31,14 +31,12 @@ class LockedFile
 {
 public:
        LockedFile(QResource *const resource, const QString &outPath, const QByteArray &expectedHash = QByteArray(), const bool bOwnsFile = true);
+       LockedFile(const QString &filePath, const QByteArray &expectedHash, const bool bOwnsFile = false);
        LockedFile(const QString &filePath, const bool bOwnsFile = false);
        ~LockedFile(void);
 
        const QString &filePath();
 
-       static void selfTest();
-       static QByteArray fileHash(QFile &file);
-
 private:
        const bool m_bOwnsFile;
        const QString m_filePath;