2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
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.
23 bool operator()(const QString
& a
, const QString
& b
) const {
24 return a
.compare(b
, Qt::CaseInsensitive
) < 0;
28 typedef std::map
<QString
, VariantFactory
*, case_comparer
> Factories
;
29 Factories m_factories
;
33 VariantPtr
get(const QString
& name
) const;
34 VariantFactory
* getFactory(const QString
& name
) const;
36 void addFactory(VariantFactory
* factory
);
39 * \return a list of all non-hidden variants.
41 QStringList
all() const;
43 static Variants
& instance();