AppCore
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
EAdvertisement Class Reference

#include <EAdvertisement.h>

Public Types

enum  SeparatorType { Separator_DopravaSk = 0 , Separator_ZaTextZodpovedaInzerent = 1 , Separator_DopravaSk = 0 , Separator_ZaTextZodpovedaInzerent = 1 }
 
enum  SeparatorType { Separator_DopravaSk = 0 , Separator_ZaTextZodpovedaInzerent = 1 , Separator_DopravaSk = 0 , Separator_ZaTextZodpovedaInzerent = 1 }
 

Public Member Functions

 EAdvertisement (EAdvertisementManager *owner)
 
 EAdvertisement (const EAdvertisement &advertisement)
 
 ~EAdvertisement ()
 
void Read (EXMLNode *node)
 
unsigned char * Print (unsigned long &dataLength, unsigned short &height, unsigned long busstopID, unsigned long deviceSNR)
 
bool IsSuitable (unsigned long busstopIDOrigin, unsigned long busstopIDDestination, unsigned char discountType, unsigned char cardType)
 
EAdvertisementSizeEnum GetAdvertisementSize () const
 
unsigned long GetDisplayCount ()
 
unsigned long GetID ()
 
short GetPriority ()
 
unsigned long GetUserID ()
 
std::string GetStatFileName ()
 
void SetStatFileName (const std::string &fileName)
 
void ClearSpentAmount ()
 
float GetLastSpentAmount ()
 
 EAdvertisement (EAdvertisementManager *owner)
 
 EAdvertisement (const EAdvertisement &advertisement)
 
 ~EAdvertisement ()
 
void Read (EXMLNode *node)
 
unsigned char * Print (unsigned long &dataLength, unsigned short &height, unsigned long busstopID, unsigned long deviceSNR)
 
bool IsSuitable (unsigned long busstopIDOrigin, unsigned long busstopIDDestination, unsigned char discountType, unsigned char cardType)
 
EAdvertisementSizeEnum GetAdvertisementSize () const
 
unsigned long GetDisplayCount ()
 
unsigned long GetID ()
 
short GetPriority ()
 
unsigned long GetUserID ()
 
std::string GetStatFileName ()
 
void SetStatFileName (const std::string &fileName)
 
void ClearSpentAmount ()
 
float GetLastSpentAmount ()
 

Static Public Member Functions

static unsigned char * GetDataForPrinter (unsigned long &length, unsigned long &width, unsigned short &height, QImage &image)
 
static unsigned char * GetSeparatorData (unsigned long &separatorDataLength, unsigned short &separatorHeight, SeparatorType separatorType)
 
static unsigned char * GetDataForPrinter (unsigned long &length, unsigned long &width, unsigned short &height, QImage &image)
 
static unsigned char * GetSeparatorData (unsigned long &separatorDataLength, unsigned short &separatorHeight, SeparatorType separatorType)
 

Member Enumeration Documentation

◆ SeparatorType [1/2]

Enumerator
Separator_DopravaSk 
Separator_ZaTextZodpovedaInzerent 
Separator_DopravaSk 
Separator_ZaTextZodpovedaInzerent 

◆ SeparatorType [2/2]

Enumerator
Separator_DopravaSk 
Separator_ZaTextZodpovedaInzerent 
Separator_DopravaSk 
Separator_ZaTextZodpovedaInzerent 

Constructor & Destructor Documentation

◆ EAdvertisement() [1/4]

EAdvertisement::EAdvertisement ( EAdvertisementManager owner)

EAdvertisement

◆ EAdvertisement() [2/4]

EAdvertisement::EAdvertisement ( const EAdvertisement advertisement)

◆ ~EAdvertisement() [1/2]

EAdvertisement::~EAdvertisement ( )
Here is the call graph for this function:

◆ EAdvertisement() [3/4]

EAdvertisement::EAdvertisement ( EAdvertisementManager owner)

◆ EAdvertisement() [4/4]

EAdvertisement::EAdvertisement ( const EAdvertisement advertisement)

◆ ~EAdvertisement() [2/2]

EAdvertisement::~EAdvertisement ( )

Member Function Documentation

◆ ClearSpentAmount() [1/2]

void EAdvertisement::ClearSpentAmount ( )
Here is the caller graph for this function:

◆ ClearSpentAmount() [2/2]

void EAdvertisement::ClearSpentAmount ( )

◆ GetAdvertisementSize() [1/2]

EAdvertisementSizeEnum EAdvertisement::GetAdvertisementSize ( ) const
Here is the caller graph for this function:

◆ GetAdvertisementSize() [2/2]

EAdvertisementSizeEnum EAdvertisement::GetAdvertisementSize ( ) const

◆ GetDataForPrinter() [1/2]

