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
Zblcore.h
Go to the documentation of this file.
1 /*
2 * Zuble - A run-time system for QML/Javascript applications
3 * Copyright (C) 2013, 2014 Bob Dinitto
4 *
5 * Filename: Zblcore.h
6 * Created on: 11/9/2014
7 * Author: Bob Dinitto
8 *
9 * Zuble is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 *
23 */
24 
25 #ifndef ZBLCORE_H
26 #define ZBLCORE_H
27 
28 #include "zblcore_global.h"
29 #include "zglobal.h"
30 #include <QQmlExtensionPlugin>
31 #include "ZResourceEdifyIF.h"
32 #include <QList>
33 #include "ZblLogOutput.h"
34 
35 #if 0
36 
51 #endif
52 
53 
54 namespace Zbl
55 {
56 
57 class ZApplication;
58 //class ZblLogOutput;
59 
79  public QQmlExtensionPlugin, public ZResourceEdifyIF
80 {
81  Q_OBJECT
82 
83  Q_PLUGIN_METADATA(IID "org.zuble.qml.zblcore"
84  FILE "zblcore-metadata.json")
85 
86  Q_INTERFACES(Zbl::ZResourceEdifyIF)
87 
88 
89 public:
90 
91  Zblcore(QObject* parent = nullptr);
92  virtual ~Zblcore();
93 
101  virtual void initializeEngine(QQmlEngine * engine, const char * uri);
102 
110  virtual void registerTypes(const char *uri);
111 
112 
123  virtual bool mapResource(
124  const char * uri,
125  int versionMajor,
126  int versionMinor,
127  const char * fileName);
128 
143  virtual bool registerResource(
144  const char * uri, int versionMajor, int versionMinor);
145 
155  virtual bool mapConfigResources(const char* configFilePath);
156 
157 
172  virtual bool mapPluginResources(const char* fileName, bool qmlRegister);
173 
174 
184  virtual bool mapConfigSettings(const char* fileName);
185 
191  static ZApplication& zApplication();
192 
198  static bool isInitialized();
199 
200 protected:
201 
202  void loadLogModules();
203 
205 
207 };
208 
209 
210 } // Zbl
211 
212 #endif // ZBLCORE_H
#define ZBLCORESHARED_EXPORT
#define ZBL_DECLARE_LOGGED_OBJECT
Definition: zglobal.h:94
static ZApplication * m_zApp
Definition: Zblcore.h:204
The core Zuble QML Extension plugin class.
Definition: Zblcore.h:78
Definition: ZAndGate.cpp:6
static int versionMinor
Definition: main.cpp:60
static int versionMajor
Definition: main.cpp:59
Zuble&#39;s Singleton Application Object.
Definition: ZApplication.h:54
This interface allows Qt applications to access Zuble&#39;s platform-independent binary resource manageme...