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_STRANS_H 00007 #define WOC_QTOUT_STRANS_H 00008 00009 #include "qtout.h" 00010 00011 class QtSTrans; 00012 00014 class WocQtServerTransaction:public WocQtTransaction 00015 { 00016 public: 00018 explicit WocQtServerTransaction(WocQtOut*); 00019 ~WocQtServerTransaction(); 00021 virtual void finalize(); 00023 virtual void newTransaction(const WocTransaction&); 00024 private: 00026 QString trnInput(const WocTransaction&); 00028 QString trnOutput(const WocTransaction&); 00030 void trnList(); 00032 void genInclude(QtSTrans&); 00034 void genProperties(QtSTrans&); 00036 void genTors(QtSTrans&); 00038 void genQuery(QtSTrans&); 00040 void genGetters(QtSTrans&); 00042 void genSetters(QtSTrans&); 00044 void genScripting(QtSTrans&); 00045 }; 00046 00047 #endif