itemstatusimageprovider.h 725 B

1234567891011121314151617181920212223242526272829
  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 ITEMSTATUSIMAGEPROVIDER_H
  9. #define ITEMSTATUSIMAGEPROVIDER_H
  10. #include <QDeclarativeImageProvider>
  11. #include <QImage>
  12. class DeclarativePurchaseListModel;
  13. class ItemstatusImageProvider : public QDeclarativeImageProvider
  14. {
  15. public:
  16. ItemstatusImageProvider(DeclarativePurchaseListModel& model);
  17. QImage requestImage ( const QString & id, QSize * size, const QSize & requestedSize );
  18. private:
  19. DeclarativePurchaseListModel *m_model;
  20. };
  21. #endif // ITEMSTATUSIMAGEPROVIDER_H