1 #pragma once 2 3 #include "imageprovider.h" 4 5 class ChannelManager; 6 7 class BadgeImageProvider : public ImageProvider { 8 Q_OBJECT 9 public: 10 BadgeImageProvider(); setChannelName(QString channelName)11 void setChannelName(QString channelName) { _channelName = channelName; } setChannelId(QString channelId)12 void setChannelId(QString channelId) { _channelId = channelId; } 13 virtual QString getCanonicalKey(QString key); 14 protected: 15 virtual const QUrl getUrlForKey(QString & key); 16 private: 17 QString _channelName; 18 QString _channelId; 19 }; 20 21 class BitsImageProvider : public ImageProvider { 22 Q_OBJECT 23 24 public: 25 BitsImageProvider(); setChannelId(int channelId)26 void setChannelId(int channelId) { _channelId = channelId; } 27 virtual QString getCanonicalKey(QString key); 28 protected: 29 virtual const QUrl getUrlForKey(QString & key); 30 private: 31 int _channelId; 32 }; 33