Move all() up to IVariantLoader.
[tagua/yd.git] / src / core / variantloader.h
blob2f0eb5943f30233b632380e76659779b562df3be
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8 */
10 #ifndef VARIANTLOADER_H
11 #define VARIANTLOADER_H
13 #include <QString>
14 #include "export.h"
16 class Repository;
18 class TAGUA_EXPORT IVariantLoader {
19 public:
20 virtual ~IVariantLoader();
22 /**
23 * \return a list of all non-hidden variants.
25 virtual QStringList all() const = 0;
27 virtual Repository* getRepository(const QString& variant) = 0;
30 #endif // VARIANTLOADER_H