Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
PrinterBusinessLogic.h
Go to the documentation of this file.
1 #ifndef PRINTERBUSINESSLOGIC_H
2 #define PRINTERBUSINESSLOGIC_H
3 
4 #include <QSharedPointer>
6 
7 namespace EM
8 {
9  namespace PrinterTemplate
10  {
11  class EPrinterTemplate;
12  }
13 }
14 
16 {
17 public:
19 
21  virtual ~PrinterBusinessLogic();
22 
23  void LoadTemplates();
24  void PreparePrinterTest();
25  bool IsPrinterPresent() const;
26  bool CheckPrinterPresent();
27  bool PrintPreparedTicket( const QString &backupCopyFileName = QString() );
28  bool PrinterCheck( QString &errorString );
29  bool CheckPrinterStateAndShowError( const QString &errorMessageTitle = "" );
30  QString GetPreparedTicketTemplateName() const;
31  EM::PrinterTemplate::EPrinterTemplate* PrepareTicket( const QString &templateName, bool fillTicketHeader = true , bool fillTicketNumberToHeader = true );
32  bool IsPaperLow() const;
33 
39 
45 
46  bool PrintRefuellingTicket( const unsigned dailyIdentificationRecordNumber );
47 
48 private:
49  class DataClass;
50  QSharedPointer<DataClass> d;
51 };
52 
53 #endif // PRINTERBUSINESSLOGIC_H
void LoadTemplates()
Definition: PrinterBusinessLogic.cpp:324
EM::PrinterTemplate::EPrinterTemplate * PrepareTicket(const QString &templateName, bool fillTicketHeader=true, bool fillTicketNumberToHeader=true)
Definition: PrinterBusinessLogic.cpp:446
PrinterBusinessLogic()
Definition: PrinterBusinessLogic.cpp:313
bool PrintFinalTicketCopyFromFile()
PrintFinalTicketCopyFromFile - prints final ticket from final ticket copy file.
Definition: PrinterBusinessLogic.cpp:488
Definition: PrinterBusinessLogic.cpp:66
The BusinessLogic class is the base class of all business logic classes. Every inherited class has to...
Definition: BusinessLogic.h:11
bool IsPrinterPresent() const
Definition: PrinterBusinessLogic.cpp:344
QString GetPreparedTicketTemplateName() const
Definition: PrinterBusinessLogic.cpp:628
bool PrintRefuellingTicket(const unsigned dailyIdentificationRecordNumber)
Definition: PrinterBusinessLogic.cpp:568
virtual ~PrinterBusinessLogic()
Definition: PrinterBusinessLogic.cpp:319
bool EraseFinalTicketCopyFile()
EraseFinalTicketCopyFile - deletes final ticket copy file.
Definition: PrinterBusinessLogic.cpp:545
bool CheckPrinterStateAndShowError(const QString &errorMessageTitle="")
Definition: PrinterBusinessLogic.cpp:433
bool PrinterCheck(QString &errorString)
Definition: PrinterBusinessLogic.cpp:366
bool IsPaperLow() const
Definition: PrinterBusinessLogic.cpp:470
static const ApplicationDefines::BusinessLogicType mBusinessLogicType
Definition: PrinterBusinessLogic.h:18
bool CheckPrinterPresent()
Definition: PrinterBusinessLogic.cpp:349
Definition: AutomaticCardHandlingBusinessLogic.h:6
BusinessLogicType
Definition: ApplicationDefines.h:186
void PreparePrinterTest()
Definition: PrinterBusinessLogic.cpp:329
bool PrintPreparedTicket(const QString &backupCopyFileName=QString())
Definition: PrinterBusinessLogic.cpp:633
Definition: ApplicationDefines.h:189
Definition: PrinterBusinessLogic.h:15