KItinerary::HtmlElement

Search for usage in LXR

KItinerary::HtmlElement Class Reference

#include <htmldocument.h>

Properties

QString content
 
KItinerary::HtmlElement firstChild
 
bool isNull
 
QString name
 
KItinerary::HtmlElement nextSibling
 
KItinerary::HtmlElement parent
 
QString recursiveContent
 

Public Member Functions

Q_INVOKABLE QString attribute (const QString &attr) const
 
QStringList attributes () const
 
QString content () const
 
Q_INVOKABLE QVariant eval (const QString &xpath) const
 
HtmlElement firstChild () const
 
bool hasAttribute (const QString &attr) const
 
bool isNull () const
 
QString name () const
 
HtmlElement nextSibling () const
 
bool operator== (const HtmlElement &other) const
 
HtmlElement parent () const
 
QString recursiveContent () const
 

Detailed Description

HTML document element.

Definition at line 23 of file htmldocument.h.

Property Documentation

◆ content

QString KItinerary::HtmlElement::content
read

Definition at line 31 of file htmldocument.h.

◆ firstChild

KItinerary::HtmlElement KItinerary::HtmlElement::firstChild
read

Definition at line 29 of file htmldocument.h.

◆ isNull

bool KItinerary::HtmlElement::isNull
read

Definition at line 26 of file htmldocument.h.

◆ name

QString KItinerary::HtmlElement::name
read

Definition at line 27 of file htmldocument.h.

◆ nextSibling

KItinerary::HtmlElement KItinerary::HtmlElement::nextSibling
read

Definition at line 30 of file htmldocument.h.

◆ parent

KItinerary::HtmlElement KItinerary::HtmlElement::parent
read

Definition at line 28 of file htmldocument.h.

◆ recursiveContent

QString KItinerary::HtmlElement::recursiveContent
read

Definition at line 32 of file htmldocument.h.

Constructor & Destructor Documentation

◆ HtmlElement()

HtmlElement::HtmlElement ( )

Definition at line 34 of file htmldocument.cpp.

Member Function Documentation

◆ attribute()

QString HtmlElement::attribute ( const QString & attr) const

Value of the attribute attr.

Definition at line 71 of file htmldocument.cpp.

◆ attributes()

QStringList HtmlElement::attributes ( ) const

Returns the list of all attributes of this node.

Definition at line 330 of file htmldocument.cpp.

◆ content()

QString HtmlElement::content ( ) const

Returns the content of this element.

That is, all text nodes that are immediate children of this element. The content is trimmed from leading or trailing whitespaces.

Definition at line 164 of file htmldocument.cpp.

◆ eval()

QVariant HtmlElement::eval ( const QString & xpath) const

Evaluate an XPath expression relative to this node.

Definition at line 264 of file htmldocument.cpp.

◆ firstChild()

HtmlElement HtmlElement::firstChild ( ) const

Returns the first child element of this node.

Definition at line 94 of file htmldocument.cpp.

◆ hasAttribute()

bool HtmlElement::hasAttribute ( const QString & attr) const

Checks whether an attribute with name attr exists.

Definition at line 309 of file htmldocument.cpp.

◆ isNull()

bool HtmlElement::isNull ( ) const

Check if the element is null.

Definition at line 56 of file htmldocument.cpp.

◆ name()

QString HtmlElement::name ( ) const

The element name.

Definition at line 61 of file htmldocument.cpp.

◆ nextSibling()

HtmlElement HtmlElement::nextSibling ( ) const

Returns the next sibling element of this node.

Definition at line 104 of file htmldocument.cpp.

◆ operator==()

bool HtmlElement::operator== ( const HtmlElement & other) const

Checks if two HtmlElement instances refer to the same DOM node.

Definition at line 348 of file htmldocument.cpp.

◆ parent()

HtmlElement HtmlElement::parent ( ) const

Returns the parent element of this node.

Definition at line 84 of file htmldocument.cpp.

◆ recursiveContent()

QString HtmlElement::recursiveContent ( ) const

Returns the content of this element and all its children.

Definition at line 249 of file htmldocument.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:00:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.