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
|
Represents a binary resource file created by Qt's resource complier. More...
#include <ZblResource.h>
Public Member Functions | |
ZblResource (const char *uri, int versionMajor, int versionMinor, const char *fileName) | |
virtual | ~ZblResource () |
bool | validate () |
const QString & | uri () const |
returns the Resource file's uri More... | |
int | versionMajor () const |
returns the Resource file's major version number More... | |
int | versionMinor () const |
returns the Resource file's minor version number More... | |
const QString & | fileName () const |
returns the Resource file's file name More... | |
bool | isLoaded () const |
determines if the resource has already been loaded More... | |
bool | load () |
Protected Attributes | |
QString | m_uri |
Resource uri. More... | |
int | m_versionMajor |
Resource major version number. More... | |
int | m_versionMinor |
Resource minor version number. More... | |
QString | m_fileName |
Resource file name. More... | |
bool | m_loaded |
true if the resource has been loaded, false otherwise More... | |
Represents a binary resource file created by Qt's resource complier.
Binary resource files can be mapped, which makes them known to Zuble, and then subsequently registered, which makes them known to QML documents.
Binary resources must be located on the Qt library path. The resource uri will form the root of the resource path in the resource tree.
Definition at line 45 of file ZblResource.h.
|
explicit |
Definition at line 35 of file ZblResource.cpp.
|
virtual |
Definition at line 50 of file ZblResource.cpp.
|
inline |
returns the Resource file's file name
Definition at line 82 of file ZblResource.h.
Referenced by Zbl::ZblCog::registerResource().
|
inline |
determines if the resource has already been loaded
Definition at line 89 of file ZblResource.h.
bool Zbl::ZblResource::load | ( | ) |
Definition at line 73 of file ZblResource.cpp.
Referenced by isLoaded(), and Zbl::ZblCog::registerResource().
|
inline |
returns the Resource file's uri
Definition at line 64 of file ZblResource.h.
bool Zbl::ZblResource::validate | ( | ) |
Definition at line 55 of file ZblResource.cpp.
Referenced by Zbl::ZblCog::mapResource(), and Zbl::ZblCog::registerResource().
|
inline |
returns the Resource file's major version number
Definition at line 70 of file ZblResource.h.
|
inline |
returns the Resource file's minor version number
Definition at line 76 of file ZblResource.h.
|
protected |
Resource file name.
Definition at line 118 of file ZblResource.h.
Referenced by fileName(), load(), and validate().
|
protected |
true if the resource has been loaded, false otherwise
Definition at line 123 of file ZblResource.h.
Referenced by isLoaded(), and load().
|
protected |
|
protected |
Resource major version number.
Definition at line 108 of file ZblResource.h.
Referenced by versionMajor().
|
protected |
Resource minor version number.
Definition at line 113 of file ZblResource.h.
Referenced by versionMinor().
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.