21#ifndef CUTELEE_TEMPLATELOADER_H
22#define CUTELEE_TEMPLATELOADER_H
24#include "cutelee_templates_export.h"
59 Engine const *engine)
const = 0;
64 virtual std::pair<QString, QString>
193class CUTELEE_TEMPLATES_EXPORT InMemoryTemplateLoader
197 InMemoryTemplateLoader();
198 ~InMemoryTemplateLoader()
override;
Interface for implementing an internationalization system.
An retrieval interface to a storage location for Template objects.
virtual Template loadByName(const QString &name, Engine const *engine) const =0
virtual bool canLoadTemplate(const QString &name) const =0
virtual std::pair< QString, QString > getMediaUri(const QString &fileName) const =0
Cutelee::Engine is the main entry point for creating Cutelee Templates.
FileSystemTemplateLoader(const std::shared_ptr< AbstractLocalizer > localizer={})
Template loadByName(const QString &name, Engine const *engine) const override
void setTheme(const QString &themeName)
bool canLoadTemplate(const QString &name) const override
QStringList templateDirs() const
void setTemplateDirs(const QStringList &dirs)
QString themeName() const
std::pair< QString, QString > getMediaUri(const QString &fileName) const override
bool canLoadTemplate(const QString &name) const override
void setTemplate(const QString &name, const QString &content)
std::pair< QString, QString > getMediaUri(const QString &fileName) const override
Template loadByName(const QString &name, Engine const *engine) const override
The Template class is a tree of nodes which may be rendered.
The Cutelee namespace holds all public Cutelee API.