Mercurial > projects > qtd
comparison generator/containergenerator.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 |
comparison
equal
deleted
inserted
replaced
166:52da31f967f0 | 167:ae06da58ec25 |
---|---|
59 HDirectory | 59 HDirectory |
60 }; | 60 }; |
61 | 61 |
62 typedef void (ContainerGenerator::*WriteOut)(QTextStream &s, AbstractMetaClass *cls); | 62 typedef void (ContainerGenerator::*WriteOut)(QTextStream &s, AbstractMetaClass *cls); |
63 | 63 |
64 ContainerGenerator(); | 64 ContainerGenerator(CppImplGenerator *cpp_impl_generator); |
65 | 65 |
66 virtual void generate(); | 66 virtual void generate(); |
67 virtual void write(QTextStream &s, const AbstractMetaClass *java_class); | 67 virtual void write(QTextStream &s, const AbstractMetaClass *java_class); |
68 void writeFile(const QString& fileName, OutputDirectoryType dirType, WriteOut writeOut); | 68 void writeFile(const QString& fileName, OutputDirectoryType dirType, WriteOut writeOut); |
69 | 69 |
70 // base functions for operating with arrays | 70 // base functions for operating with arrays |
71 void writeHeaderContent(QTextStream &s, AbstractMetaClass *cls); | 71 void writeHeaderContent(QTextStream &s, AbstractMetaClass *cls); |
72 void writeCppContent(QTextStream &s, AbstractMetaClass *cls); | 72 void writeCppContent(QTextStream &s, AbstractMetaClass *cls); |
73 void writeDContent(QTextStream &s, AbstractMetaClass *cls); | 73 void writeDContent(QTextStream &s, AbstractMetaClass *cls); |
74 void writeDContent2(QTextStream &s, AbstractMetaClass *cls); | |
74 | 75 |
75 void buildTypeList(); | 76 void buildTypeList(); |
76 | 77 |
77 void processFunction(const AbstractMetaFunction *d_function); | 78 void processFunction(const AbstractMetaFunction *d_function); |
78 void processType(AbstractMetaType *d_type); | 79 void processType(AbstractMetaType *d_type); |
98 QSet<const TypeEntry*> containerTypes; | 99 QSet<const TypeEntry*> containerTypes; |
99 // QSet< QPair<const TypeEntry*, AbstractMetaClass*> > containerTypes; | 100 // QSet< QPair<const TypeEntry*, AbstractMetaClass*> > containerTypes; |
100 AbstractMetaClass* m_class; | 101 AbstractMetaClass* m_class; |
101 | 102 |
102 QString all_name, ass_name, get_name; | 103 QString all_name, ass_name, get_name; |
104 // QMap<QString, QMap<const TypeEntry*, AbstractMetaType*> > signalEntries; | |
105 QMap<QString, QSet<AbstractMetaType*> > signalEntries; | |
106 | |
107 CppImplGenerator *m_cpp_impl_generator; | |
103 }; | 108 }; |
104 | 109 |
105 #endif // CONTAINERGENERATOR_H | 110 #endif // CONTAINERGENERATOR_H |