miniiapinterface.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
  3. * All rights reserved.
  4. *
  5. * For the applicable distribution terms see the license.txt -file, included in
  6. * the distribution.
  7. */
  8. #ifndef MINIIAPINTERFACE_H
  9. #define MINIIAPINTERFACE_H
  10. class MiniIAPInterface
  11. {
  12. public:
  13. MiniIAPInterface();
  14. /*!
  15. \fn void MiniIAPClientApi::PurchaseCompleted(const char *productId, const char *status)
  16. This callback function is called in the following situations:
  17. - When the %IAPClient gets information from the OPE back end indicating that
  18. the purchase has been completed.
  19. - In error situations along with purchaseFlowFinished().
  20. \param productId The ID of the product.
  21. \param status The status of the purchase flow. The status values are following:
  22. - OK: The purchase was successful.
  23. - Cancel: The user cancelled the transaction.
  24. - RestorableProduct: The purchase failed but the product is restorable.
  25. - Other error codes: The purchase failed. Your application should handle these error codes just as a failed purchase.
  26. */
  27. virtual void purchaseCompleted(const char *productId, const char *status);
  28. /*!
  29. \fn void MiniIAPInterface::PurchaseFlowFinished(const char *productId)
  30. This callback function is called when IAP shows no more UI after purchase, and the client
  31. is in control of the whole UI. It is emitted only after purchase flow has ended and
  32. the last IAP dialog has disappeared from the screen.
  33. - When the user finishes the purchase flow by cancelling the purchase.
  34. - When the user closes the Purchase Successful dialog.
  35. - In error situations.
  36. \param productId The ID of the product.
  37. */
  38. virtual void purchaseFlowFinished(const char *productId);
  39. };
  40. #endif // MINIIAPINTERFACE_H