Public Types |
enum | eAdProvider {
InnerActive,
AdFonic,
VServ,
Mojiva,
MillennialMedia,
AdModa
} |
enum | eAdsPortalType {
PortalNone,
AndroidBanner,
AndroidText,
BadaBanner,
BadaText,
BlackberryBanner,
BlackberryText,
iPadBanner,
iPadText,
iPhoneBanner,
iPhoneText,
OVIBanner,
OVIText,
WebOSBanner,
WebOSText,
WinMobileBanner,
WinMobileText,
MobileWebBanner,
MobileWebText
} |
enum | eAdsGender { GenderInvalid,
GenderMale,
GenderFemale
} |
enum | eAdsError {
ErrorNone,
ErrorHouseAd,
ErrorInternalError,
ErrorInvalidInput,
ErrorUnknownAppId,
ErrorNoAd,
ErrorHttp,
ErrorHttpImage,
ErrorInvalidImage,
ErrorRequestTimedOut,
ErrorInvalidAdData
} |
enum | eAdsImageFormat { ImageFormatInvalid,
ImageFormatPNG,
ImageFormatGIF,
ImageFormatJPG
} |
Public Member Functions |
void | setVersion (const char *version) |
CzString & | getVersion () |
void | setApplicationID (const char *id) |
CzString & | getApplicationID () |
void | setOtherID (const char *id) |
CzString & | getOtherID () |
void | setUDID (unsigned int udid) |
unsigned int | getUDID () const |
void | setSize (int width, int height) |
int | getWidth () const |
int | getHeight () const |
void | setPortalType (eAdsPortalType type) |
eAdsPortalType | getPortaltype () const |
void | setTextAds (bool text_ads) |
bool | getTextAds () const |
void | setHtmlAds (bool html_ads) |
bool | getHtmlAds () const |
void | setUserAgent (const char *user_agent) |
CzString & | getUserAgent () |
void | setUserAge (int age) |
int | getUserAge () const |
void | setUserGender (eAdsGender gender) |
eAdsGender | getUserGender () const |
void | setUserLocation (const char *location) |
CzString & | getUserLocation () |
void | setUserGPSLocation (const char *location) |
CzString & | getUserGPSLocation () |
void | setMobileNumber (const char *number) |
CzString & | getUserMobileNumber () |
void | setUserKeywords (const char *keywords) |
CzString & | getUserKeywords () |
void | setCategory (const char *category) |
CzString & | getCategory () |
void | setExtraInfo (const char *extras) |
CzString & | getExtraInfo () |
void | setAdAvailable (bool available) |
bool | isAdAvailable () const |
void | setAdAvailableCallback (CzCallback callback) |
void | setError (eAdsError error) |
eAdsError | getError () const |
void | setErrorString (const char *error) |
CzString & | getErrorString () |
CzAd & | getAd () |
int | getMaxAds () const |
void | setMediator (CzAdsMediator *med) |
CzAdsMediator * | getMediator () |
bool | Init () |
void | Release () |
void | Update () |
bool | RequestAd (eAdProvider provider, bool reset_mediator=true) |
void | AdImageReceived (CzHttpRequest *request, int error) |
void | AdReceived (CzHttpRequest *request, int error) |
Static Public Member Functions |
static eAdsPortalType | FindPortalType (bool text_ad=false) |
static int | getPortalID (eAdsPortalType type) |
Protected Member Functions |
bool | ExtractAd (CzAd &ad, CzString &ad_body) |
void | ErrorFromResponse (const char *error, int error_len) |
bool | RequestBannerImage (CzAd &ad) |
void | NotifyAdAvailable () |
eAdsImageFormat | GetImageFormatFromHeader () |
bool | RequestAdInnerActive () |
bool | RequestAdInMobi () |
bool | RequestAdMobClix () |
bool | RequestAdMobFox () |
bool | RequestAdAdFonic () |
bool | RequestAdMadvertise () |
bool | RequestAdMojiva () |
bool | RequestAdMillennialMedia () |
bool | RequestAdVServ () |
bool | RequestAdKomliMobile () |
bool | RequestAdAdModa () |
bool | ExtractLinkAndImageFromtHTML (CzAd &ad, CzString &html) |
bool | ExtractAdInnerActive (CzAd &ad, CzString &ad_body) |
bool | ExtractAdInMobi (CzAd &ad, CzString &ad_body) |
bool | ExtractAdMobClix (CzAd &ad, CzString &ad_body) |
bool | ExtractAdMobFox (CzAd &ad, CzString &ad_body) |
bool | ExtractAdAdFonic (CzAd &ad, CzString &ad_body) |
bool | ExtractAdMadvertise (CzAd &ad, CzString &ad_body) |
bool | ExtractAdMojiva (CzAd &ad, CzString &ad_body) |
bool | ExtractAdMillennialMedia (CzAd &ad, CzString &ad_body) |
bool | ExtractAdVServ (CzAd &ad, CzString &ad_body) |
bool | ExtractAdKomliMobile (CzAd &ad, CzString &ad_body) |
bool | ExtractAdAdModa (CzAd &ad, CzString &ad_body) |
Protected Attributes |
CzString | Version |
CzString | ApplicationID |
CzString | OtherID |
unsigned int | UDID |
int | Width |
int | Height |
eAdsPortalType | PortalType |
bool | TextAds |
bool | HtmlAds |
int | UserAge |
CzString | UserAgent |
CzString | IPAddress |
eAdsGender | UserGender |
CzString | UserLocation |
CzString | UserGPSLocation |
CzString | Category |
CzString | UserMobileNumber |
CzString | UserKeywords |
CzString | ExtraInfo |
bool | AdAvailable |
CzCallback | AdAvailableCallback |
eAdsError | Error |
CzString | ErrorString |
CzAd | AdInfo |
CzAdsMediator * | Mediator |
CzString | ContentType |
CzString | UserIP |
CzString | ClientID |
CzString | RequestURI |
CzHttpRequest | AdRequest |
CzTimer | BusyTimer |
eAdProvider | AdProvider |
Static Protected Attributes |
static unsigned int | ResponseCodes [] |
static int | PortalIDs [] |