TreeFrogFramework  1.18
Public Member Functions | List of all members
THtmlAttribute Class Reference

#include <thtmlattribute.h>

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

Public Member Functions

 THtmlAttribute ()
 
 THtmlAttribute (const QString &key, const QString &value)
 
 THtmlAttribute (const THtmlAttribute &other)
 
 THtmlAttribute (const QList< QPair< QString, QString >> &list)
 
bool contains (const QString &key) const
 
void prepend (const QString &key, const QString &value)
 
void append (const QString &key, const QString &value)
 
THtmlAttributeoperator() (const QString &key, const QString &value)
 
THtmlAttributeoperator= (const THtmlAttribute &other)
 
THtmlAttribute operator| (const THtmlAttribute &other) const
 
QString toString (bool escape=true) const
 

Detailed Description

The THtmlAttribute class represents HTML attributes for customizing web elements.

Constructor & Destructor Documentation

THtmlAttribute::THtmlAttribute ( )
inline

Constructor.

THtmlAttribute::THtmlAttribute ( const QString &  key,
const QString &  value 
)

Constructor.

THtmlAttribute::THtmlAttribute ( const THtmlAttribute other)

Copy constructor.

THtmlAttribute::THtmlAttribute ( const QList< QPair< QString, QString >> &  list)

Copy constructor.

Member Function Documentation

void THtmlAttribute::append ( const QString &  key,
const QString &  value 
)

Inserts a new item at the end of the attributes.

bool THtmlAttribute::contains ( const QString &  key) const

Returns true if the HTML attributes contains an item with key key; otherwise returns false.

THtmlAttribute & THtmlAttribute::operator() ( const QString &  key,
const QString &  value 
)

Inserts a new item at the end of the attributes.

THtmlAttribute & THtmlAttribute::operator= ( const THtmlAttribute other)

Assignment operator.

THtmlAttribute THtmlAttribute::operator| ( const THtmlAttribute other) const

Returns HTML attributes that contains all the items in this attributes followed by all the items in the other attributes.

void THtmlAttribute::prepend ( const QString &  key,
const QString &  value 
)

Inserts a new item at the beginning of the attributes.

QString THtmlAttribute::toString ( bool  escape = true) const

Returns the attributes as a string.

If escape is true, returns a escaped string.


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