21 #ifndef CUTELEE_ENGINE_H
22 #define CUTELEE_ENGINE_H
25 #include "templateloader.h"
29 class TagLibraryInterface;
120 class CUTELEE_TEMPLATES_EXPORT
Engine :
public QObject
127 Engine(QObject *parent =
nullptr);
137 QList<std::shared_ptr<AbstractTemplateLoader> > templateLoaders();
143 void addTemplateLoader(std::shared_ptr<AbstractTemplateLoader> loader);
153 void setPluginPaths(
const QStringList &dirs);
158 void addPluginPath(
const QString &dir);
163 void removePluginPath(
const QString &dir);
168 QStringList pluginPaths()
const;
182 std::pair<QString, QString> mediaUri(
const QString &fileName)
const;
203 QStringList defaultLibraries()
const;
209 void addDefaultLibrary(
const QString &libName);
215 void removeDefaultLibrary(
const QString &libName);
225 bool smartTrimEnabled()
const;
232 void setSmartTrimEnabled(
bool enabled);
258 void loadDefaultLibraries();
273 EnginePrivate *
const d_ptr;
Cutelee::Engine is the main entry point for creating Cutelee Templates.
The TagLibraryInterface returns available tags and filters from libraries.
The Template class is a tree of nodes which may be rendered.
The Cutelee namespace holds all public Cutelee API.