AppEasy Core SDK  1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
CzAds Class Reference

#include <CzAds.h>

List of all members.

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)
CzStringgetVersion ()
void setApplicationID (const char *id)
CzStringgetApplicationID ()
void setOtherID (const char *id)
CzStringgetOtherID ()
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)
CzStringgetUserAgent ()
void setUserAge (int age)
int getUserAge () const
void setUserGender (eAdsGender gender)
eAdsGender getUserGender () const
void setUserLocation (const char *location)
CzStringgetUserLocation ()
void setUserGPSLocation (const char *location)
CzStringgetUserGPSLocation ()
void setMobileNumber (const char *number)
CzStringgetUserMobileNumber ()
void setUserKeywords (const char *keywords)
CzStringgetUserKeywords ()
void setCategory (const char *category)
CzStringgetCategory ()
void setExtraInfo (const char *extras)
CzStringgetExtraInfo ()
void setAdAvailable (bool available)
bool isAdAvailable () const
void setAdAvailableCallback (CzCallback callback)
void setError (eAdsError error)
eAdsError getError () const
void setErrorString (const char *error)
CzStringgetErrorString ()
CzAdgetAd ()
int getMaxAds () const
void setMediator (CzAdsMediator *med)
CzAdsMediatorgetMediator ()
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
CzAdsMediatorMediator
CzString ContentType
CzString UserIP
CzString ClientID
CzString RequestURI
CzHttpRequest AdRequest
CzTimer BusyTimer
eAdProvider AdProvider

Static Protected Attributes

static unsigned int ResponseCodes []
static int PortalIDs []

Member Enumeration Documentation

Enumerator:
InnerActive 
AdFonic 
VServ 
Mojiva 
MillennialMedia 
AdModa 
Enumerator:
ErrorNone 
ErrorHouseAd 
ErrorInternalError 
ErrorInvalidInput 
ErrorUnknownAppId 
ErrorNoAd 
ErrorHttp 
ErrorHttpImage 
ErrorInvalidImage 
ErrorRequestTimedOut 
ErrorInvalidAdData 
Enumerator:
GenderInvalid 
GenderMale 
GenderFemale 
Enumerator:
ImageFormatInvalid 
ImageFormatPNG 
ImageFormatGIF 
ImageFormatJPG 
Enumerator:
PortalNone 
AndroidBanner 
AndroidText 
BadaBanner 
BadaText 
BlackberryBanner 
BlackberryText 
iPadBanner 
iPadText 
iPhoneBanner 
iPhoneText 
OVIBanner 
OVIText 
WebOSBanner 
WebOSText 
WinMobileBanner 
WinMobileText 
MobileWebBanner 
MobileWebText 

Member Function Documentation

