TreeFrogFramework  1.18
Public Types | Public Member Functions | Protected Member Functions | List of all members
TPrototypeAjaxHelper Class Referenceabstract

#include <tprototypeajaxhelper.h>

Inheritance diagram for TPrototypeAjaxHelper:
Inheritance graph
[legend]

Public Types

enum  UpdateBehavior {
  Replace = 0, InsertBefore, InsertAfter, InsertAtTopOfContent,
  InsertAtBottomOfContent
}
 

Public Member Functions

virtual ~TPrototypeAjaxHelper ()
 
QString requestFunction (const QUrl &url, const TOption &options, const QString &jsCondition=QString()) const
 
QString updateFunction (const QUrl &url, const QString &id, UpdateBehavior behavior=Replace, const TOption &options=TOption(), bool evalScripts=false, const QString &jsCondition=QString()) const
 
QString periodicalUpdateFunction (const QUrl &url, const QString &id, UpdateBehavior behavior=Replace, const TOption &options=TOption(), bool evalScripts=false, int frequency=2, int decay=1, const QString &jsCondition=QString()) const
 
QString linkToRequest (const QString &text, const QUrl &url, const TOption &options, const QString &jsCondition=QString(), const THtmlAttribute &attributes=THtmlAttribute()) const
 
QString linkToUpdate (const QString &text, const QUrl &url, const QString &id, UpdateBehavior behavior=Replace, const TOption &options=TOption(), bool evalScripts=false, const QString &jsCondition=QString(), const THtmlAttribute &attributes=THtmlAttribute()) const
 
QString linkToPeriodicalUpdate (const QString &text, const QUrl &url, const QString &id, UpdateBehavior behavior=Replace, const TOption &options=TOption(), bool evalScripts=false, int frequency=2, int decay=1, const QString &jsCondition=QString(), const THtmlAttribute &attributes=THtmlAttribute()) const
 
TOption o (int key, const QVariant &value) const
 
TOption o () const
 
QVariantMap o (const QString &key, const TJavaScriptObject &value) const
 
QVariantMap o (const QString &key, const QVariant &value) const
 

Protected Member Functions

virtual const TActionViewactionView () const =0
 
QString optionsToString (const TOption &options) const
 

Detailed Description

The TPrototypeAjaxHelper provides some functionality for Ajax of Prototype JavaScript framework.

Member Enumeration Documentation

Enumerator
Replace 
InsertBefore 
InsertAfter 
InsertAtTopOfContent 
InsertAtBottomOfContent 

Constructor & Destructor Documentation

virtual TPrototypeAjaxHelper::~TPrototypeAjaxHelper ( )
inlinevirtual

Member Function Documentation

virtual const TActionView* TPrototypeAjaxHelper::actionView ( ) const
protectedpure virtual
QString TPrototypeAjaxHelper::linkToPeriodicalUpdate ( const QString &  text,
const QUrl &  url,
const QString &  id,
UpdateBehavior  behavior = Replace,
const TOption options = TOption(),
bool  evalScripts = false,
int  frequency = 2,
int  decay = 1,
const QString &  jsCondition = QString(),
const THtmlAttribute attributes = THtmlAttribute() 
) const
QString TPrototypeAjaxHelper::linkToRequest ( const QString &  text,
const QUrl &  url,
const TOption options,
const QString &  jsCondition = QString(),
const THtmlAttribute attributes = THtmlAttribute() 
) const
QString TPrototypeAjaxHelper::linkToUpdate ( const QString &  text,
const QUrl &  url,
const QString &  id,
UpdateBehavior  behavior = Replace,
const TOption options = TOption(),
bool  evalScripts = false,
const QString &  jsCondition = QString(),
const THtmlAttribute attributes = THtmlAttribute() 
) const
TOption TPrototypeAjaxHelper::o ( int  key,
const QVariant &  value 
) const
inline
TOption TPrototypeAjaxHelper::o ( ) const
inline
QVariantMap TPrototypeAjaxHelper::o ( const QString &  key,
const TJavaScriptObject &  value 
) const
inline
QVariantMap TPrototypeAjaxHelper::o ( const QString &  key,
const QVariant &  value 
) const
inline
QString TPrototypeAjaxHelper::optionsToString ( const TOption options) const
protected
QString TPrototypeAjaxHelper::periodicalUpdateFunction ( const QUrl &  url,
const QString &  id,
UpdateBehavior  behavior = Replace,
const TOption options = TOption(),
bool  evalScripts = false,
int  frequency = 2,
int  decay = 1,
const QString &  jsCondition = QString() 
) const
QString TPrototypeAjaxHelper::requestFunction ( const QUrl &  url,
const TOption options,
const QString &  jsCondition = QString() 
) const
QString TPrototypeAjaxHelper::updateFunction ( const QUrl &  url,
const QString &  id,
UpdateBehavior  behavior = Replace,
const TOption options = TOption(),
bool  evalScripts = false,
const QString &  jsCondition = QString() 
) const

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