/* * 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 SessionsIconHolder : QObject { Q_OBJECT private: QHash iconsResource; QHash iconsFile; QHash iconsURL; public: SessionsIconHolder(); QIcon getIconFromResource(const QString& name); QIcon getIconFromFile(const QString& filename); QIcon getIconFromURL(const QUrl& url); public slots: void afterDownload(QString& iconName, QByteArray downloadedData); }; #endif /* SESSIONSICONHOLDER_H_ */