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
|
The core Zuble QML Extension plugin class. More...
#include <Zblcore.h>
Protected Member Functions | |
void | loadLogModules () |
Static Protected Attributes | |
static ZApplication * | m_zApp = nullptr |
Private Member Functions | |
virtual void | initializeEngine (QQmlEngine *engine, const char *uri) |
This override of QQmlExtensionPlugin is currently unused and may be deprecated. More... | |
virtual void | registerTypes (const char *uri) |
Override of QQmlExtensionPlugin is called by the QML engine to register the Zuble core plugin's QML types. More... | |
virtual bool | mapResource (const char *uri, int versionMajor, int versionMinor, const char *fileName) |
Binds a resource uri to a resource file. See ZblCog for more information. More... | |
virtual bool | registerResource (const char *uri, int versionMajor, int versionMinor) |
Registers a binary resource with QML. This makes a resource available to QML documents. More... | |
virtual bool | mapConfigResources (const char *configFilePath) |
Read binary resource file information from the specified Zuble application configuration file (zblconfig.xml). More... | |
virtual bool | mapPluginResources (const char *fileName, bool qmlRegister) |
Read binary resource file information from the specified Zuble sprocket plugin. More... | |
virtual bool | mapConfigSettings (const char *fileName) |
Load QML settings bundles from the specified Zuble application configuration file (zblconfig.xml) More... | |
Static Private Member Functions | |
static ZApplication & | zApplication () |
Return a reference to the encapsulated singleton ZApplication object. More... | |
static bool | isInitialized () |
true if the ZApplication object has completed initialization, false otherwise More... | |
Additional Inherited Members | |
![]() | |
virtual | ~ZResourceEdifyIF () |
The core Zuble QML Extension plugin class.
This singleton object is instanciated by the QML engine when the Zuble plugin is first loaded. It immediately constructs and initializes the ZblLogManager object, constructs the ZApplication singleton object, and constructs the ZblCog singleton object.
Zblcore implements the ZResourceEdifyIF interface to allow C++ programs to load resources critical to the execution of Zuble applications. This allows us to resolve binary resource interdependencies directly in C++ and avoid the loading semantics of the QML engine "import" mechanism which can sometimes result in chicken/egg resource loading problems when multiple resource files are interdependent. Execution order of the QML import statements is irrelevant if the resources being imported have already been loaded prior to the execution of the QML code that uses them.
|
privatevirtual |
This override of QQmlExtensionPlugin is currently unused and may be deprecated.
engine | |
uri |
Definition at line 188 of file Zblcore.cpp.
|
staticprivate |
true if the ZApplication object has completed initialization, false otherwise
Definition at line 140 of file Zblcore.cpp.
Referenced by Zbl::ZSettings::insertBundle().
|
protected |
Definition at line 268 of file Zblcore.cpp.
|
privatevirtual |
Read binary resource file information from the specified Zuble application configuration file (zblconfig.xml).
configFilePath |
Implements Zbl::ZResourceEdifyIF.
Definition at line 171 of file Zblcore.cpp.
|
privatevirtual |
Load QML settings bundles from the specified Zuble application configuration file (zblconfig.xml)
fileName |
Implements Zbl::ZResourceEdifyIF.
Definition at line 251 of file Zblcore.cpp.
|
privatevirtual |
Read binary resource file information from the specified Zuble sprocket plugin.
fileName | Path to the plugin file |
qmlRegister | true to register the resources with QML immediately, false otherwise (caller must register resources later) |
Implements Zbl::ZResourceEdifyIF.
Definition at line 181 of file Zblcore.cpp.
|
privatevirtual |
Binds a resource uri to a resource file. See ZblCog for more information.
uri | |
versionMajor | |
versionMinor | |
fileName |
Implements Zbl::ZResourceEdifyIF.
Definition at line 157 of file Zblcore.cpp.
|
privatevirtual |
Registers a binary resource with QML. This makes a resource available to QML documents.
Call mapConfigResources or mapPluginResources to bind a resource file name to the resource uri before calling this method.
uri | |
versionMajor | |
versionMinor |
Implements Zbl::ZResourceEdifyIF.
Definition at line 145 of file Zblcore.cpp.
|
privatevirtual |
Override of QQmlExtensionPlugin is called by the QML engine to register the Zuble core plugin's QML types.
uri | The uri of the plugin as specified in the import statment that loaded it. |
Definition at line 195 of file Zblcore.cpp.
|
staticprivate |
Return a reference to the encapsulated singleton ZApplication object.
Definition at line 258 of file Zblcore.cpp.
|
staticprotected |
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.