AppCore
Loading...
Searching...
No Matches
EAdvertisement.h
Go to the documentation of this file.
1#ifndef E_ADVERTISEMENT_H
2#define E_ADVERTISEMENT_H
3
4#include "core/xml/EXMLNode.h"
5
7
14
16class QImage;
17
19{
20public:
22 EAdvertisement( const EAdvertisement& advertisement );
24
25 void Read( EXMLNode* node );
26 unsigned char* Print( unsigned long& dataLength, unsigned short& height, unsigned long busstopID, unsigned long deviceSNR );
27 bool IsSuitable( unsigned long busstopIDOrigin, unsigned long busstopIDDestination, unsigned char discountType, unsigned char cardType );
28
30 unsigned long GetDisplayCount();
31 unsigned long GetID();
32 short GetPriority();
33 unsigned long GetUserID();
34
35 std::string GetStatFileName();
36 void SetStatFileName( const std::string &fileName );
37 void ClearSpentAmount();
38
39 float GetLastSpentAmount();
40
46
47 static unsigned char* GetDataForPrinter( unsigned long& length, unsigned long& width, unsigned short& height, QImage& image );
48 static unsigned char* GetSeparatorData( unsigned long& separatorDataLength, unsigned short& separatorHeight, SeparatorType separatorType );
49
50private:
52};
53
54#endif //E_ADVERTISEMENT_H
EAdvertisementSizeEnum
Definition EAdvertisement.h:9
@ MediumAdvertisement
Definition EAdvertisement.h:11
@ SmallAdvertisement
Definition EAdvertisement.h:10
@ LargeAdvertisement
Definition EAdvertisement.h:12
EAdvertisementSizeEnum
Definition EAdvertisement.h:9
Definition EAdvertisementManager.h:17
Definition EAdvertisement.cpp:46
Definition EAdvertisement.h:19
static unsigned char * GetDataForPrinter(unsigned long &length, unsigned long &width, unsigned short &height, QImage &image)
Definition EAdvertisement.cpp:582
void Read(EXMLNode *node)
Definition EAdvertisement.cpp:342
float GetLastSpentAmount()
Definition EAdvertisement.cpp:577
unsigned long GetDisplayCount()
Definition EAdvertisement.cpp:534
void ClearSpentAmount()
Definition EAdvertisement.cpp:572
unsigned char * Print(unsigned long &dataLength, unsigned short &height, unsigned long busstopID, unsigned long deviceSNR)
Definition EAdvertisement.cpp:356
SeparatorType
Definition EAdvertisement.h:42
@ Separator_ZaTextZodpovedaInzerent
Definition EAdvertisement.h:44
@ Separator_DopravaSk
Definition EAdvertisement.h:43
void SetStatFileName(const std::string &fileName)
unsigned long GetUserID()
Definition EAdvertisement.cpp:557
unsigned long GetID()
Definition EAdvertisement.cpp:547
bool IsSuitable(unsigned long busstopIDOrigin, unsigned long busstopIDDestination, unsigned char discountType, unsigned char cardType)
Definition EAdvertisement.cpp:410
EAdvertisementSizeEnum GetAdvertisementSize() const
Definition EAdvertisement.cpp:528
static unsigned char * GetSeparatorData(unsigned long &separatorDataLength, unsigned short &separatorHeight, SeparatorType separatorType)
Definition EAdvertisement.cpp:640
std::string GetStatFileName()
Definition EAdvertisement.cpp:562
~EAdvertisement()
Definition EAdvertisement.cpp:336
short GetPriority()
Definition EAdvertisement.cpp:552