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
CzMarket Class Reference

#include <CzMarket.h>

Inheritance diagram for CzMarket:
IzXomlResource

List of all members.

Public Types

typedef CzList
< CzMarketProduct * >
::iterator 
_ProductIterator

Public Member Functions

_ProductIterator begin ()
_ProductIterator end ()
CzEventManagergetEventsManager ()
void addProduct (CzMarketProduct *product)
void removeProduct (CzMarketProduct *product)
CzMarketProductfindProduct (const char *product_id)
CzMarketProductfindProductByName (unsigned int name_hash)
void setCurrentProductID (const char *product_id)
const char * getCurrentProductID () const
int getProductCount () const
void setPurchased (const char *product_id, bool purchased=true)
CzScriptCallbackgetScriptCallback ()
bool isBusy () const
void setBusy (bool busy)
 CzMarket ()
virtual ~CzMarket ()
int Init (const char *public_key)
void Release ()
void Save ()
void Load ()
int LoadFromXoml (IzXomlResource *parent, bool load_children, CzXmlNode *node)
bool QueryProduct (const char *product_id)
bool PurchaseProduct (const char *product_id)
bool RestoreProducts ()
void NotifyUnavailable ()
void NotifyComplete ()
void NotifyError ()
void NotifyBillingDisabled ()
void NotifyRefund ()
void NotifyInfoAvailable ()

Protected Member Functions

void ProcessEventActions (unsigned int event_name, IzXomlResource *parent)

Protected Attributes

CzList< CzMarketProduct * > Products
 Available products.
CzEventManagerEventsManager
 List of events that the animation handles.
CzScriptCallback ScriptCallback
 Script call back.
CzString CurrentProductID
 Current Product ID (e.g. com.companyname.appname.productname)
bool Busy
 When true the market is busy.

Member Typedef Documentation


Constructor & Destructor Documentation

CzMarket::CzMarket ( ) [inline]
virtual CzMarket::~CzMarket ( ) [inline, virtual]

Member Function Documentation

void CzMarket::addProduct ( CzMarketProduct product) [inline]
CzMarketProduct * CzMarket::findProduct ( const char *  product_id)
CzMarketProduct * CzMarket::findProductByName ( unsigned int  name_hash)
const char* CzMarket::getCurrentProductID ( ) const [inline]
int CzMarket::getProductCount ( ) const [inline]
int CzMarket::Init ( const char *  public_key)
bool CzMarket::isBusy ( ) const [inline]
void CzMarket::Load ( )
int CzMarket::LoadFromXoml ( IzXomlResource parent,
bool  load_children,
CzXmlNode node 
) [virtual]

Implements IzXomlResource.

void CzMarket::ProcessEventActions ( unsigned int  event_name,
IzXomlResource parent 
) [protected]
bool CzMarket::PurchaseProduct ( const char *  product_id)
bool CzMarket::QueryProduct ( const char *  product_id)
void CzMarket::Save ( )
void CzMarket::setBusy ( bool  busy) [inline]
void CzMarket::setCurrentProductID ( const char *  product_id)
void CzMarket::setPurchased ( const char *  product_id,
bool  purchased = true 
)

Member Data Documentation

bool CzMarket::Busy [protected]

When true the market is busy.

Current Product ID (e.g. com.companyname.appname.productname)

List of events that the animation handles.

Available products.

Script call back.


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