25 #if defined(QHTMLPARSER_LIBRARY) 26 #define QHTMLPARSER_EXPORT Q_DECL_EXPORT 27 #elif defined(QHTMLPARSER_STATIC_LIBRARY) 28 #define QHTMLPARSER_EXPORT 30 #define QHTMLPARSER_EXPORT Q_DECL_IMPORT 190 explicit QHtmlAttribute(
const QString &name,
const QString &value);
195 const QString& name()
const;
200 void setName(
const QString &name);
205 const QString& value()
const;
210 void setValue(
const QString &value);
215 bool operator==(
const QHtmlAttribute &other)
const;
220 bool operator!=(
const QHtmlAttribute &other)
const;
315 class QHtmlElementPrivate;
364 QString attribute(
const QString &name)
const;
443 QHtmlElement firstElementByTagName(
const QString &name)
const;
465 QHtmlElement lastElementByTagName(
const QString &name)
const;
487 QHtmlElement nthElementByTagName(
int n,
const QString &name)
const;
509 QString tagName()
const;
516 QString text(
bool includeChildElements =
false)
const;
523 QString toString()
const;
545 QHtmlElementPrivate *d;
550 class QHtmlDocumentPrivate;
625 bool setContent(
const QString &content);
630 bool setContent(
const QByteArray &content);
639 bool setContent(QIODevice *device);
674 QString toString()
const;
679 bool hasError()
const;
686 QString errorString()
const;
696 QHtmlDocumentPrivate *d;
700 #endif // QHTMLPARSER_H The attribute value ends with the specified string.
Definition: qhtmlparser.h:134
Only one match in the list must be successful.
Definition: qhtmlparser.h:169
QList< QHtmlAttributeMatch > QHtmlAttributeMatches
Typedef for QList<QHtmlAttributeMatch>.
Definition: qhtmlparser.h:325
QList< QHtmlAttribute > QHtmlAttributes
Typedef for QList<QHtmlAttribute>.
Definition: qhtmlparser.h:315
The attribute value is equal to the specified string.
Definition: qhtmlparser.h:119
All matches in the list must be successful.
Definition: qhtmlparser.h:164
Represents a HTML document.
Definition: qhtmlparser.h:577
Represents a HTML attribute with a name and value.
Definition: qhtmlparser.h:178
Represents a HTML element/tag.
Definition: qhtmlparser.h:335
MatchType
Specifies the criteria applied when matching a list of attributes.
Definition: qhtmlparser.h:160
The attribute value matches the specified regular expression pattern.
Definition: qhtmlparser.h:139
The attribute matches the specified wildcard.
Definition: qhtmlparser.h:144
QFlags< MatchFlag > MatchFlags
Typedef for QFlags<MatchFlag>.
Definition: qhtmlparser.h:155
The attribute value contains the specified string.
Definition: qhtmlparser.h:124
The attribute value starts with the specified string.
Definition: qhtmlparser.h:129
The QHtmlParser namespace.
Definition: qhtmlparser.h:110
Defines the criteria used for performing a match against the attributes of an element.
Definition: qhtmlparser.h:257
QList< QHtmlElement > QHtmlElementList
Typedef for QList<QHtmlElement>.
Definition: qhtmlparser.h:330
MatchFlag
Specifies the criteria applied when matching attribute values.
Definition: qhtmlparser.h:115
The match is case sensitive.
Definition: qhtmlparser.h:149