Files
Webcam/include/platform/billing/billing.h
2026-06-22 11:49:35 +02:00

38 lines
900 B
C++

/* -----------------------------------------------------------------------------
GSFramework
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
----------------------------------------------------------------------------- */
#ifndef __BILLING__
#define __BILLING__
namespace GS {
/*!
@short Billing system abstract interface.
@author Emmanuel Julien (ejulien@owloh.com)
*/
struct IBilling
{
// Process a billing event.
virtual void onBillingEvent(const char *event, const char *item) = 0;
/// Returns true if the platform supports billing.
virtual bool isBillingServiceSupported() = 0;
/// Request a new purchase.
virtual bool requestPurchase(const char *) = 0;
/// Confirm a purchase.
virtual bool confirmPurchase(const char *) = 0;
/// Restore managed purchase states.
virtual bool restorePurchases() = 0;
virtual ~IBilling() {}
};
} // GS
#endif // __BILLING__