21 #ifndef GRANTLEE_TEMPLATE_H
22 #define GRANTLEE_TEMPLATE_H
24 #include "exception.h"
25 #include "grantlee_core_export.h"
28 #include <QtCore/QSharedPointer>
29 #include <QtCore/QStringList>
39 #define TemplateImpl Template
41 typedef QSharedPointer<TemplateImpl> Template;
44 class TemplatePrivate;
89 class GRANTLEE_CORE_EXPORT TemplateImpl :
public QObject
98 virtual QString render(
Context *c );
115 void setNodeList(
const NodeList &list );
126 QString errorString();
131 Engine const * engine()
const;
135 TemplateImpl(
Engine const *engine, QObject *parent = 0 );
136 TemplateImpl(
Engine const *engine,
bool smartTrim, QObject *parent = 0 );
138 void setContent(
const QString &templateString );
143 using QObject::setParent;
147 TemplatePrivate *
const d_ptr;