21 #ifndef CUTELEE_TEMPLATELOADER_H
22 #define CUTELEE_TEMPLATELOADER_H
24 #include "cutelee_templates_export.h"
30 class AbstractLocalizer;
59 Engine const *engine)
const = 0;
64 virtual std::pair<QString, QString>
152 bool canLoadTemplate(
const QString &name)
const override;
154 std::pair<QString, QString> getMediaUri(
const QString &fileName)
const override;
159 void setTheme(
const QString &themeName);
169 void setTemplateDirs(
const QStringList &dirs);
174 QStringList templateDirs()
const;
202 bool canLoadTemplate(
const QString &name)
const override;
204 std::pair<QString, QString> getMediaUri(
const QString &fileName)
const override;
223 QHash<QString, QString> m_namedTemplates;
An retrieval interface to a storage location for Template objects.
virtual std::pair< QString, QString > getMediaUri(const QString &fileName) const =0
virtual Template loadByName(const QString &name, Engine const *engine) const =0
virtual bool canLoadTemplate(const QString &name) const =0
Cutelee::Engine is the main entry point for creating Cutelee Templates.
The FileSystemTemplateLoader loads Templates from the file system.
The InMemoryTemplateLoader loads Templates set dynamically in memory.
The Template class is a tree of nodes which may be rendered.
The Cutelee namespace holds all public Cutelee API.