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

#include <IzPlatformMarket.h>

Inheritance diagram for IzPlatformMarket:
CzPlatformMarketAndroid CzPlatformMarketAndroid CzPlatformMarketiOS CzPlatformMarketiOS CzPlatformMarketTest CzPlatformMarketTest

List of all members.

Public Types

enum  eMarketStatus {
  MS_IDLE, MS_PURCHASING, MS_PURCHASE_COMPLETED, MS_RESTORE_COMPLETED,
  MS_ERROR_CLIENT_INVALID, MS_ERROR_PAYMENT_CANCELLED, MS_ERROR_PAYMENT_INVALID, MS_ERROR_PAYMENT_NOT_ALLOWED,
  MS_ERROR_PURCHASE_UNKNOWN, MS_ERROR_PURCHASE_DISABLED, MS_ERROR_NO_CONNECTION, MS_ERROR_RESTORE_FAILED,
  MS_ERROR_UNKNOWN_PRODUCT, MS_ERROR_DEVELOPER_ERROR, MS_ERROR_UNAVAILABLE
}

Public Member Functions

bool isAvailable () const
bool isInitialised () const
eMarketStatus getStatus () const
void setStatus (eMarketStatus status)
CzMarketgetActiveMarket ()
void setActiveMarket (CzMarket *market)
void setSimulation (unsigned int sim)
unsigned int getSimulation () const
virtual bool isBillingEnabled ()=0
 Returns true if billing enabled on device.
 IzPlatformMarket ()
virtual int Init (void *id)=0
 Market intialisation.
virtual void Release ()=0
 Market cleanup.
virtual void Update ()=0
 Per frame update.
virtual bool QueryProduct (const char *product_id)=0
 Query product information.
virtual bool PurchaseProduct (const char *product_id)=0
 Purchase a product.
virtual bool RestoreProducts ()=0
 Restore previously purchased products.

Protected Attributes

bool Available
 Is available on this platform.
bool Initialised
 Initialised state.
eMarketStatus Status
 Markets current status.
CzMarketActiveMarket
 Currently active market.
unsigned int SimulationHash
 Name of sinulation to perform.

Member Enumeration Documentation

Enumerator:
MS_IDLE 
MS_PURCHASING 
MS_PURCHASE_COMPLETED 
MS_RESTORE_COMPLETED 
MS_ERROR_CLIENT_INVALID 
MS_ERROR_PAYMENT_CANCELLED 
MS_ERROR_PAYMENT_INVALID 
MS_ERROR_PAYMENT_NOT_ALLOWED 
MS_ERROR_PURCHASE_UNKNOWN 
MS_ERROR_PURCHASE_DISABLED 
MS_ERROR_NO_CONNECTION 
MS_ERROR_RESTORE_FAILED 
MS_ERROR_UNKNOWN_PRODUCT 
MS_ERROR_DEVELOPER_ERROR 
MS_ERROR_UNAVAILABLE 

Constructor & Destructor Documentation


Member Function Documentation

unsigned int IzPlatformMarket::getSimulation ( ) const [inline]
bool IzPlatformMarket::isAvailable ( ) const [inline]
virtual bool IzPlatformMarket::isBillingEnabled ( ) [pure virtual]
bool IzPlatformMarket::isInitialised ( ) const [inline]
virtual bool IzPlatformMarket::PurchaseProduct ( const char *  product_id) [pure virtual]
virtual bool IzPlatformMarket::QueryProduct ( const char *  product_id) [pure virtual]
void IzPlatformMarket::setActiveMarket ( CzMarket market) [inline]
void IzPlatformMarket::setSimulation ( unsigned int  sim) [inline]
void IzPlatformMarket::setStatus ( eMarketStatus  status) [inline]

Member Data Documentation

Currently active market.

bool IzPlatformMarket::Available [protected]

Is available on this platform.

Initialised state.

unsigned int IzPlatformMarket::SimulationHash [protected]

Name of sinulation to perform.

Markets current status.


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