diff generator/containergenerator.cpp @ 270:49bfc86ff583

true emit of Qt signals.
author eldar
date Thu, 24 Sep 2009 12:59:48 +0000
parents 34a37904ff77
children 08c1ca7975ab
line wrap: on
line diff
--- a/generator/containergenerator.cpp	Sun Sep 20 10:23:48 2009 +0000
+++ b/generator/containergenerator.cpp	Thu Sep 24 12:59:48 2009 +0000
@@ -275,10 +275,12 @@
         s << "}" << endl;
     }*/
 
+    s << "// signal conversion functions" << endl;
+
     foreach(AbstractMetaType* arg_type, signalEntries[cls->package()]) {
         const TypeEntry *te = arg_type->instantiations().first()->typeEntry();
         s << "// " << te->targetLangName() << endl
-          << "extern \"C\" DLL_PUBLIC void " << fromCppContainerName(cls, arg_type) << "(void *cpp_ptr, DArray* __d_container) {" << endl;
+          << "extern \"C\" DLL_PUBLIC void " << cppContainerConversionName(cls, arg_type, FromCpp) << "(void *cpp_ptr, DArray* __d_container) {" << endl;
 
         m_cpp_impl_generator->writeTypeInfo(s, arg_type, NoOption);
         s << "container = (*reinterpret_cast< ";
@@ -407,7 +409,7 @@
         const TypeEntry *te = arg_type->instantiations().first()->typeEntry();
         if(!te->isPrimitive() && !te->isString())
             writeImportString(s, te);
-        s << "extern (C) void " << fromCppContainerName(cls, arg_type) << "(void *cpp_ptr, " << te->targetLangName() << "[]* __d_container);" << endl;
+        s << "extern (C) void " << cppContainerConversionName(cls, arg_type, FromCpp) << "(void *cpp_ptr, " << te->targetLangName() << "[]* __d_container);" << endl;
     }
 }