PACK WOC  $VERSION$
phptrans.h
Go to the documentation of this file.
1 // Copyright (C) 2009-2011 by Konrad Rosenbaum <konrad@silmor.de>
2 // protected under the GNU GPL version 3 or at your option any newer.
3 // See COPYING.GPL file that comes with this distribution.
4 //
5 
6 #ifndef WOC_PHPOUT_TRANS_H
7 #define WOC_PHPOUT_TRANS_H
8 
9 #include "phpout.h"
10 
11 
13 class WocPHPTransaction:public QObject
14 {
15  Q_OBJECT
16  public:
20  virtual void finalize();
22  virtual void newTransaction(const WocTransaction&);
23  private:
24 
26  virtual void transInfo();
28  virtual void transInfo2();
29 
31  virtual QString trnConstruct(const WocTransaction&);
33  virtual QString trnHandlers(const WocTransaction&)=0;
35  virtual QString trnGetSet(const WocTransaction&);
37  virtual QString trnPrivileges(const WocTransaction&);
38  protected:
40  signals:
41  void errorFound();
42 };
43 
44 #endif
virtual void transInfo2()
helper: create info functions (mainly version info) at the end
Definition: phptrans.cpp:67
virtual void newTransaction(const WocTransaction &)
creates a transaction
Definition: phptrans.cpp:102
virtual void transInfo()
helper: create info functions (mainly version info) at the start
Definition: phptrans.cpp:36
Abstract base class for generating output for PHP.
Definition: phpout.h:23
virtual QString trnGetSet(const WocTransaction &)
helper: create getters and setters
Definition: phptrans.cpp:187
generates output for a PHP server side
Definition: phptrans.h:13
virtual void finalize()
writes any last words after parsing finished
Definition: phptrans.cpp:90
virtual QString trnPrivileges(const WocTransaction &)
helper: create privilege check code for web interface
Definition: phptrans.cpp:243
internal representation of a transaction
Definition: proctrans.h:16
WocPHPTransaction(WocPHPOut *)
initializes the output object
Definition: phptrans.cpp:18
WocPHPOut * m_parent
Definition: phptrans.h:39
virtual QString trnHandlers(const WocTransaction &)=0
helper: create handlers
virtual QString trnConstruct(const WocTransaction &)
helper: create transaction constructor
Definition: phptrans.cpp:145