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
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Zbl::ZxQuery::ResourceUrlFile Class Reference

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

Detailed Description

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.

Definition at line 379 of file ZxQuery.h.

Constructor & Destructor Documentation

◆ ResourceUrlFile()

Zbl::ZxQuery::ResourceUrlFile::ResourceUrlFile ( )

Definition at line 382 of file ZxQuery.h.

◆ ~ResourceUrlFile()

Zbl::ZxQuery::ResourceUrlFile::~ResourceUrlFile ( )

Definition at line 358 of file ZxQuery.cpp.

Member Function Documentation

◆ closeFile()

void Zbl::ZxQuery::ResourceUrlFile::closeFile ( )

Closes QFile if one exists.

Definition at line 394 of file ZxQuery.cpp.

◆ dumpFile()

void Zbl::ZxQuery::ResourceUrlFile::dumpFile ( )

Definition at line 399 of file ZxQuery.h.

◆ errorString()

QString Zbl::ZxQuery::ResourceUrlFile::errorString ( )

◆ fileName()

QString Zbl::ZxQuery::ResourceUrlFile::fileName ( )

Definition at line 397 of file ZxQuery.h.

◆ freeFile()

void Zbl::ZxQuery::ResourceUrlFile::freeFile ( )

Frees the QFile if onw exists.

Definition at line 400 of file ZxQuery.cpp.

Referenced by Zbl::ZxQuery::setFocusText().

◆ getUrl()

QString Zbl::ZxQuery::ResourceUrlFile::getUrl ( )

Definition at line 387 of file ZxQuery.h.

Referenced by Zbl::ZxQuery::getFocusUrl(), and Zbl::ZxQuery::ZxQuery().

◆ isOK()

bool Zbl::ZxQuery::ResourceUrlFile::isOK ( )

Definition at line 393 of file ZxQuery.h.

◆ isResourceScheme()

static bool Zbl::ZxQuery::ResourceUrlFile::isResourceScheme ( const QString &  scheme)

Definition at line 389 of file ZxQuery.h.

Referenced by Zbl::ZxQuery::setFocusUrl(), and Zbl::ZxQuery::setQueryUrl().

◆ open()

bool Zbl::ZxQuery::ResourceUrlFile::open ( )

◆ resetFile()

void Zbl::ZxQuery::ResourceUrlFile::resetFile ( )

Closes QFile if one exists, otherwise creates a new QFile.

Definition at line 386 of file ZxQuery.cpp.

◆ setUrl()

void Zbl::ZxQuery::ResourceUrlFile::setUrl ( const QString &  url)

Member Data Documentation

◆ m_f

QFile* Zbl::ZxQuery::ResourceUrlFile::m_f

◆ m_url

QUrl Zbl::ZxQuery::ResourceUrlFile::m_url

Definition at line 425 of file ZxQuery.h.

Referenced by Zbl::ZxQuery::setFocusUrl(), and Zbl::ZxQuery::setQueryUrl().

The documentation for this class was generated from the following files: