TreeFrogFramework  2.8
Public Member Functions | Protected Member Functions | List of all members
TActionMailer Class Reference

#include <tactionmailer.h>

Inheritance diagram for TActionMailer:
Inheritance graph
[legend]
Collaboration diagram for TActionMailer:
Collaboration graph
[legend]

Public Member Functions

 TActionMailer ()
 
virtual ~TActionMailer ()
 
virtual QString name () const
 
virtual QString activeAction () const
 
- Public Member Functions inherited from TAbstractController
 TAbstractController ()
 
virtual ~TAbstractController ()
 
virtual QString className () const
 
virtual QStringList arguments () const
 
virtual const THttpRequesthttpRequest () const
 
virtual const THttpRequestrequest () const
 
virtual const TSessionsession () const
 
virtual QString getRenderingData (const QString &templateName, const QVariantMap &vars=QVariantMap())
 
virtual QByteArray authenticityToken () const
 
virtual void setFlash (const QString &name, const QVariant &value)
 
void exportVariant (const QString &name, const QVariant &value, bool overwrite=true)
 
virtual bool isUserLoggedIn () const
 
const TActionContext * context () const
 
TActionContext * context ()
 
void setContext (TActionContext *context)
 

Protected Member Functions

bool deliver (const QString &templateName="mail")
 
- Protected Member Functions inherited from TAbstractController
virtual TSessionsession ()
 
virtual bool addCookie (const TCookie &cookie)
 
virtual bool addCookie (const QByteArray &name, const QByteArray &value, const QDateTime &expire=QDateTime(), const QString &path=QString(), const QString &domain=QString(), bool secure=false, bool httpOnly=false, const QByteArray &sameSite="Lax")
 
virtual bool addCookie (const QByteArray &name, const QByteArray &value, int64_t maxAge, const QString &path=QString(), const QString &domain=QString(), bool secure=false, bool httpOnly=false, const QByteArray &sameSite="Lax")
 
virtual void reset ()
 
QVariant variant (const QString &name) const
 
void exportVariants (const QVariantMap &map)
 
void exportValidationErrors (const TFormValidator &validator, const QString &prefix=QString("err_"))
 
bool hasVariant (const QString &name) const
 
const QVariantMap & allVariants () const
 
QString viewClassName (const QString &action=QString()) const
 
QString viewClassName (const QString &contoller, const QString &action) const
 

Additional Inherited Members

- Static Public Member Functions inherited from TAbstractController
static QThread * currentThread ()
 

Detailed Description

The TActionMailer class provides a mail client on action controller.

Constructor & Destructor Documentation

◆ TActionMailer()

TActionMailer::TActionMailer ( )

Constructor.

◆ ~TActionMailer()

virtual TActionMailer::~TActionMailer ( )
inlinevirtual

Member Function Documentation

◆ activeAction()

QString TActionMailer::activeAction ( ) const
virtual

Returns a active action name, "mail".

Implements TAbstractController.

◆ deliver()

bool TActionMailer::deliver ( const QString &  templateName = "mail")
protected

Delivers an email generated by setting variables to the specified template.

◆ name()

QString TActionMailer::name ( ) const
virtual

Returns the controller name, "mailer".

Implements TAbstractController.


The documentation for this class was generated from the following files: