diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-18 23:27:26 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-18 23:27:26 +0300 |
commit | 0161520b332f485483f57acc305ad71a00d63fbc (patch) | |
tree | 802de21c9e5a261982ae78a988d11a4887dca983 /launcher/modplatform/helpers/HashUtils.h | |
parent | 147366bc0a905869f41bd8577337354bc7894e88 (diff) | |
download | PrismLauncher-0161520b332f485483f57acc305ad71a00d63fbc.tar.gz PrismLauncher-0161520b332f485483f57acc305ad71a00d63fbc.tar.bz2 PrismLauncher-0161520b332f485483f57acc305ad71a00d63fbc.zip |
Fixed leaks
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/modplatform/helpers/HashUtils.h')
-rw-r--r-- | launcher/modplatform/helpers/HashUtils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/launcher/modplatform/helpers/HashUtils.h b/launcher/modplatform/helpers/HashUtils.h index 91146a52..f3b9e030 100644 --- a/launcher/modplatform/helpers/HashUtils.h +++ b/launcher/modplatform/helpers/HashUtils.h @@ -1,5 +1,6 @@ #pragma once +#include <qtmetamacros.h> #include <QString> #include "modplatform/ModIndex.h" @@ -8,6 +9,7 @@ namespace Hashing { class Hasher : public Task { + Q_OBJECT public: using Ptr = shared_qobject_ptr<Hasher>; @@ -21,6 +23,9 @@ class Hasher : public Task { QString getResult() const { return m_hash; }; QString getPath() const { return m_path; }; + signals: + void getResults(QString hash); + protected: QString m_hash; QString m_path; @@ -48,6 +53,7 @@ class BlockedModHasher : public Hasher { QStringList getHashTypes(); bool useHashType(QString type); + private: ModPlatform::ResourceProvider provider; QString hash_type; |