diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-08-07 01:38:18 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-08-07 01:38:18 +0200 |
commit | afaa1dc223ec87b685778ee0aed81cb6caaa05c7 (patch) | |
tree | 4e1e6589d56ba9bc6984547d158d413a0495272f /backend/lists/LwjglVersionList.h | |
parent | 091b7502cfc1bc01a1abd68a0fb9a0b2693a4658 (diff) | |
download | MultiMC-afaa1dc223ec87b685778ee0aed81cb6caaa05c7.tar MultiMC-afaa1dc223ec87b685778ee0aed81cb6caaa05c7.tar.gz MultiMC-afaa1dc223ec87b685778ee0aed81cb6caaa05c7.tar.lz MultiMC-afaa1dc223ec87b685778ee0aed81cb6caaa05c7.tar.xz MultiMC-afaa1dc223ec87b685778ee0aed81cb6caaa05c7.zip |
Get rid of QNAM (now subclassed and less needy). Basic LWJGL download and extraction.
Diffstat (limited to 'backend/lists/LwjglVersionList.h')
-rw-r--r-- | backend/lists/LwjglVersionList.h | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/backend/lists/LwjglVersionList.h b/backend/lists/LwjglVersionList.h index f3e7799a..2360f181 100644 --- a/backend/lists/LwjglVersionList.h +++ b/backend/lists/LwjglVersionList.h @@ -20,7 +20,6 @@ #include <QSharedPointer> #include <QUrl> -#include <QNetworkAccessManager> #include <QNetworkReply> #include "libmmc_config.h" @@ -32,32 +31,22 @@ class LIBMULTIMC_EXPORT LWJGLVersion : public QObject { Q_OBJECT - /*! - * The name of the LWJGL version. - */ - Q_PROPERTY(QString name READ name) - - /*! - * The URL for this version of LWJGL. - */ - Q_PROPERTY(QUrl url READ url) - - LWJGLVersion(const QString &name, const QUrl &url, QObject *parent = 0) : + LWJGLVersion(const QString &name, const QString &url, QObject *parent = 0) : QObject(parent), m_name(name), m_url(url) { } public: - static PtrLWJGLVersion Create(const QString &name, const QUrl &url, QObject *parent = 0) + static PtrLWJGLVersion Create(const QString &name, const QString &url, QObject *parent = 0) { return PtrLWJGLVersion(new LWJGLVersion(name, url, parent)); }; QString name() const { return m_name; } - QUrl url() const { return m_url; } + QString url() const { return m_url; } protected: QString m_name; - QUrl m_url; + QString m_url; }; class LIBMULTIMC_EXPORT LWJGLVersionList : public QAbstractListModel @@ -112,8 +101,6 @@ private: QList<PtrLWJGLVersion> m_vlist; QNetworkReply *m_netReply; - - QNetworkAccessManager netMgr; QNetworkReply *reply; bool m_loading; |