Mercurial > projects > qtd
comparison generator/generator.h @ 167:ae06da58ec25
fixed hacky conversion of arguments when emmitting a signal
author | eldar |
---|---|
date | Sat, 20 Jun 2009 19:14:29 +0000 |
parents | e78566595089 |
children | 073b9153ed8a |
comparison
equal
deleted
inserted
replaced
166:52da31f967f0 | 167:ae06da58ec25 |
---|---|
158 inline QString signalExternName(const AbstractMetaClass *cls, const AbstractMetaFunction* signal) | 158 inline QString signalExternName(const AbstractMetaClass *cls, const AbstractMetaFunction* signal) |
159 { | 159 { |
160 return "qtd_" + cls->name() + "_" + signal->name(); | 160 return "qtd_" + cls->name() + "_" + signal->name(); |
161 } | 161 } |
162 | 162 |
163 inline QString fromCppContainerName(const AbstractMetaClass *cls, const AbstractMetaType *type) | |
164 { | |
165 QString package = cls->package().replace(".", "_"); | |
166 const TypeEntry *te = type->instantiations().first()->typeEntry(); | |
167 | |
168 return "qtd_" + package + "_" + te->targetLangName() + "_from_" + type->typeEntry()->qualifiedCppName(); | |
169 } | |
170 | |
163 bool notWrappedYet(const AbstractMetaFunction *java_function); | 171 bool notWrappedYet(const AbstractMetaFunction *java_function); |
164 bool isLinearContainer(const ContainerTypeEntry *type); | 172 bool isLinearContainer(const ContainerTypeEntry *type); |
165 AbstractMetaFunctionList signalFunctions(const AbstractMetaClass *cls); | 173 AbstractMetaFunctionList signalFunctions(const AbstractMetaClass *cls); |
166 | 174 |
167 #endif // GENERATOR_H | 175 #endif // GENERATOR_H |