00001 // Copyright (C) 2009-2011 by Konrad Rosenbaum <konrad@silmor.de> 00002 // protected under the GNU GPL version 3 or at your option any newer. 00003 // See COPYING.GPL file that comes with this distribution. 00004 // 00005 00006 #ifndef WOC_QTOUT_CTRANS_H 00007 #define WOC_QTOUT_CTRANS_H 00008 00009 #include "qtout.h" 00010 00011 struct QtCTrans; 00012 class WocQtOut; 00013 class WocTransaction; 00014 class WocClass; 00015 00018 class WocQtClientTransaction:public WocQtTransaction 00019 { 00020 public: 00022 explicit WocQtClientTransaction(WocQtOut*); 00024 ~WocQtClientTransaction(); 00026 virtual void finalize(); 00028 virtual void newTransaction(const WocTransaction&); 00029 private: 00031 QString trnInput(const WocTransaction&); 00033 QString trnOutput(const WocTransaction&); 00035 void trnList(); 00037 void genInclude(QtCTrans&); 00039 void genProperties(QtCTrans&); 00041 void genTors(QtCTrans&); 00043 void genQuery(QtCTrans&); 00045 void genGetters(QtCTrans&); 00047 void genScripting(QtCTrans&); 00049 void initList(QtCTrans&); 00050 00052 struct s_transdoc{ 00054 QStringList tdoc; 00056 QMap<QString,QString>privdoc; 00057 }; 00059 QMap<QString,s_transdoc>m_transdoc; 00060 }; 00061 00062 #endif