Allow building as monolithic app (no plugins) for easier developement.
[tagua.git] / src / variantfactories / builtinvariants.h
blob7df3fc81e0dc88f23e322f28119503622e4a252a
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
3 Copyright (c) 2008 Yann Dirson <ydirson@altern.org>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef BUILTINVARIANTS_H
12 #define BUILTINVARIANTS_H
14 #include <core/variantloader.h>
15 #include <QStringList>
17 class Repository;
18 class Variant;
20 class BuiltinVariants: public IVariantLoader {
21 QMap<QString,Repository*> m_variants;
22 QStringList m_allvariants;
23 public:
24 BuiltinVariants();
25 Variant* create(const QString& name);
26 virtual QStringList all() const;
27 virtual Repository* getRepository(const QString& variant);
29 /**
30 * \return the singleton IVariantLoader instance
32 static BuiltinVariants& self();
35 #endif // BUILTINVARIANTS_H