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
ZblSprockOb.h
Go to the documentation of this file.
1 /*
2  * Zuble - A run-time system for QML/Javascript applications
3  * Copyright (C) 2014 Bob Dinitto
4  *
5  * Filename: ZblSprockOb.h
6  * Created on: 12/10/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 ZBLSPROCKOB_H
26 #define ZBLSPROCKOB_H
27 
28 #include "ZblPlugin.h"
29 #include <QString>
30 
31 namespace Zbl
32 {
33 
43 {
44 public:
46  QString uri,
47 
48  int versionMajor,
49 
50  int versionMinor,
51 
52  QString qmlName,
53 
55  )
56  {
57 
58  m_uri = uri;
59 
61 
63 
65 
67  }
68 
69 
70  const QString& uri() const {return m_uri;}
71 
72  int versionMajor() const {return m_versionMajor;}
73 
74  int versionMinor() const {return m_versionMinor;}
75 
76  const QString& qmlName() const {return m_qmlName;}
77 
78 
80 
81 protected:
82 
83  QString m_uri;
84 
86 
88 
89  QString m_qmlName;
90 
92 };
93 
94 } // Zbl
95 
96 #endif // ZBLSPROCKOB_H
int versionMinor() const
Definition: ZblSprockOb.h:74
ZblSprockOb(QString uri, int versionMajor, int versionMinor, QString qmlName, sprocketObjectConstructor newObjectFunction)
Definition: ZblSprockOb.h:45
sprocketObjectConstructor m_newObjectFunction
Definition: ZblSprockOb.h:91
Definition: ZAndGate.cpp:6
const QString & uri() const
Definition: ZblSprockOb.h:70
QString m_qmlName
Definition: ZblSprockOb.h:89
int versionMajor() const
Definition: ZblSprockOb.h:72
const QString & qmlName() const
Definition: ZblSprockOb.h:76
QObject *(* sprocketObjectConstructor)(QObject *parent)
A pointer to a function that creates a Zuble Sprocket object. Sprocket object constructor functions s...
Definition: ZblPlugin.h:45
sprocketObjectConstructor newObjectFunction() const
Definition: ZblSprockOb.h:79
This class acts as an object construction wrapper for objects defined in Zuble Sprocket plugins...
Definition: ZblSprockOb.h:42