Nuria Framework - Core
Core module of the NuriaProject Framework
 All Classes Functions Typedefs Enumerations Enumerator Groups
qtmetaobjectwrapper.hpp
1 /* Copyright (c) 2014, The Nuria Project
2  * This software is provided 'as-is', without any express or implied
3  * warranty. In no event will the authors be held liable for any damages
4  * arising from the use of this software.
5  * Permission is granted to anyone to use this software for any purpose,
6  * including commercial applications, and to alter it and redistribute it
7  * freely, subject to the following restrictions:
8  * 1. The origin of this software must not be misrepresented; you must not
9  * claim that you wrote the original software. If you use this software
10  * in a product, an acknowledgment in the product documentation would be
11  * appreciated but is not required.
12  * 2. Altered source versions must be plainly marked as such, and must not be
13  * misrepresented as being the original software.
14  * 3. This notice may not be removed or altered from any source
15  * distribution.
16  */
17 
18 #ifndef NURIA_QTMETAOBJECTWRAPPER_HPP
19 #define NURIA_QTMETAOBJECTWRAPPER_HPP
20 
21 #include "runtimemetaobject.hpp"
22 
23 namespace Nuria {
24 
25 class QtMetaObjectWrapperPrivate;
26 
53 class NURIA_CORE_EXPORT QtMetaObjectWrapper : public RuntimeMetaObject {
54 public:
55 
61  QtMetaObjectWrapper (const QMetaObject *metaObject);
62 
64  ~QtMetaObjectWrapper () override;
65 
66 private:
67 
68  void installDeleter ();
69  void populateAnnotations (const QMetaObject *meta);
70  void populateMethods (const QMetaObject *meta);
71  void populateEnums (const QMetaObject *meta);
72  void populateFields (const QMetaObject *meta);
73 
74 };
75 
76 }
77 
78 #endif // NURIA_QTMETAOBJECTWRAPPER_HPP
QtMetaObjectWrapper lets you use a QMetaObject as Nuria::MetaObject.
Definition: qtmetaobjectwrapper.hpp:53
RuntimeMetaObject lets you easily define types at run-time.
Definition: runtimemetaobject.hpp:57