TreeFrogFramework  2.8
Public Member Functions | Protected Member Functions | List of all members
TActionHelper Class Referenceabstract

#include <tactionhelper.h>

Inheritance diagram for TActionHelper:
Inheritance graph
[legend]

Public Member Functions

virtual ~TActionHelper ()
 
QUrl url (const QString &controller=QString(), const QString &action=QString(), const QStringList &args=QStringList(), const QVariantMap &query=QVariantMap()) const
 
QUrl url (const QString &controller, const QString &action, const QStringList &args, const QString &query) const
 
QUrl url (const QString &controller, const QString &action, int arg) const
 
QUrl url (const QString &controller, const QString &action, uint arg) const
 
QUrl url (const QString &controller, const QString &action, int64_t arg) const
 
QUrl url (const QString &controller, const QString &action, uint64_t arg) const
 
QUrl url (const QString &controller, const QString &action, const QString &arg) const
 
QUrl url (const QString &controller, const QString &action, const QVariant &arg) const
 
QUrl url (const QString &controller, const QString &action, const QVariantMap &query) const
 
QUrl urla (const QString &action=QString(), const QStringList &args=QStringList(), const QVariantMap &query=QVariantMap()) const
 
QUrl urla (const QString &action, const QStringList &args, const QString &query) const
 
QUrl urla (const QString &action, int arg) const
 
QUrl urla (const QString &action, uint arg) const
 
QUrl urla (const QString &action, int64_t arg) const
 
QUrl urla (const QString &action, uint64_t arg) const
 
QUrl urla (const QString &action, const QString &arg) const
 
QUrl urla (const QString &action, const QVariant &arg) const
 
QUrl urla (const QString &action, const QVariantMap &query) const
 
QUrl urlq (const QVariantMap &query) const
 
QUrl urlq (const QString &query) const
 

Protected Member Functions

virtual const TAbstractControllercontroller () const =0
 

Detailed Description

The TActionHelper class is the base class of all helpers.

Constructor & Destructor Documentation

◆ ~TActionHelper()

virtual TActionHelper::~TActionHelper ( )
inlinevirtual

Member Function Documentation

◆ controller()

virtual const TAbstractController* TActionHelper::controller ( ) const
protectedpure virtual

Implemented in TActionView.

◆ url() [1/9]

QUrl TActionHelper::url ( const QString &  controller,
const QString &  action,
const QString &  arg 
) const
inline

◆ url() [2/9]

QUrl TActionHelper::url ( const QString &  controller,
const QString &  action,
const QStringList &  arguments,
const QString &  query 
) const

Returns a QUrl to action of controller with arguments args.

The current controller name is used, if the controller is a empty string. The current action name is used, if the action is a empty string. If query is not empty, sets the query string to query.

◆ url() [3/9]

QUrl TActionHelper::url ( const QString &  controller,
const QString &  action,
const QVariant &  arg 
) const

◆ url() [4/9]

QUrl TActionHelper::url ( const QString &  controller,
const QString &  action,
const QVariantMap &  query 
) const
inline

◆ url() [5/9]

QUrl TActionHelper::url ( const QString &  controller,
const QString &  action,
int  arg 
) const
inline

◆ url() [6/9]

QUrl TActionHelper::url ( const QString &  controller,
const QString &  action,
int64_t  arg 
) const
inline

◆ url() [7/9]

QUrl TActionHelper::url ( const QString &  controller,
const QString &  action,
uint  arg 
) const
inline

◆ url() [8/9]

QUrl TActionHelper::url ( const QString &  controller,
const QString &  action,
uint64_t  arg 
) const
inline

◆ url() [9/9]

QUrl TActionHelper::url ( const QString &  controller = QString(),
const QString &  action = QString(),
const QStringList &  args = QStringList(),
const QVariantMap &  query = QVariantMap() 
) const

Returns a QUrl to action of controller with arguments args.

The current controller name is used, if the controller is a empty string. The current action name is used, if the action is a empty string. If query is not empty, sets the query string to an encoded version of query.

◆ urla() [1/9]

QUrl TActionHelper::urla ( const QString &  action,
const QString &  arg 
) const
inline

◆ urla() [2/9]

QUrl TActionHelper::urla ( const QString &  action,
const QStringList &  args,
const QString &  query 
) const
inline

Returns a QUrl to action of the current controller with arguments args.

The current action name is used, if the action is a empty string. If query is not empty, sets the query string to an encoded version of query.

◆ urla() [3/9]

QUrl TActionHelper::urla ( const QString &  action,
const QVariant &  arg 
) const

◆ urla() [4/9]

QUrl TActionHelper::urla ( const QString &  action,
const QVariantMap &  query 
) const
inline

◆ urla() [5/9]

QUrl TActionHelper::urla ( const QString &  action,
int  arg 
) const
inline

◆ urla() [6/9]

QUrl TActionHelper::urla ( const QString &  action,
int64_t  arg 
) const
inline

◆ urla() [7/9]

QUrl TActionHelper::urla ( const QString &  action,
uint  arg 
) const
inline

◆ urla() [8/9]

QUrl TActionHelper::urla ( const QString &  action,
uint64_t  arg 
) const
inline

◆ urla() [9/9]

QUrl TActionHelper::urla ( const QString &  action = QString(),
const QStringList &  args = QStringList(),
const QVariantMap &  query = QVariantMap() 
) const
inline

Returns a QUrl to action of the current controller with arguments args.

The current action name is used, if the action is a empty string. If query is not empty, sets the query string to an encoded version of query.

◆ urlq() [1/2]

QUrl TActionHelper::urlq ( const QString &  query) const
inline

This function overloads url(const QString &, const QString &, const QStringList &, const QString &) const.

Equivalent to url(QString(), QString(), QStringList(), query).

◆ urlq() [2/2]

QUrl TActionHelper::urlq ( const QVariantMap &  query) const
inline

This function overloads url(const QString &, const QString &, const QStringList &, const QVariantMap &) const.

Equivalent to url(QString(), QString(), QStringList(), query).


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