aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/helpers/HashUtils.h
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-06-25 10:12:29 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-06-25 10:12:29 +0300
commit54d7477679d4be05ce69dfe7d3ff21b0de46e8af (patch)
tree8a3eb84a1d352ed4c57e7f06cd9772f1de08e384 /launcher/modplatform/helpers/HashUtils.h
parentba609f3600e17704f358b28dd3d5ee14319cc98c (diff)
parentbcf45c74a1b0b3389c05927637bf8aa95b8e43cf (diff)
downloadPrismLauncher-54d7477679d4be05ce69dfe7d3ff21b0de46e8af.tar.gz
PrismLauncher-54d7477679d4be05ce69dfe7d3ff21b0de46e8af.tar.bz2
PrismLauncher-54d7477679d4be05ce69dfe7d3ff21b0de46e8af.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into visit_mod_page
Diffstat (limited to 'launcher/modplatform/helpers/HashUtils.h')
-rw-r--r--launcher/modplatform/helpers/HashUtils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/launcher/modplatform/helpers/HashUtils.h b/launcher/modplatform/helpers/HashUtils.h
index 91146a52..73a2435a 100644
--- a/launcher/modplatform/helpers/HashUtils.h
+++ b/launcher/modplatform/helpers/HashUtils.h
@@ -8,6 +8,7 @@
namespace Hashing {
class Hasher : public Task {
+ Q_OBJECT
public:
using Ptr = shared_qobject_ptr<Hasher>;
@@ -21,6 +22,9 @@ class Hasher : public Task {
QString getResult() const { return m_hash; };
QString getPath() const { return m_path; };
+ signals:
+ void resultsReady(QString hash);
+
protected:
QString m_hash;
QString m_path;
@@ -48,6 +52,7 @@ class BlockedModHasher : public Hasher {
QStringList getHashTypes();
bool useHashType(QString type);
+
private:
ModPlatform::ResourceProvider provider;
QString hash_type;