QtWebIconDatabaseClient.h [plain text]
#ifndef QtWebIconDatabaseClient_h
#define QtWebIconDatabaseClient_h
#include "qwebkitglobal.h"
#include <QtCore/QObject>
#include <WKIconDatabase.h>
QT_BEGIN_NAMESPACE
class QImage;
class QUrl;
QT_END_NAMESPACE
namespace WebKit {
class QtWebIconDatabaseClient : public QObject {
Q_OBJECT
public:
QtWebIconDatabaseClient(WKContextRef);
~QtWebIconDatabaseClient();
QImage iconImageForPageURL(const QString&);
void retainIconForPageURL(const QString&);
void releaseIconForPageURL(const QString&);
static unsigned updateID();
public:
Q_SIGNAL void iconChangedForPageURL(const QString& pageURL);
private:
static void didChangeIconForPageURL(WKIconDatabaseRef, WKURLRef pageURL, const void* clientInfo);
WKIconDatabaseRef m_iconDatabase;
};
}
#endif