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.
11 #ifndef BUILTINVARIANTS_H
12 #define BUILTINVARIANTS_H
14 #include <core/variantloader.h>
15 #include <QStringList>
20 class BuiltinVariants
: public IVariantLoader
{
21 QMap
<QString
,Repository
*> m_variants
;
22 QStringList m_allvariants
;
25 Variant
* create(const QString
& name
);
26 virtual QStringList
all() const;
27 virtual Repository
* getRepository(const QString
& variant
);
30 * \return the singleton IVariantLoader instance
32 static BuiltinVariants
& self();
35 #endif // BUILTINVARIANTS_H