2
* Copyright (C) 2011 Canonical, Ltd.
5
* Olivier Tilloy <olivier.tilloy@canonical.com>
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; version 3.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
26
#include <QStringList>
30
class WebFavorite : public QObject
35
WebFavorite(const QUrl& url, QObject* parent=0);
38
const QString& desktopFile() const;
42
QString m_desktopFile;
45
QStringList m_favicons;
46
QStringList::iterator m_current_favicon;
48
static QString computeUrlHash(const QUrl& url);
50
void writeDesktopFile(const QByteArray& contents) const;
51
void modifyDesktopFile(const QString& key, const QString& value) const;
54
void tryNextFavicon();
57
void slotFetchPageFinished(QNetworkReply*);
58
void slotFetchFaviconFinished(QNetworkReply*);
61
#endif // WebFavorite_H