21 #ifndef GRANTLEE_CONTEXT_H
22 #define GRANTLEE_CONTEXT_H
24 #include "abstractlocalizer.h"
25 #include "grantlee_core_export.h"
27 #include <QtCore/QVariantHash>
120 explicit Context(
const QVariantHash &hash );
139 bool autoEscape()
const;
146 void setAutoEscape(
bool autoescape );
156 QVariant lookup(
const QString &str )
const;
161 void insert(
const QString &name, QObject *
object );
166 void insert(
const QString &name,
const QVariant &variant );
184 QVariantHash stackHash(
int depth )
const;
190 bool isMutating()
const;
196 void setMutating(
bool mutating );
201 void addExternalMedia(
const QString &absolutePart,
const QString &relativePart );
206 void clearExternalMedia();
224 QList<QPair<QString, QString> > externalMedia()
const;
239 void setUrlType( UrlType type );
244 UrlType urlType()
const;
250 void setRelativeMediaPath(
const QString &relativePath );
255 QString relativeMediaPath()
const;
266 ContextPrivate * const d_ptr;