Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
PrinterDisplayBusinessLogic.h
Go to the documentation of this file.
1 #ifndef PRINTERDISPLAYBUSINESSLOGIC_H
2 #define PRINTERDISPLAYBUSINESSLOGIC_H
3 
4 #include "BusinessLogic.h"
5 
6 namespace EM
7 {
8  namespace Strojcek
9  {
10  namespace VstupneUdaje
11  {
12  namespace TarifnySystem
13  {
14  class ETarifa;
15  }
16  }
17  }
18 }
19 
20 //#define TEST_TCP_SOCKET_MIKROELEKTRONIKA_OCC_DISPLAY
21 
22 class PrinterDisplayBusinessLogic : public QObject, public BusinessLogic
23 {
24  Q_OBJECT
25 public:
27 
30 
31  void Init();
32  void IssueIn();
33  void IssueOut();
34 
35  void ShowApproachCard( char busstopTripOrder, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, const QStringList &priceText, const QString &approachCardText, const QString &progress = "" );
36  void ShowTariffAndPrice( char busstopTripOrder, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, const QStringList &priceText );
37  void ShowBusStopName( QString busStopName );
38  void OnSecondTick();
39 
42 
43  bool DisplaysBothPrices();
44 
45 #ifdef TEST_TCP_SOCKET_MIKROELEKTRONIKA_OCC_DISPLAY
46 public slots:
47  void connected();
48  void disconnected();
49  void bytesWritten(qint64 bytes);
50  void readyRead();
51  void onTimeOut();
52 #endif
53 private:
54  class DataClass;
55  QSharedPointer<DataClass> d;
56 };
57 
58 #endif // PRINTERDISPLAYBUSINESSLOGIC_H
int8_t GetReloadTimeAfterIssueCashTicket()
Definition: PrinterDisplayBusinessLogic.cpp:310
PrinterDisplayBusinessLogic()
Definition: PrinterDisplayBusinessLogic.cpp:166
Definition: PrinterDisplayBusinessLogic.cpp:49
Definition: ApplicationDefines.h:200
void ShowBusStopName(QString busStopName)
Definition: PrinterDisplayBusinessLogic.cpp:286
void ShowTariffAndPrice(char busstopTripOrder, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, const QStringList &priceText)
Definition: PrinterDisplayBusinessLogic.cpp:276
static const ApplicationDefines::BusinessLogicType mBusinessLogicType
Definition: PrinterDisplayBusinessLogic.h:26
The BusinessLogic class is the base class of all business logic classes. Every inherited class has to...
Definition: BusinessLogic.h:11
void IssueOut()
Definition: PrinterDisplayBusinessLogic.cpp:204
virtual ~PrinterDisplayBusinessLogic()
Definition: PrinterDisplayBusinessLogic.cpp:188
void OnSecondTick()
Definition: PrinterDisplayBusinessLogic.cpp:298
bool DisplaysBothPrices()
Definition: PrinterDisplayBusinessLogic.cpp:320
void Init()
Definition: PrinterDisplayBusinessLogic.cpp:196
Definition: AutomaticCardHandlingBusinessLogic.h:6
BusinessLogicType
Definition: ApplicationDefines.h:186
Definition: PrinterDisplayBusinessLogic.h:22
void HoldPrinterDisplayReloadForAWhile()
Definition: PrinterDisplayBusinessLogic.cpp:315
void ShowApproachCard(char busstopTripOrder, EM::Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff, const QStringList &priceText, const QString &approachCardText, const QString &progress="")
Definition: PrinterDisplayBusinessLogic.cpp:213