diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-03-11 01:39:45 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-07 00:20:01 +0200 |
commit | ab868df50eb6f9f3958bdc0a7ab9199dcdf46b3c (patch) | |
tree | 0dfb9713e99f5d89d75e05e2ceb4b1378a2aa6b3 /application/WonkoGui.h | |
parent | 1fbe03f982f130bf675b7f94dd9c06aee62da54f (diff) | |
download | MultiMC-ab868df50eb6f9f3958bdc0a7ab9199dcdf46b3c.tar MultiMC-ab868df50eb6f9f3958bdc0a7ab9199dcdf46b3c.tar.gz MultiMC-ab868df50eb6f9f3958bdc0a7ab9199dcdf46b3c.tar.lz MultiMC-ab868df50eb6f9f3958bdc0a7ab9199dcdf46b3c.tar.xz MultiMC-ab868df50eb6f9f3958bdc0a7ab9199dcdf46b3c.zip |
NOISSUE Wonko is the new Meta
And then Wonko was the Meta.
Diffstat (limited to 'application/WonkoGui.h')
-rw-r--r-- | application/WonkoGui.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/application/WonkoGui.h b/application/WonkoGui.h deleted file mode 100644 index ad0bee89..00000000 --- a/application/WonkoGui.h +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include <memory> -#include "QObjectPtr.h" - -class QWidget; -class QString; - -using WonkoIndexPtr = shared_qobject_ptr<class WonkoIndex>; -using WonkoVersionListPtr = std::shared_ptr<class WonkoVersionList>; -using WonkoVersionPtr = std::shared_ptr<class WonkoVersion>; - -namespace Wonko -{ -enum UpdateType -{ - AlwaysUpdate, - UpdateIfNeeded -}; - -/// Ensures that the index has been loaded, either from the local cache or remotely -WonkoIndexPtr ensureIndexLoaded(QWidget *parent); -/// Ensures that the given uid exists. Returns a nullptr if it doesn't. -WonkoVersionListPtr ensureVersionListExists(const QString &uid, QWidget *parent); -/// Ensures that the given uid exists and is loaded, either from the local cache or remotely. Returns nullptr if it doesn't exist or couldn't be loaded. -WonkoVersionListPtr ensureVersionListLoaded(const QString &uid, QWidget *parent); -WonkoVersionPtr ensureVersionExists(const QString &uid, const QString &version, QWidget *parent); -WonkoVersionPtr ensureVersionLoaded(const QString &uid, const QString &version, QWidget *parent, const UpdateType update = UpdateIfNeeded); -} |