void CzAds::AdImageReceived ( CzHttpRequest request,
int  error 
)
void CzAds::AdReceived ( CzHttpRequest request,
int  error 
)
void CzAds::ErrorFromResponse ( const char *  error,
int  error_len 
) [protected]
bool CzAds::ExtractAd ( CzAd ad,
CzString ad_body 
) [protected]
bool CzAds::ExtractAdAdFonic ( CzAd ad,
CzString ad_body 
) [protected]
bool CzAds::ExtractAdAdModa ( CzAd ad,
CzString ad_body 
) [protected]
bool CzAds::ExtractAdInMobi ( CzAd ad,
CzString ad_body 
) [protected]
bool CzAds::ExtractAdInnerActive ( CzAd ad,
CzString ad_body 
) [protected]
bool CzAds::ExtractAdKomliMobile ( CzAd ad,
CzString ad_body 
) [protected]
bool CzAds::ExtractAdMadvertise ( CzAd ad,
CzString ad_body 
) [protected]
bool CzAds::ExtractAdMillennialMedia ( CzAd ad,
CzString ad_body 
) [protected]
bool CzAds::ExtractAdMobClix ( CzAd ad,
CzString ad_body 
) [protected]
bool CzAds::ExtractAdMobFox ( CzAd ad,
CzString ad_body 
) [protected]
bool CzAds::ExtractAdMojiva ( CzAd ad,
CzString ad_body 
) [protected]
bool CzAds::ExtractAdVServ ( CzAd ad,
CzString ad_body 
) [protected]
bool CzAds::ExtractLinkAndImageFromtHTML ( CzAd ad,
CzString html 
) [protected]
CzAds::eAdsPortalType CzAds::FindPortalType ( bool  text_ad = false) [static]
CzAd& CzAds::getAd ( ) [inline]
eAdsError CzAds::getError ( ) const [inline]
int CzAds::getHeight ( ) const [inline]
bool CzAds::getHtmlAds ( ) const [inline]
int CzAds::getMaxAds ( ) const [inline]
CzString& CzAds::getOtherID ( ) [inline]
int CzAds::getPortalID ( eAdsPortalType  type) [static]
bool CzAds::getTextAds ( ) const [inline]
unsigned int CzAds::getUDID ( ) const [inline]
int CzAds::getUserAge ( ) const [inline]
eAdsGender CzAds::getUserGender ( ) const [inline]
CzString& CzAds::getVersion ( ) [inline]
int CzAds::getWidth ( ) const [inline]
bool CzAds::Init ( )
bool CzAds::isAdAvailable ( ) const [inline]
void CzAds::NotifyAdAvailable ( ) [protected]
void CzAds::Release ( )
bool CzAds::RequestAd ( eAdProvider  provider,
bool  reset_mediator = true 
)
bool CzAds::RequestAdAdFonic ( ) [protected]
bool CzAds::RequestAdAdModa ( ) [protected]
bool CzAds::RequestAdInMobi ( ) [protected]
bool CzAds::RequestAdInnerActive ( ) [protected]
bool CzAds::RequestAdKomliMobile ( ) [protected]
bool CzAds::RequestAdMadvertise ( ) [protected]
bool CzAds::RequestAdMillennialMedia ( ) [protected]
bool CzAds::RequestAdMobClix ( ) [protected]
bool CzAds::RequestAdMobFox ( ) [protected]
bool CzAds::RequestAdMojiva ( ) [protected]
bool CzAds::RequestAdVServ ( ) [protected]
bool CzAds::RequestBannerImage ( CzAd ad) [protected]
void CzAds::setAdAvailable ( bool  available) [inline]
void CzAds::setAdAvailableCallback ( CzCallback  callback) [inline]
void CzAds::setApplicationID ( const char *  id) [inline]
void CzAds::setCategory ( const char *  category) [inline]
void CzAds::setError ( eAdsError  error) [inline]
void CzAds::setErrorString ( const char *  error) [inline]
void CzAds::setExtraInfo ( const char *  extras) [inline]
void CzAds::setHtmlAds ( bool  html_ads) [inline]
void CzAds::setMediator ( CzAdsMediator med) [inline]
void CzAds::setMobileNumber ( const char *  number) [inline]
void CzAds::setOtherID ( const char *  id) [inline]
void CzAds::setPortalType ( eAdsPortalType  type) [inline]
void CzAds::setSize ( int  width,
int  height 
) [inline]
void CzAds::setTextAds ( bool  text_ads) [inline]
void CzAds::setUDID ( unsigned int  udid) [inline]
void CzAds::setUserAge ( int  age) [inline]
void CzAds::setUserAgent ( const char *  user_agent) [inline]
void CzAds::setUserGender ( eAdsGender  gender) [inline]
void CzAds::setUserGPSLocation ( const char *  location) [inline]
void CzAds::setUserKeywords ( const char *  keywords) [inline]
void CzAds::setUserLocation ( const char *  location) [inline]
void CzAds::setVersion ( const char *  version) [inline]
void CzAds::Update ( )

Member Data Documentation

bool CzAds::AdAvailable [protected]
CzAd CzAds::AdInfo [protected]
eAdsError CzAds::Error [protected]
int CzAds::Height [protected]
bool CzAds::HtmlAds [protected]
CzString CzAds::OtherID [protected]
int CzAds::PortalIDs [static, protected]
Initial value:
 
{
    0,      
    559,    
    600,    
    661,    
    846,    
    635,    
    635,    
    947,    
    946,    
    642,    
    632,    
    551,    
    519,    
    738,    
    737,    
    659,    
    788,    
    1041,   
    1042,   
}
unsigned int CzAds::ResponseCodes [static, protected]
Initial value:
 
{
    CzString::CalculateHash("OK"), 
    CzString::CalculateHash("House Ad"), 
    CzString::CalculateHash("Internal Error"), 
    CzString::CalculateHash("Invalid Input"), 
    CzString::CalculateHash("Unknown App Id"), 
    CzString::CalculateHash("noAD"), 
}
bool CzAds::TextAds [protected]
unsigned int CzAds::UDID [protected]
int CzAds::UserAge [protected]
CzString CzAds::UserIP [protected]
CzString CzAds::Version [protected]
int CzAds::Width [protected]

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