/* * sessionsiconholder.h * * Created on: Mar 7, 2014 * Author: nils */ #ifndef SESSIONSICONHOLDER_H_ #define SESSIONSICONHOLDER_H_ #include #include #include #include #include #include #include "globals.h" #include "sessionsiconholder.h" #include "FileDownloader.h" class SessionTreeModel; class SessionsIconHolder : QObject { Q_OBJECT private: QHash icons; SessionTreeModel& treeModel; public: SessionsIconHolder(SessionTreeModel& sessionTreeModel); QIcon getIcon(const QString& name); QIcon getIcon(const QUrl& url); public slots: void afterDownload(QString& iconName, QByteArray downloadedData); }; #endif /* SESSIONSICONHOLDER_H_ */