unsigned char * EAdvertisement::GetDataForPrinter ( unsigned long &  length,
unsigned long &  width,
unsigned short &  height,
QImage &  image 
)
static
Here is the caller graph for this function:

◆ GetDataForPrinter() [2/2]

static unsigned char * EAdvertisement::GetDataForPrinter ( unsigned long &  length,
unsigned long &  width,
unsigned short &  height,
QImage &  image 
)
static

◆ GetDisplayCount() [1/2]

unsigned long EAdvertisement::GetDisplayCount ( )
Here is the caller graph for this function:

◆ GetDisplayCount() [2/2]

unsigned long EAdvertisement::GetDisplayCount ( )

◆ GetID() [1/2]

unsigned long EAdvertisement::GetID ( )
Here is the caller graph for this function:

◆ GetID() [2/2]

unsigned long EAdvertisement::GetID ( )

◆ GetLastSpentAmount() [1/2]

float EAdvertisement::GetLastSpentAmount ( )
Here is the caller graph for this function:

◆ GetLastSpentAmount() [2/2]

float EAdvertisement::GetLastSpentAmount ( )

◆ GetPriority() [1/2]

short EAdvertisement::GetPriority ( )
Here is the caller graph for this function:

◆ GetPriority() [2/2]

short EAdvertisement::GetPriority ( )

◆ GetSeparatorData() [1/2]

unsigned char * EAdvertisement::GetSeparatorData ( unsigned long &  separatorDataLength,
unsigned short &  separatorHeight,
SeparatorType  separatorType 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSeparatorData() [2/2]

static unsigned char * EAdvertisement::GetSeparatorData ( unsigned long &  separatorDataLength,
unsigned short &  separatorHeight,
SeparatorType  separatorType 
)
static

◆ GetStatFileName() [1/2]

string EAdvertisement::GetStatFileName ( )
Here is the caller graph for this function:

◆ GetStatFileName() [2/2]

std::string EAdvertisement::GetStatFileName ( )

◆ GetUserID() [1/2]

unsigned long EAdvertisement::GetUserID ( )
Here is the caller graph for this function:

◆ GetUserID() [2/2]

unsigned long EAdvertisement::GetUserID ( )

◆ IsSuitable() [1/2]

bool EAdvertisement::IsSuitable ( unsigned long  busstopIDOrigin,
unsigned long  busstopIDDestination,
unsigned char  discountType,
unsigned char  cardType 
)

na tuto reklamu uz nema peniaze

check dayLimit

nepoznam rating zastavky... netlacim...

kontrolu na den v tyzdni vykonava websluzba, ked si pytam reklamy bool validDayOfWeek = false;

bool forAnyDayOfWeek = true;

case CriteriaDayOfWeek: forAnyDayOfWeek = false; validDayOfWeek = validDayOfWeek || criteriaDetail->Check( busstopIDOrigin, busstopIDDestination, ticketType ); break;

nema urcenu nijaku konkretnu zastavku => univerzalna

nema urceny nijaky konkretny datum platnosti => platna vzdy

nema urceny nijaky konkretny cas platnosti => platna cely den

nema urcene nijake obmedzenie pre typ listka => platna pre vsetky typy listkov

nema urceny nijaky konkretny den v tyzdni => platna cely tyzden

if( forAnyDayOfWeek ) { validDayOfWeek = true; }

&& validDayOfWeek

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsSuitable() [2/2]

bool EAdvertisement::IsSuitable ( unsigned long  busstopIDOrigin,
unsigned long  busstopIDDestination,
unsigned char  discountType,
unsigned char  cardType 
)

◆ Print() [1/2]

unsigned char * EAdvertisement::Print ( unsigned long &  dataLength,
unsigned short &  height,
unsigned long  busstopID,
unsigned long  deviceSNR 
)

add separator

zvysim pocet zobrazeni reklamy

zapis info, ze bola tato reklama zobrazena pre tuto zastavku TODO MHD - primesto EAdvertisementReaderWriter::WriteDisplayCount( d->mID, d->mEBlVydaj->GetZastavkaVystup(), d->mAdvertisementSize );

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Print() [2/2]

unsigned char * EAdvertisement::Print ( unsigned long &  dataLength,
unsigned short &  height,
unsigned long  busstopID,
unsigned long  deviceSNR 
)

◆ Read() [1/2]

void EAdvertisement::Read ( EXMLNode *  node)
Here is the call graph for this function:

◆ Read() [2/2]

void EAdvertisement::Read ( EXMLNode *  node)

◆ SetStatFileName() [1/2]

void EAdvertisement::SetStatFileName ( const std::string &  fileName)
Here is the caller graph for this function:

◆ SetStatFileName() [2/2]

void EAdvertisement::SetStatFileName ( const std::string &  fileName)

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