/* KLayout Layout Viewer Copyright (C) 2006-2017 Matthias Koefferlein This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /** * @file gsiDeclQMetaMethod.cc * * DO NOT EDIT THIS FILE. * This file has been created automatically */ #include #include #include "gsiQt.h" #include "gsiQtCommon.h" #include "gsiDeclQtTypeTraits.h" #include // ----------------------------------------------------------------------- // class QMetaMethod // Constructor QMetaMethod::QMetaMethod() static void _init_ctor_QMetaMethod_0 (qt_gsi::GenericStaticMethod *decl) { decl->set_return_new (); } static void _call_ctor_QMetaMethod_0 (const qt_gsi::GenericStaticMethod * /*decl*/, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write (new QMetaMethod ()); } // QMetaMethod::Access QMetaMethod::access() static void _init_f_access_c0 (qt_gsi::GenericMethod *decl) { decl->set_return::target_type > (); } static void _call_f_access_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write::target_type > ((qt_gsi::Converter::target_type)qt_gsi::CppToQtAdaptor(((QMetaMethod *)cls)->access ())); } // int QMetaMethod::attributes() static void _init_f_attributes_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_attributes_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((int)((QMetaMethod *)cls)->attributes ()); } // const QMetaObject *QMetaMethod::enclosingMetaObject() static void _init_f_enclosingMetaObject_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_enclosingMetaObject_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((const QMetaObject *)((QMetaMethod *)cls)->enclosingMetaObject ()); } // void QMetaMethod::getParameterTypes(int *types) static void _init_f_getParameterTypes_c953 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("types"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_getParameterTypes_c953 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; int *arg1 = args.read (heap); __SUPPRESS_UNUSED_WARNING(ret); ((QMetaMethod *)cls)->getParameterTypes (arg1); } // bool QMetaMethod::isValid() static void _init_f_isValid_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_isValid_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((bool)((QMetaMethod *)cls)->isValid ()); } // int QMetaMethod::methodIndex() static void _init_f_methodIndex_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_methodIndex_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((int)((QMetaMethod *)cls)->methodIndex ()); } // QByteArray QMetaMethod::methodSignature() static void _init_f_methodSignature_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_methodSignature_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((QByteArray)((QMetaMethod *)cls)->methodSignature ()); } // QMetaMethod::MethodType QMetaMethod::methodType() static void _init_f_methodType_c0 (qt_gsi::GenericMethod *decl) { decl->set_return::target_type > (); } static void _call_f_methodType_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write::target_type > ((qt_gsi::Converter::target_type)qt_gsi::CppToQtAdaptor(((QMetaMethod *)cls)->methodType ())); } // QByteArray QMetaMethod::name() static void _init_f_name_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_name_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((QByteArray)((QMetaMethod *)cls)->name ()); } // int QMetaMethod::parameterCount() static void _init_f_parameterCount_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_parameterCount_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((int)((QMetaMethod *)cls)->parameterCount ()); } // QList QMetaMethod::parameterNames() static void _init_f_parameterNames_c0 (qt_gsi::GenericMethod *decl) { decl->set_return > (); } static void _call_f_parameterNames_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write > ((QList)((QMetaMethod *)cls)->parameterNames ()); } // int QMetaMethod::parameterType(int index) static void _init_f_parameterType_c767 (qt_gsi::GenericMethod *decl) { static gsi::ArgSpecBase argspec_0 ("index"); decl->add_arg (argspec_0); decl->set_return (); } static void _call_f_parameterType_c767 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); tl::Heap heap; int arg1 = args.read (heap); ret.write ((int)((QMetaMethod *)cls)->parameterType (arg1)); } // QList QMetaMethod::parameterTypes() static void _init_f_parameterTypes_c0 (qt_gsi::GenericMethod *decl) { decl->set_return > (); } static void _call_f_parameterTypes_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write > ((QList)((QMetaMethod *)cls)->parameterTypes ()); } // int QMetaMethod::returnType() static void _init_f_returnType_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_returnType_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((int)((QMetaMethod *)cls)->returnType ()); } // int QMetaMethod::revision() static void _init_f_revision_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_revision_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((int)((QMetaMethod *)cls)->revision ()); } // const char *QMetaMethod::tag() static void _init_f_tag_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_tag_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((const char *)((QMetaMethod *)cls)->tag ()); } // const char *QMetaMethod::typeName() static void _init_f_typeName_c0 (qt_gsi::GenericMethod *decl) { decl->set_return (); } static void _call_f_typeName_c0 (const qt_gsi::GenericMethod * /*decl*/, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) { __SUPPRESS_UNUSED_WARNING(args); ret.write ((const char *)((QMetaMethod *)cls)->typeName ()); } // bool ::operator==(const QMetaMethod &m1, const QMetaMethod &m2) static bool op_QMetaMethod_operator_eq__eq__4680(const QMetaMethod *_self, const QMetaMethod &m2) { return ::operator==(*_self, m2); } // bool ::operator!=(const QMetaMethod &m1, const QMetaMethod &m2) static bool op_QMetaMethod_operator_excl__eq__4680(const QMetaMethod *_self, const QMetaMethod &m2) { return ::operator!=(*_self, m2); } namespace gsi { static gsi::Methods methods_QMetaMethod () { gsi::Methods methods; methods += new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QMetaMethod::QMetaMethod()\nThis method creates an object of class QMetaMethod.", &_init_ctor_QMetaMethod_0, &_call_ctor_QMetaMethod_0); methods += new qt_gsi::GenericMethod ("access", "@brief Method QMetaMethod::Access QMetaMethod::access()\n", true, &_init_f_access_c0, &_call_f_access_c0); methods += new qt_gsi::GenericMethod ("attributes", "@brief Method int QMetaMethod::attributes()\n", true, &_init_f_attributes_c0, &_call_f_attributes_c0); methods += new qt_gsi::GenericMethod ("enclosingMetaObject", "@brief Method const QMetaObject *QMetaMethod::enclosingMetaObject()\n", true, &_init_f_enclosingMetaObject_c0, &_call_f_enclosingMetaObject_c0); methods += new qt_gsi::GenericMethod ("getParameterTypes", "@brief Method void QMetaMethod::getParameterTypes(int *types)\n", true, &_init_f_getParameterTypes_c953, &_call_f_getParameterTypes_c953); methods += new qt_gsi::GenericMethod ("isValid?", "@brief Method bool QMetaMethod::isValid()\n", true, &_init_f_isValid_c0, &_call_f_isValid_c0); methods += new qt_gsi::GenericMethod ("methodIndex", "@brief Method int QMetaMethod::methodIndex()\n", true, &_init_f_methodIndex_c0, &_call_f_methodIndex_c0); methods += new qt_gsi::GenericMethod ("methodSignature", "@brief Method QByteArray QMetaMethod::methodSignature()\n", true, &_init_f_methodSignature_c0, &_call_f_methodSignature_c0); methods += new qt_gsi::GenericMethod ("methodType", "@brief Method QMetaMethod::MethodType QMetaMethod::methodType()\n", true, &_init_f_methodType_c0, &_call_f_methodType_c0); methods += new qt_gsi::GenericMethod ("name", "@brief Method QByteArray QMetaMethod::name()\n", true, &_init_f_name_c0, &_call_f_name_c0); methods += new qt_gsi::GenericMethod ("parameterCount", "@brief Method int QMetaMethod::parameterCount()\n", true, &_init_f_parameterCount_c0, &_call_f_parameterCount_c0); methods += new qt_gsi::GenericMethod ("parameterNames", "@brief Method QList QMetaMethod::parameterNames()\n", true, &_init_f_parameterNames_c0, &_call_f_parameterNames_c0); methods += new qt_gsi::GenericMethod ("parameterType", "@brief Method int QMetaMethod::parameterType(int index)\n", true, &_init_f_parameterType_c767, &_call_f_parameterType_c767); methods += new qt_gsi::GenericMethod ("parameterTypes", "@brief Method QList QMetaMethod::parameterTypes()\n", true, &_init_f_parameterTypes_c0, &_call_f_parameterTypes_c0); methods += new qt_gsi::GenericMethod ("returnType", "@brief Method int QMetaMethod::returnType()\n", true, &_init_f_returnType_c0, &_call_f_returnType_c0); methods += new qt_gsi::GenericMethod ("revision", "@brief Method int QMetaMethod::revision()\n", true, &_init_f_revision_c0, &_call_f_revision_c0); methods += new qt_gsi::GenericMethod ("tag", "@brief Method const char *QMetaMethod::tag()\n", true, &_init_f_tag_c0, &_call_f_tag_c0); methods += new qt_gsi::GenericMethod ("typeName", "@brief Method const char *QMetaMethod::typeName()\n", true, &_init_f_typeName_c0, &_call_f_typeName_c0); methods += gsi::method_ext("==", &::op_QMetaMethod_operator_eq__eq__4680, gsi::arg ("m2"), "@brief Operator bool ::operator==(const QMetaMethod &m1, const QMetaMethod &m2)\nThis is the mapping of the global operator to the instance method."); methods += gsi::method_ext("!=", &::op_QMetaMethod_operator_excl__eq__4680, gsi::arg ("m2"), "@brief Operator bool ::operator!=(const QMetaMethod &m1, const QMetaMethod &m2)\nThis is the mapping of the global operator to the instance method."); return methods; } gsi::Class decl_QMetaMethod ("QMetaMethod", methods_QMetaMethod (), "@qt\n@brief Binding of QMetaMethod"); GSIQT_PUBLIC gsi::Class &qtdecl_QMetaMethod () { return decl_QMetaMethod; } } // Implementation of the enum wrapper class for QMetaMethod::Access namespace qt_gsi { static gsi::Enum decl_QMetaMethod_Access_Enum ("QMetaMethod_Access", gsi::enum_const ("Private", QMetaMethod::Private, "@brief Enum constant QMetaMethod::Private") + gsi::enum_const ("Protected", QMetaMethod::Protected, "@brief Enum constant QMetaMethod::Protected") + gsi::enum_const ("Public", QMetaMethod::Public, "@brief Enum constant QMetaMethod::Public"), "@qt\n@brief This class represents the QMetaMethod::Access enum"); static gsi::QFlagsClass decl_QMetaMethod_Access_Enums ("QMetaMethod_QFlags_Access", "@qt\n@brief This class represents the QFlags flag set"); // Inject the declarations into the parent static gsi::ClassExt inject_QMetaMethod_Access_Enum_in_parent (decl_QMetaMethod_Access_Enum.defs ()); static gsi::ClassExt decl_QMetaMethod_Access_Enum_as_child (decl_QMetaMethod_Access_Enum, "Access"); static gsi::ClassExt decl_QMetaMethod_Access_Enums_as_child (decl_QMetaMethod_Access_Enums, "QFlags_Access"); } // Implementation of the enum wrapper class for QMetaMethod::MethodType namespace qt_gsi { static gsi::Enum decl_QMetaMethod_MethodType_Enum ("QMetaMethod_MethodType", gsi::enum_const ("Method", QMetaMethod::Method, "@brief Enum constant QMetaMethod::Method") + gsi::enum_const ("Signal", QMetaMethod::Signal, "@brief Enum constant QMetaMethod::Signal") + gsi::enum_const ("Slot", QMetaMethod::Slot, "@brief Enum constant QMetaMethod::Slot") + gsi::enum_const ("Constructor", QMetaMethod::Constructor, "@brief Enum constant QMetaMethod::Constructor"), "@qt\n@brief This class represents the QMetaMethod::MethodType enum"); static gsi::QFlagsClass decl_QMetaMethod_MethodType_Enums ("QMetaMethod_QFlags_MethodType", "@qt\n@brief This class represents the QFlags flag set"); // Inject the declarations into the parent static gsi::ClassExt inject_QMetaMethod_MethodType_Enum_in_parent (decl_QMetaMethod_MethodType_Enum.defs ()); static gsi::ClassExt decl_QMetaMethod_MethodType_Enum_as_child (decl_QMetaMethod_MethodType_Enum, "MethodType"); static gsi::ClassExt decl_QMetaMethod_MethodType_Enums_as_child (decl_QMetaMethod_MethodType_Enums, "QFlags_MethodType"); }