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
|
A class for opening XQuery resource files. More...
#include <ZxQuery.h>
Public Member Functions | |
ResourceUrlFile () | |
~ResourceUrlFile () | |
void | setUrl (const QString &url) |
QString | getUrl () |
bool | open () |
bool | isOK () |
QString | errorString () |
QString | fileName () |
void | dumpFile () |
void | resetFile () |
Closes QFile if one exists, otherwise creates a new QFile. More... | |
void | closeFile () |
Closes QFile if one exists. More... | |
void | freeFile () |
Frees the QFile if onw exists. More... | |
Static Public Member Functions | |
static bool | isResourceScheme (const QString &scheme) |
Public Attributes | |
QFile * | m_f |
QUrl | m_url |
A class for opening XQuery resource files.
QXmlQuery doesn't like to open Qt resource files. [TBD: We may just be passing incorrect path to XQuery! Duh... Experiment with unit test!]
We open an internal QFile for the resource and hand that to QXmlQuery instead. We use lazy allocation to create the QFile.
Zbl::ZxQuery::ResourceUrlFile::~ResourceUrlFile | ( | ) |
Definition at line 358 of file ZxQuery.cpp.
void Zbl::ZxQuery::ResourceUrlFile::closeFile | ( | ) |
Closes QFile if one exists.
Definition at line 394 of file ZxQuery.cpp.
|
inline |
Definition at line 395 of file ZxQuery.h.
Referenced by Zbl::ZxQuery::loadQueryText(), Zbl::ZxQuery::setFocusUrl(), and Zbl::ZxQuery::setQueryUrl().
|
inline |
void Zbl::ZxQuery::ResourceUrlFile::freeFile | ( | ) |
Frees the QFile if onw exists.
Definition at line 400 of file ZxQuery.cpp.
Referenced by Zbl::ZxQuery::setFocusText().
|
inline |
Definition at line 387 of file ZxQuery.h.
Referenced by Zbl::ZxQuery::getFocusUrl(), and Zbl::ZxQuery::ZxQuery().
|
inlinestatic |
Definition at line 389 of file ZxQuery.h.
Referenced by Zbl::ZxQuery::setFocusUrl(), and Zbl::ZxQuery::setQueryUrl().
bool Zbl::ZxQuery::ResourceUrlFile::open | ( | ) |
Definition at line 364 of file ZxQuery.cpp.
Referenced by Zbl::ZxQuery::loadQueryText(), Zbl::ZxQuery::setFocusUrl(), and Zbl::ZxQuery::setQueryUrl().
void Zbl::ZxQuery::ResourceUrlFile::resetFile | ( | ) |
Closes QFile if one exists, otherwise creates a new QFile.
Definition at line 386 of file ZxQuery.cpp.
void Zbl::ZxQuery::ResourceUrlFile::setUrl | ( | const QString & | url | ) |
Definition at line 409 of file ZxQuery.cpp.
Referenced by Zbl::ZxQuery::loadQueryText(), Zbl::ZxQuery::setFocusUrl(), Zbl::ZxQuery::setQueryUrl(), and Zbl::ZxQuery::ZxQuery().
QFile* Zbl::ZxQuery::ResourceUrlFile::m_f |
Definition at line 423 of file ZxQuery.h.
Referenced by Zbl::ZxQuery::loadQueryText(), Zbl::ZxQuery::setFocusUrl(), and Zbl::ZxQuery::setQueryUrl().
QUrl Zbl::ZxQuery::ResourceUrlFile::m_url |
Definition at line 425 of file ZxQuery.h.
Referenced by Zbl::ZxQuery::setFocusUrl(), and Zbl::ZxQuery::setQueryUrl().
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.