AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
EAdvertisementManagerPr Class Reference
Collaboration diagram for EAdvertisementManagerPr:
Collaboration graph
[legend]

Public Member Functions

void ClearAdvertisements ()
 
void ReadAmounts (string pathFile)
 
long FindSuitableAdvertisements (EAdvertisementCol &advertisements, unsigned long busstopIDOrigin, unsigned long busstopIDDestination, unsigned char discountType, unsigned char cardType)
 
unsigned char * ChooseAndPrint (EAdvertisementCol &advertisements, unsigned long &advertisementDataLength, unsigned short &advertisementHeight, unsigned long busstopIDOrigin, unsigned long deviceSNR)
 
EAdvertisementChooseRandomAdvertisement (EAdvertisementCol &advertisements, unsigned short engaged)
 
void ReadBusstops (EXMLNode *node)
 
void ClearOldDaySpendsFiles ()
 zmaze vsetky subory s dennymi spendami starsie ako den (necha len dnesne) More...
 
vector< string > ScanDirectory (const string &path, bool fileNameOnly)
 
bool IsDaySpendFile (const string &fileName)
 
bool IsOldFile (const string &fileName)
 
string GetFileName (const string &pathName)
 

Static Public Member Functions

static bool CompareByDisplayCount (EAdvertisement *ad1, EAdvertisement *ad2)
 

Public Attributes

EAdvertisementCol mAdvertisements
 
bool mIsReaded
 
bool mAreAmountsReaded
 
EBusstops mBusstops
 
EAmounts mAmounts
 
unsigned long mUnitPrice
 
EAdvertisementCommMngmAdvertisementCommMng
 

Member Function Documentation

unsigned char * EAdvertisementManagerPr::ChooseAndPrint ( EAdvertisementCol advertisements,
unsigned long &  advertisementDataLength,
unsigned short &  advertisementHeight,
unsigned long  busstopIDOrigin,
unsigned long  deviceSNR 
)

zotriedim podla poctu zobrazeni

zamietam reklamy s prioritou 0 s pravdepodobnostou 90%

6 = bulharska konstanta, proste pri vsetkych cislach okrem jedneho zamietam

za poslednu reklamu prilepim este oznam: "Za text reklamy zodpoveda inzerent"

Here is the call graph for this function:

EAdvertisement * EAdvertisementManagerPr::ChooseRandomAdvertisement ( EAdvertisementCol advertisements,
unsigned short  engaged 
)

srand ( time(NULL) );

easy way, how to choose advertisement

Here is the call graph for this function:

void EAdvertisementManagerPr::ClearAdvertisements ( )
void EAdvertisementManagerPr::ClearOldDaySpendsFiles ( )

zmaze vsetky subory s dennymi spendami starsie ako den (necha len dnesne)

bool EAdvertisementManagerPr::CompareByDisplayCount ( EAdvertisement ad1,
EAdvertisement ad2 
)
static

Here is the call graph for this function:

long EAdvertisementManagerPr::FindSuitableAdvertisements ( EAdvertisementCol advertisements,
unsigned long  busstopIDOrigin,
unsigned long  busstopIDDestination,
unsigned char  discountType,
unsigned char  cardType 
)

Here is the call graph for this function:

string EAdvertisementManagerPr::GetFileName ( const string &  pathName)
bool EAdvertisementManagerPr::IsDaySpendFile ( const string &  fileName)
bool EAdvertisementManagerPr::IsOldFile ( const string &  fileName)
void EAdvertisementManagerPr::ReadAmounts ( string  pathFile)
void EAdvertisementManagerPr::ReadBusstops ( EXMLNode *  node)
vector< string > EAdvertisementManagerPr::ScanDirectory ( const string &  path,
bool  fileNameOnly 
)

Member Data Documentation

EAdvertisementCommMng* EAdvertisementManagerPr::mAdvertisementCommMng
EAdvertisementCol EAdvertisementManagerPr::mAdvertisements
EAmounts EAdvertisementManagerPr::mAmounts
bool EAdvertisementManagerPr::mAreAmountsReaded
EBusstops EAdvertisementManagerPr::mBusstops
bool EAdvertisementManagerPr::mIsReaded
unsigned long EAdvertisementManagerPr::mUnitPrice

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