purchasableitem.h 885 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 PURCHASABLEITEM_H
  9. #define PURCHASABLEITEM_H
  10. #include "purchasableitembase.h"
  11. /*!
  12. \class PurchasableItem
  13. \brief Implementation of the base abstract class PurchasableItemBase
  14. */
  15. class PurchasableItem : public PurchasableItemBase
  16. {
  17. Q_OBJECT
  18. public:
  19. /*!
  20. Constructor
  21. */
  22. explicit PurchasableItem(ProductListModel &model,
  23. const QString &productID,
  24. const QString &productUrl);
  25. protected:
  26. /*!
  27. base class abstract methods implementation
  28. */
  29. void setUnlocked(QString *purchaseTicket);
  30. bool isPurchased();
  31. };
  32. #endif // PURCHASABLEITEM_H