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
CzActionsMarket.h
Go to the documentation of this file.
00001 // 
00002 //
00003 // AppEasy SDK - Cross Platform Multi-purpose Game and App Engine
00004 //
00005 // Developed by Matthew Hopwood of Pocketeers Limited - www.pocketeers.co.uk
00006 //
00007 // For updates, tutorials and more details check out www.appeasymobile.com
00008 //
00009 // This code is provided free of charge and without any warranty whatsoever. You must ensure that this whole notice is present in all files and derivatives, so the reader knows its origin.
00010 // If you use this SDK in your product then please ensure that you credit AppEasy's usage appropriately. Please see www.appeasymobile.com for licensing details and support
00011 //
00012 //
00013 
00014 #if !defined(_CZ_ACTIONS_MARKET_H_)
00015 #define _CZ_ACTIONS_MARKET_H_
00016 
00017 #include "CzActions.h"
00018 #include "CzXoml.h"
00019 
00020 /**
00021  @addtogroup Actions
00022  @{
00023  */
00024  
00025 /**
00026  @class CzXomlActions_Market
00027 
00028  @brief Implements actions that relate to in-app purchasing (the Market)
00029 
00030  The CzXomlActions_Market class holds Actions (IzXomlAction) that deal with making in-app purchases such as purchasing a product. A market action is basically a command that 
00031  causes some kind of interaction with the Market system and / or app store in-app purchasing system.
00032  
00033  The following actions are supported:
00034  - Purchase     - Makes an in-app purchase request
00035 
00036  The above actions have the following XOML prototypes:
00037  - Purchase(product-name)
00038    - product-name - The name of the product as assigned in the Market resource
00039 
00040  For more information on the in-app purchasing system see CzMarket
00041  
00042  */
00043 
00044 class CzXomlActions_Market : public IzXomlAction
00045 {
00046 public:
00047     enum eActionType
00048     {
00049         Action_Purchase         = 0, 
00050         Action_Max              = 1, 
00051     };
00052 protected:
00053     eActionType Type;
00054     CzXomlActions_Market() {}
00055 public:
00056     CzXomlActions_Market(eActionType type)
00057     {
00058         Type = type;
00059         switch (Type)
00060         {
00061         case Action_Purchase:
00062             setActionName("purchase");
00063             break;
00064         }
00065     }
00066     void Execute(IzXomlResource* source, CzAction* action);
00067 };
00068 
00069 /// @}
00070 
00071 #endif // _CZ_ACTIONS_MARKET_H_