AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

Enumerator
Separator_DopravaSk 
Separator_ZaTextZodpovedaInzerent 
Separator_DopravaSk 
Separator_ZaTextZodpovedaInzerent 
Enumerator
Separator_DopravaSk 
Separator_ZaTextZodpovedaInzerent 
Separator_DopravaSk 
Separator_ZaTextZodpovedaInzerent 

Constructor & Destructor Documentation

EAdvertisement::EAdvertisement ( EAdvertisementManager owner)
EAdvertisement::EAdvertisement ( const EAdvertisement advertisement)
EAdvertisement::~EAdvertisement ( )
EAdvertisement::EAdvertisement ( EAdvertisementManager owner)
EAdvertisement::EAdvertisement ( const EAdvertisement advertisement)
EAdvertisement::~EAdvertisement ( )

Member Function Documentation

void EAdvertisement::ClearSpentAmount ( )

Here is the caller graph for this function:

void EAdvertisement::ClearSpentAmount ( )
EAdvertisementSizeEnum EAdvertisement::GetAdvertisementSize ( ) const

Here is the caller graph for this function:

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

Here is the caller graph for this function:

unsigned long EAdvertisement::GetID ( )
unsigned long EAdvertisement::GetID ( )

Here is the caller graph for this function:

float EAdvertisement::GetLastSpentAmount ( )

Here is the caller graph for this function:

float EAdvertisement::GetLastSpentAmount ( )
short EAdvertisement::GetPriority ( )
short EAdvertisement::GetPriority ( )

Here is the caller graph for this function:

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

Here is the caller graph for this function:

string EAdvertisement::GetStatFileName ( )

Here is the caller graph for this function:

std::string EAdvertisement::GetStatFileName ( )
unsigned long EAdvertisement::GetUserID ( )
unsigned long EAdvertisement::GetUserID ( )

Here is the caller graph for this function:

bool EAdvertisement::IsSuitable ( unsigned long  busstopIDOrigin,
unsigned long  busstopIDDestination,
unsigned char  discountType,
unsigned char  cardType 
)
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:

unsigned char* EAdvertisement::Print ( unsigned long &  dataLength,
unsigned short &  height,
unsigned long  busstopID,
unsigned long  deviceSNR 
)
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:

void EAdvertisement::Read ( EXMLNode *  node)
void EAdvertisement::Read ( EXMLNode *  node)
void EAdvertisement::SetStatFileName ( const std::string &  fileName)
void EAdvertisement::SetStatFileName ( const std::string &  fileName)

Here is the caller graph for this function:


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