Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | List of all members
DeductionStateLogic Class Reference

#include <DeductionStateLogic.h>

Inheritance diagram for DeductionStateLogic:
Inheritance graph
[legend]
Collaboration diagram for DeductionStateLogic:
Collaboration graph
[legend]

Classes

class  DataClass
 

Public Member Functions

 DeductionStateLogic (ApplicationState *stateLogicOwner, const StorageList &storageList, BusinessLogicManager *businessLogicManager)
 
virtual ~DeductionStateLogic ()
 
bool CloseAndPrintDeduction (const bool preFinal, QString &errorMessage, bool &printFailed, bool deductionPrintEnabled)
 CloseAndPrintDeduction - tries to close deduction, print final ticket, send events to dispatching and store items in AppOperatingData. More...
 
bool PrintFinalTicket (bool preFinal)
 PrintFinalTicket - prints final deduction ticket. More...
 
void PrintInitialTicket ()
 PrintInitialTicket - prints initial deduction ticket. More...
 
bool OpenDeduction ()
 OpenDeduction - opens deduction, creates statistic record and print initial ticket. More...
 
- Public Member Functions inherited from StateLogic
 StateLogic (State *stateLogicOwner, const StorageList &storageList, ApplicationStateDefines::StateLogicType stateLogicType, BusinessLogicManager *businessLogicManager)
 
virtual ~StateLogic ()
 
ApplicationStateDefines::StateLogicType GetStateLogicType ()
 

Additional Inherited Members

- Protected Member Functions inherited from StateLogic
const BusinessLogicManagerGetBusinessLogicManager () const
 
const State * GetStateLogicOwner () const
 
const StorageList & GetStorageList () const
 

Constructor & Destructor Documentation

DeductionStateLogic::DeductionStateLogic ( ApplicationState stateLogicOwner,
const StorageList &  storageList,
BusinessLogicManager businessLogicManager 
)
DeductionStateLogic::~DeductionStateLogic ( )
virtual

Member Function Documentation

bool DeductionStateLogic::CloseAndPrintDeduction ( const bool  preFinal,
QString &  errorMessage,
bool &  printFailed,
bool  deductionPrintEnabled 
)

CloseAndPrintDeduction - tries to close deduction, print final ticket, send events to dispatching and store items in AppOperatingData.

Parameters
preFinal- whether printed ticket is pre-final or final
errorMessage- error message filled only when result is false
printFailed- false, if final ticket printing failed, true otherwise
deductionPrintEnabled- if true, try to print final ticket, otherwise final ticket won't be printed
Returns
true if successful, false otherwise

Here is the call graph for this function:

Here is the caller graph for this function:

bool DeductionStateLogic::OpenDeduction ( )

OpenDeduction - opens deduction, creates statistic record and print initial ticket.

Returns
true if deduction was opened successfully

Here is the call graph for this function:

Here is the caller graph for this function:

bool DeductionStateLogic::PrintFinalTicket ( bool  preFinal)

PrintFinalTicket - prints final deduction ticket.

Parameters
preFinal- whether printed ticket is pre-final or final
Returns
true if ticket was printed successfully, false otherwise

Here is the call graph for this function:

Here is the caller graph for this function:

void DeductionStateLogic::PrintInitialTicket ( )

PrintInitialTicket - prints initial deduction ticket.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: