GrantleeTheme::GenericFormatter

Search for usage in LXR

GrantleeTheme::GenericFormatter Class Reference

#include <genericformatter.h>

Inheritance diagram for GrantleeTheme::GenericFormatter:

Public Member Functions

 GenericFormatter (const QString &defaultHtmlMain, const QString &themePath)
 
QString errorMessage () const
 
void reloadTemplate ()
 
QString render (const QVariantHash &mapping) const
 
void setApplicationDomain (const QByteArray &domain)
 
void setDefaultHtmlMainFile (const QString &name)
 
void setTemplateContent (const QString &content)
 
void setTemplatePath (const QString &path)
 

Detailed Description

Convenience class for using a Grantlee theme.

Definition at line 22 of file genericformatter.h.

Constructor & Destructor Documentation

◆ GenericFormatter() [1/2]

GenericFormatter::GenericFormatter ( )

Definition at line 37 of file genericformatter.cpp.

◆ GenericFormatter() [2/2]

GenericFormatter::GenericFormatter ( const QString & defaultHtmlMain,
const QString & themePath )
explicit

Definition at line 29 of file genericformatter.cpp.

Member Function Documentation

◆ errorMessage()

QString GenericFormatter::errorMessage ( ) const

Definition at line 68 of file genericformatter.cpp.

◆ reloadTemplate()

void GenericFormatter::reloadTemplate ( )

Definition at line 90 of file genericformatter.cpp.

◆ render()

QString GenericFormatter::render ( const QVariantHash & mapping) const

Definition at line 73 of file genericformatter.cpp.

◆ setApplicationDomain()

void GenericFormatter::setApplicationDomain ( const QByteArray & domain)

Translation domain for the Grantlee localizer.

Definition at line 63 of file genericformatter.cpp.

◆ setDefaultHtmlMainFile()

void GenericFormatter::setDefaultHtmlMainFile ( const QString & name)

Definition at line 44 of file genericformatter.cpp.

◆ setTemplateContent()

void GenericFormatter::setTemplateContent ( const QString & content)

Set template content from a string rather than a file.

Definition at line 82 of file genericformatter.cpp.

◆ setTemplatePath()

void GenericFormatter::setTemplatePath ( const QString & path)

Definition at line 52 of file genericformatter.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:59 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.