From 7e78a422e8bb22572706b7fadb58fc45e7b8a7db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 11 Aug 2013 18:58:24 +0200 Subject: Version filtering and general related code sanitization. Version list dialog has alternating row background set. Nostalgia versions, based on OneSix. --- backend/lists/InstVersionList.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'backend/lists/InstVersionList.h') 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 #include #include +#include #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 versions) = 0; + virtual void updateListData(QList versions) = 0; }; -- cgit v1.2.3