WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. | Zuble QML Types | Zuble C++ Classes | Zuble Overview |
Zuble
0.1
Zuble Framework C++/QML extension API
|
This class provides access to the QXmlResultItems class from Javascript programs. It accumulates the results of an XQuery as an array of QXmlItem objects. More...
#include <ZxResultItems.h>
Public Member Functions | |
ZxResultItems (ZxQuery *zQuery, QObject *parent=0) | |
Q_INVOKABLE QObject * | getItem (int index) |
returns the specified ZxItem object in the result sequence by index More... | |
int | getCount () |
returns the specified ZxItem object from the result model by specifying it's ID. The XML node must have an attribute value of type xs::ID that exactly matches the value passed. More... | |
Static Public Member Functions | |
static void | registerType () |
Registers ZxResultItems as a QML type. TBD: should we do this? More... | |
Protected Attributes | |
qItemList | m_items |
A list of QXmlItem objects resulting from an XQuery evaluation. More... | |
ZxQuery * | m_zQuery |
The ZxQuery object that produced this object. More... | |
Properties | |
int | count |
obtain the number of items in the list More... | |
Private Types | |
typedef QList< QXmlItem * > | qItemList |
Friends | |
class | ZxQuery |
This class provides access to the QXmlResultItems class from Javascript programs. It accumulates the results of an XQuery as an array of QXmlItem objects.
Definition at line 45 of file ZxResultItems.h.
|
private |
Definition at line 49 of file ZxResultItems.h.
|
explicit |
Definition at line 35 of file ZxResultItems.cpp.
int Zbl::ZxResultItems::getCount | ( | ) |
returns the specified ZxItem object from the result model by specifying it's ID. The XML node must have an attribute value of type xs::ID that exactly matches the value passed.
idValue | the id value for which a node will be returned |
Definition at line 49 of file ZxResultItems.cpp.
QObject * Zbl::ZxResultItems::getItem | ( | int | index | ) |
returns the specified ZxItem object in the result sequence by index
Definition at line 58 of file ZxResultItems.cpp.
|
static |
Registers ZxResultItems as a QML type. TBD: should we do this?
Definition at line 42 of file ZxResultItems.cpp.
Referenced by Zbl::Zblcore::registerTypes().
|
friend |
Definition at line 47 of file ZxResultItems.h.
|
protected |
A list of QXmlItem objects resulting from an XQuery evaluation.
Definition at line 114 of file ZxResultItems.h.
Referenced by Zbl::ZxQuery::evaluateToItems(), getCount(), and getItem().
|
protected |
The ZxQuery object that produced this object.
Definition at line 120 of file ZxResultItems.h.
Referenced by getItem().
|
read |
obtain the number of items in the list
Definition at line 60 of file ZxResultItems.h.
Zuble documentation copyright © 2019 Bob Dinitto. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Zuble is a derivative work of Qt version 5. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.