AppCore
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
EAdvertisementPr Class Reference
Collaboration diagram for EAdvertisementPr:
Collaboration graph
[legend]

Public Member Functions

void ReadCriteria (EXMLNode *node)
 
void ClearCriteria ()
 
void UpdateDisplayCount (unsigned long busstopID)
 
void UpdateSpentAmount (unsigned long busstopID)
 
double CalculateNextSpent (unsigned long busstopID)
 
bool CheckDayLimit (float nextSpentAmount)
 
float GetDaySpends ()
 
string GetDaySpendsFileName ()
 
void UpdateDaySpends ()
 
unsigned char GetTicketType (unsigned char discountType, unsigned char cardType)
 

Public Attributes

unsigned long mID
 
string mName
 
string mPicture
 
unsigned long mUserID
 
int mPriceQuote
 
EAdvertisementSizeEnum mAdvertisementSize
 
double mSpentAmount
 
EDisplayCounts mDisplayedCountBusstop
 
short mPriority
 
string mStatFileName
 
EAdvertisementManagermOwner
 
float mLastSpentAmount
 
unsigned long mBusstopID
 
long mDayLimit
 
ECriteriaDetailCol mCriteriaCol
 

Member Function Documentation

◆ CalculateNextSpent()

double EAdvertisementPr::CalculateNextSpent ( unsigned long  busstopID)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckDayLimit()

bool EAdvertisementPr::CheckDayLimit ( float  nextSpentAmount)

nemam denny limit

prekroceny denny limit

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

◆ ClearCriteria()

void EAdvertisementPr::ClearCriteria ( )
Here is the caller graph for this function:

◆ GetDaySpends()

float EAdvertisementPr::GetDaySpends ( )

nemam subor => dnes este nic neminul

nie je dnesny subor => dnes som nic neminul

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

◆ GetDaySpendsFileName()

string EAdvertisementPr::GetDaySpendsFileName ( )
Here is the caller graph for this function:

◆ GetTicketType()

unsigned char EAdvertisementPr::GetTicketType ( unsigned char  discountType,
unsigned char  cardType 
)

Vzdy je vyplnene len jedno - bud typ zlavy, alebo typ karty, druhe je 0. (bud sa kupoval listok alebo sa platilo kartou).

typ zlavy sa interne cisluje od 100

Here is the caller graph for this function:

◆ ReadCriteria()

void EAdvertisementPr::ReadCriteria ( EXMLNode *  node)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateDaySpends()

void EAdvertisementPr::UpdateDaySpends ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateDisplayCount()

void EAdvertisementPr::UpdateDisplayCount ( unsigned long  busstopID)

reklamy s prioritou 0 riesim takto, kedze ich casto zamietam, mali by malo zobrazeni a boli vzdy prve v zozname vhodnych

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

◆ UpdateSpentAmount()

void EAdvertisementPr::UpdateSpentAmount ( unsigned long  busstopID)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ mAdvertisementSize

EAdvertisementSizeEnum EAdvertisementPr::mAdvertisementSize

◆ mBusstopID

unsigned long EAdvertisementPr::mBusstopID

◆ mCriteriaCol

ECriteriaDetailCol EAdvertisementPr::mCriteriaCol

◆ mDayLimit

long EAdvertisementPr::mDayLimit

◆ mDisplayedCountBusstop

EDisplayCounts EAdvertisementPr::mDisplayedCountBusstop

◆ mID

unsigned long EAdvertisementPr::mID

◆ mLastSpentAmount

float EAdvertisementPr::mLastSpentAmount

◆ mName

string EAdvertisementPr::mName

◆ mOwner

EAdvertisementManager* EAdvertisementPr::mOwner

◆ mPicture

string EAdvertisementPr::mPicture

◆ mPriceQuote

int EAdvertisementPr::mPriceQuote

◆ mPriority

short EAdvertisementPr::mPriority

◆ mSpentAmount

double EAdvertisementPr::mSpentAmount

◆ mStatFileName

string EAdvertisementPr::mStatFileName

◆ mUserID

unsigned long EAdvertisementPr::mUserID

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