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
zbldatabase_plugin.cpp
Go to the documentation of this file.
1 #include "zbldatabase_plugin.h"
2 #include "ZblDatabase.h"
3 #include "ZblThreadErr.h"
4 #include "ZblCog.h"
5 
6 #include <qqml.h>
7 
8 namespace Zbl
9 {
10 
11 
12 
13 void ZbldatabasePlugin::registerTypes(const char *uri)
14 {
15  qDebug("ZbldatabasePlugin::registerTypes, uri: %s", uri);
16 
17  ZblThreadErr::zInit(); // TBD: ??
18 
19  ZblCog& cog(zCog);
20 
21  if(!cog.isMappedResource(uri, -1, -1))
22  cog.mapResource(uri, 1, 0, "zbldatabase-parts.rcc");
23 
24  cog.registerSprocket(uri, 1, 0);
25 
27 }
28 
29 } // Zbl
#define zCog
Definition: ZblCog.h:34
Definition: ZAndGate.cpp:6
static void zInit()
This method must be called once at the start of each thread that throws or catches ZblException objec...
static void registerType()
Registers ZblDatabase as a QML type.
Definition: ZblDatabase.cpp:27