blob: 336ce40be01cccdc30fb9acf813f4607d30691f7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/*
* sessionsiconholder.h
*
* Created on: Mar 7, 2014
* Author: nils
*/
#ifndef SESSIONSICONHOLDER_H_
#define SESSIONSICONHOLDER_H_
#include <QHash>
#include <QtDebug>
#include <QFile>
#include <QIcon>
#include <QResource>
#include <QFileInfo>
#include "globals.h"
#include "sessionsiconholder.h"
#include "FileDownloader.h"
class SessionsIconHolder : QObject {
Q_OBJECT
private:
QHash<QString, QIcon> iconsResource;
QHash<QString, QIcon> iconsFile;
QHash<QString, QIcon> 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_ */
|