miniiapsymbianclient.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 MINIIAPSYMBIANCLIENT_H
  9. #define MINIIAPSYMBIANCLIENT_H
  10. #include <iapsymbianclientapi.h>
  11. #include <iapsymbianclientapiinterface.h>
  12. #include <e32def.h>
  13. //#include <e32cmn.h>
  14. #include "miniiapclientapi.h"
  15. #include "Symbian/drmfile_native_symbian.h"
  16. #include <e32cmn.h>
  17. const TInt KMaxProductIdLength=0x20; // 32
  18. const TInt KMaxStatusLength=0x20; // 32
  19. class SymbianClientApiHelper;
  20. class MiniIAPSymbianClient : public MiniIAPClientApi
  21. {
  22. public:
  23. MiniIAPSymbianClient();
  24. ~MiniIAPSymbianClient();
  25. // From MiniIAPClientApi
  26. virtual void prepare();
  27. virtual bool purchaseProduct(const char * productId);
  28. virtual bool isProductPurchased(const char *productId, const char *fileName = 0);
  29. void PurchaseCompleted(const char *productId, const char *status);
  30. void PurchaseFlowFinished(const char *productId);
  31. private:
  32. SymbianClientApiHelper *m_IAPHelper;
  33. DRMFileNativeSymbian drmFileHelper;
  34. };
  35. #endif // MINIIAPSYMBIANCLIENT_H