6 #ifndef MAGICSMOKE_DOMQUERY_H
7 #define MAGICSMOKE_DOMQUERY_H
10 #include <QDomElement>
12 #include <QStringList>
21 MDomNodeList(
const QDomNodeList&l){
for(
int i=0;i<l.size();i++)append(l.at(i));}
22 MDomNodeList(
const QDomNamedNodeMap&l){
for(
int i=0;i<l.size();i++)append(l.item(i));}
25 {
for(
int i=0;i<l.size();i++)append(l.at(i));
return *
this;}
28 {
for(
int i=0;i<l.size();i++)append(l.item(i));
return *
this;}
59 MDomQuery(
const QDomElement&start,QString path);
62 MDomQuery(
const QDomDocument&start,QString path);
81 void construct(
const QDomElement&start,QString path);
void construct(const QDomElement &start, QString path)
Definition: domquery.cpp:19
MDomNodeList & operator+=(const QDomNamedNodeMap &l)
Definition: domquery.h:27
MDomNodeList(const QDomNamedNodeMap &l)
Definition: domquery.h:22
MDomNodeList(const MDomNodeList &l)
Definition: domquery.h:19
QString toString() const
returns the search result as a single string, if there were multiple matches, they are separated by s...
Definition: domquery.cpp:116
QStringList toStringList() const
returns the search result as a list of strings, one string element per match
Definition: domquery.cpp:129
MDomNodeList()
Definition: domquery.h:18
MDomNodeList toNodeList() const
returns the result as a list of DOM nodes
Definition: domquery.h:69
MDomNodeList m_result
Definition: domquery.h:78
Helper class: more flexible version of QDomNodeList.
Definition: domquery.h:15
MDomNodeList & operator+=(const QDomNodeList &l)
Definition: domquery.h:24
DOM Query Class.
Definition: domquery.h:55
MDomQuery(const QDomElement &start, QString path)
creates the query object and executes the query
Definition: domquery.cpp:14
MDomNodeList(const QDomNodeList &l)
Definition: domquery.h:21
MDomNodeList(const QList< QDomNode > &l)
Definition: domquery.h:20