|
AppCore
|
#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) |
| EAdvertisement::EAdvertisement | ( | EAdvertisementManager * | owner | ) |
| EAdvertisement::EAdvertisement | ( | const EAdvertisement & | advertisement | ) |
| EAdvertisement::~EAdvertisement | ( | ) |
| EAdvertisement::EAdvertisement | ( | EAdvertisementManager * | owner | ) |
| EAdvertisement::EAdvertisement | ( | const EAdvertisement & | advertisement | ) |
| EAdvertisement::~EAdvertisement | ( | ) |
| void EAdvertisement::ClearSpentAmount | ( | ) |

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

| EAdvertisementSizeEnum EAdvertisement::GetAdvertisementSize | ( | ) | const |
|
static |
|
static |
| unsigned long EAdvertisement::GetDisplayCount | ( | ) |
| unsigned long EAdvertisement::GetDisplayCount | ( | ) |

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

| float EAdvertisement::GetLastSpentAmount | ( | ) |

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

|
static |
|
static |

| string EAdvertisement::GetStatFileName | ( | ) |

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

| 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


| 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 );


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

1.8.8