libkonq
favicons.cpp
Go to the documentation of this file.
43 static int dfavi() { static int s_area = KDebug::registerArea("FavIcons", false); return s_area; }
80 if (ext == QLatin1String(".ico") || ext == QLatin1String(".png") || ext == QLatin1String(".xpm"))
125 d->config = new KConfig(KStandardDirs::locateLocal("data", QLatin1String("konqueror/faviconrc")));
156 QString icon = (iconURL ? *iconURL : d->config->group(QString()).readEntry(simplifiedURL, QString()));
207 const QString iconFile = d->faviconsDir + QLatin1String("favicons/") + url.host() + QLatin1String(".png");
249 // Testcase (as of june 2008, at least): http://planet-soc.com/favicon.ico, 136K and strange format.
void truncate(int position)
void infoMessage(QString iconURL, QString msg)
Progress info while downloading an icon.
bool save(const QString &fileName, const char *format, int quality) const
void downloadHostIcon(const KUrl &url)
Downloads the icon for a given host if it was not downloaded before or the download was too long ago...
Definition: favicons.cpp:204
bool isNull() const
bool exists() const
QString & remove(int position, int n)
void iconChanged(bool isHost, QString hostOrURL, QString iconName)
Emitted once a new icon is available, for a host or url.
void clear()
QString number(int n, int base)
void error(bool isHost, QString hostOrURL, QString errorString)
Emitted if an error occurred while downloading the icon for the given host or url.
bool isEmpty() const
QString iconForUrl(const KUrl &url)
Looks up an icon name for a given URL.
Definition: favicons.cpp:147
FavIconsModule(QObject *parent, const QList< QVariant > &)
Definition: favicons.cpp:112
QString right(int n) const
K_PLUGIN_FACTORY(FavIconsFactory, registerPlugin< FavIconsModule >();) static QString portForUrl(const KUrl &url)
Definition: favicons.cpp:45
int length() const
char * data()
void setIconForUrl(const KUrl &url, const KUrl &iconURL)
Associates an icon with the given URL.
Definition: favicons.cpp:185
int size() const
QByteArray encodeName(const QString &fileName)
void forceDownloadHostIcon(const KUrl &url)
Downloads the icon for a given host, even if we tried very recently.
Definition: favicons.cpp:215
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:07:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:07:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.