Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DeductionStateLogic.h
Go to the documentation of this file.
1 #ifndef _STATISTIC_STATE_LOGIC_H_
2 #define _STATISTIC_STATE_LOGIC_H_
3 
4 #include <QScopedPointer>
5 
6 #include "StateLogic.h"
7 
8 class ApplicationState;
9 class StorageList;
10 
12 {
13 public:
14  DeductionStateLogic( ApplicationState *stateLogicOwner, const StorageList &storageList, BusinessLogicManager *businessLogicManager );
15  virtual ~DeductionStateLogic();
16 
25  bool CloseAndPrintDeduction( const bool preFinal, QString &errorMessage, bool &printFailed , bool deductionPrintEnabled );
26 
32  bool PrintFinalTicket( bool preFinal );
33 
37  void PrintInitialTicket();
38 
43  bool OpenDeduction();
44 
45 private:
46  class DataClass;
47  QScopedPointer<DataClass> d;
48 };
49 
50 #endif // _STATISTIC_STATE_LOGIC_H_
Definition: DeductionStateLogic.h:11
bool OpenDeduction()
OpenDeduction - opens deduction, creates statistic record and print initial ticket.
Definition: DeductionStateLogic.cpp:211
void PrintInitialTicket()
PrintInitialTicket - prints initial deduction ticket.
Definition: DeductionStateLogic.cpp:198
virtual ~DeductionStateLogic()
Definition: DeductionStateLogic.cpp:55
bool CloseAndPrintDeduction(const bool preFinal, QString &errorMessage, bool &printFailed, bool deductionPrintEnabled)
CloseAndPrintDeduction - tries to close deduction, print final ticket, send events to dispatching and...
Definition: DeductionStateLogic.cpp:59
Definition: ApplicationState.h:33
DeductionStateLogic(ApplicationState *stateLogicOwner, const StorageList &storageList, BusinessLogicManager *businessLogicManager)
Definition: DeductionStateLogic.cpp:49
Definition: BusinessLogicManager.h:7
Definition: StateLogic.h:11
bool PrintFinalTicket(bool preFinal)
PrintFinalTicket - prints final deduction ticket.
Definition: DeductionStateLogic.cpp:158
Definition: DeductionStateLogic.cpp:37