File: IconCache.h

package info (click to toggle)
launchy 2.5-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 4,532 kB
  • sloc: cpp: 11,735; sh: 162; makefile: 45
file content (29 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (3)
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
#ifndef ICONCACHE_H
#define ICONCACHE_H
#include <QtGui>
#include <QtNetwork>
class IconCache : public QObject
{
	Q_OBJECT

public:
	IconCache(const QString& path);

	QString getIconPath(const QString& site);

public slots:
	void finished(QNetworkReply*);
	void query(QUrl url);

signals:
	void findIcon(QUrl url);


private:
	QString cachePath;
	QNetworkAccessManager nam;
//	QEventLoop loop;
};


#endif // ICONCACHE_H