Cutelyst  1.5.0
Public Member Functions | Protected Attributes | Properties | List of all members
Cutelyst::ClearSilver Class Reference
Inheritance diagram for Cutelyst::ClearSilver:
Inheritance graph
[legend]

Public Member Functions

Q_INVOKABLE ClearSilver (QObject *parent=nullptr)
 
QStringList includePaths () const
 
QByteArray render (Context *c) const final
 
void setIncludePaths (const QStringList &paths)
 
void setTemplateExtension (const QString &extension)
 
void setWrapper (const QString &name)
 
QString templateExtension () const
 
QString wrapper () const
 
- Public Member Functions inherited from Cutelyst::View
 View (QObject *parent, const QString &name=QString())
 
virtual Modifiers modifiers () const override
 
QString name () const
 
- Public Member Functions inherited from Cutelyst::Component
 Component (QObject *parent=nullptr)
 
bool execute (Context *c)
 
virtual bool init (Application *application, const QVariantHash &args)
 
QString name () const
 name More...
 
QString reverse () const
 name More...
 
void setName (const QString &name)
 
void setReverse (const QString &reverse)
 

Protected Attributes

ClearSilverPrivate * d_ptr
 
- Protected Attributes inherited from Cutelyst::Component
ComponentPrivate * d_ptr
 

Properties

QStringList includePaths
 
QString templateExtension
 
QString wrapper
 

Additional Inherited Members

- Public Types inherited from Cutelyst::Component
enum  Modifier {
  None, OnlyExecute, BeforeExecute, AroundExecute,
  AfterExecute
}
 
- Protected Member Functions inherited from Cutelyst::Component
virtual bool afterExecute (Context *c)
 
void applyRoles (const QStack< Component * > &roles)
 
virtual bool aroundExecute (Context *c, QStack< Component * > stack)
 
virtual bool beforeExecute (Context *c)
 
virtual bool dispatcherReady (const Dispatcher *dispatch, Controller *controller)
 

Detailed Description

Definition at line 31 of file clearsilver.h.

Member Function Documentation

QByteArray Cutelyst::ClearSilver::render ( Context c) const
finalvirtual

All subclasses must reimplement this when doing it's rendering. If an error (c->error()) is not set c->response()->body() is defined with the returned value, this is useful if the view is not meant to be used as a body.

Implements Cutelyst::View.