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
ZxResultItems.h
Go to the documentation of this file.
1 /*
2  * Zuble - A run-time system for QML/Javascript applications
3  * Copyright (C) 2013, 2014 Bob Dinitto
4  *
5  * ZxResultItems.h
6  *
7  * Created on: 29-Sep, 2013
8  * Author: Bob Dinitto bob@ninzo.com
9  *
10  * Zuble is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 2.1 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with this library; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  *
24  */
25 
26 #ifndef ZXRESULTITEMS_H
27 #define ZXRESULTITEMS_H
28 
29 #include <QObject>
30 #include <QXmlResultItems>
31 #include <QUrl>
32 #include "zblcore_global.h"
33 
34 namespace Zbl
35 {
36 
37 class ZxItem;
38 class ZxQuery;
39 
45 class ZBLCORESHARED_EXPORT ZxResultItems : public QObject
46 {
47  friend class ZxQuery;
48 
49  typedef QList<QXmlItem*> qItemList;
50 
51  Q_OBJECT
52 public:
53  explicit ZxResultItems(ZxQuery* zQuery, QObject *parent = 0);
54 
55 
60  Q_PROPERTY(int count READ getCount)
61 
62 
63 
67  Q_INVOKABLE QObject* getItem(int index);
68 
77  //Q_INVOKABLE QObject* getItemById(QString idValue);
78 
79 
84  //Q_INVOKABLE QObject* getMap(const QString& attributeName);
85 
90  int getCount();
91 
92 
97  static void registerType();
98 
99 
100 signals:
101 
102 public slots:
103 
104 
105 
106 protected:
107 
108  //bool evaluate();
109 
114  qItemList m_items;
115 
121 
122 };
123 
124 } // Zbl
125 
126 #endif // ZXRESULTITEMS_H
ZxQuery * m_zQuery
The ZxQuery object that produced this object.
#define ZBLCORESHARED_EXPORT
QList< QXmlItem * > qItemList
Definition: ZxResultItems.h:49
This class provides access to the QXmlResultItems class from Javascript programs. It accumulates the ...
Definition: ZxResultItems.h:45
qItemList m_items
A list of QXmlItem objects resulting from an XQuery evaluation.
Definition: ZAndGate.cpp:6
This class provides access to the QXMLQuery class from Javascript.
Definition: ZxQuery.h:48