AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
9 {
13 };
14 
15 class EAdvertisementPr;
16 class QImage;
17 
18 class EAdvertisement
19 {
20 public:
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 
42  {
45  };
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 
50 private:
52 };
53 
54 #endif //E_ADVERTISEMENT_H
unsigned long GetDisplayCount()
Definition: EAdvertisement.cpp:534
float GetLastSpentAmount()
Definition: EAdvertisement.cpp:577
static unsigned char * GetDataForPrinter(unsigned long &length, unsigned long &width, unsigned short &height, QImage &image)
Definition: EAdvertisement.cpp:582
EAdvertisement(EAdvertisementManager *owner)
Definition: EAdvertisement.cpp:313
~EAdvertisement()
Definition: EAdvertisement.cpp:336
static unsigned char * GetSeparatorData(unsigned long &separatorDataLength, unsigned short &separatorHeight, SeparatorType separatorType)
Definition: EAdvertisement.cpp:640
Definition: EAdvertisement.h:18
bool IsSuitable(unsigned long busstopIDOrigin, unsigned long busstopIDDestination, unsigned char discountType, unsigned char cardType)
Definition: EAdvertisement.cpp:410
Definition: EAdvertisementManager.h:16
unsigned long GetID()
Definition: EAdvertisement.cpp:547
Definition: EAdvertisement.cpp:45
std::string GetStatFileName()
Definition: EAdvertisement.cpp:562
Definition: EAdvertisement.h:43
EAdvertisementSizeEnum GetAdvertisementSize() const
Definition: EAdvertisement.cpp:528
SeparatorType
Definition: EAdvertisement.h:41
unsigned char * Print(unsigned long &dataLength, unsigned short &height, unsigned long busstopID, unsigned long deviceSNR)
Definition: EAdvertisement.cpp:356
void SetStatFileName(const std::string &fileName)
unsigned long GetUserID()
Definition: EAdvertisement.cpp:557
void ClearSpentAmount()
Definition: EAdvertisement.cpp:572
void Read(EXMLNode *node)
Definition: EAdvertisement.cpp:342
short GetPriority()
Definition: EAdvertisement.cpp:552