diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-08-11 18:58:24 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-08-11 19:05:22 +0200 |
commit | 7e78a422e8bb22572706b7fadb58fc45e7b8a7db (patch) | |
tree | e91e2aa3364d1a5cb8329a6b7e49b7a46e720ab5 /backend/lists/InstVersionList.h | |
parent | e5dc113bfceb1e9b52535b7d1abd6f0ec51e1332 (diff) | |
download | PrismLauncher-7e78a422e8bb22572706b7fadb58fc45e7b8a7db.tar.gz PrismLauncher-7e78a422e8bb22572706b7fadb58fc45e7b8a7db.tar.bz2 PrismLauncher-7e78a422e8bb22572706b7fadb58fc45e7b8a7db.zip |
Version filtering and general related code sanitization.
Version list dialog has alternating row background set.
Nostalgia versions, based on OneSix.
Diffstat (limited to 'backend/lists/InstVersionList.h')
-rw-r--r-- | backend/lists/InstVersionList.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/backend/lists/InstVersionList.h b/backend/lists/InstVersionList.h index 57965333..ff6938b4 100644 --- a/backend/lists/InstVersionList.h +++ b/backend/lists/InstVersionList.h @@ -18,10 +18,11 @@ #include <QObject> #include <QVariant> #include <QAbstractListModel> +#include <QSharedPointer> #include "libmmc_config.h" +#include "InstanceVersion.h" -class InstVersion; class Task; /*! @@ -71,7 +72,7 @@ public: virtual bool isLoaded() = 0; //! Gets the version at the given index. - virtual const InstVersion *at(int i) const = 0; + virtual const InstVersionPtr at(int i) const = 0; //! Returns the number of versions in the list. virtual int count() const = 0; @@ -90,14 +91,14 @@ public: * \return A const pointer to the version with the given descriptor. NULL if * one doesn't exist. */ - virtual const InstVersion *findVersion(const QString &descriptor); + virtual InstVersionPtr findVersion(const QString &descriptor); /*! * \brief Gets the latest stable version of this instance type. * This is the version that will be selected by default. * By default, this is simply the first version in the list. */ - virtual const InstVersion *getLatestStable() const; + virtual InstVersionPtr getLatestStable() const; /*! * Sorts the version list. @@ -117,5 +118,5 @@ protected slots: * then copies the versions and sets their parents correctly. * \param versions List of versions whose parents should be set. */ - virtual void updateListData(QList<InstVersion *> versions) = 0; + virtual void updateListData(QList<InstVersionPtr > versions) = 0; }; |