2006-06-19 10:42:32 +00:00
|
|
|
// -*- c-basic-offset: 4; indent-tabs-mode:nil -*-
|
2003-10-06 18:31:25 +00:00
|
|
|
// vim: set ts=4 sts=4 sw=4 et:
|
2002-09-30 12:36:56 +00:00
|
|
|
/* This file is part of the KDE project
|
2003-01-21 16:16:53 +00:00
|
|
|
Copyright (C) 2002-2003 Alexander Kellett <lypanov@kde.org>
|
2002-09-30 12:36:56 +00:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
2007-12-16 15:37:21 +00:00
|
|
|
modify it under the terms of the GNU General Public License as
|
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
the License, or (at your option) version 3.
|
2002-09-30 12:36:56 +00:00
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2007-12-16 15:37:21 +00:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2002-09-30 12:36:56 +00:00
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2007-12-16 15:37:21 +00:00
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>
|
2002-09-30 12:36:56 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __favicons_h
|
|
|
|
#define __favicons_h
|
|
|
|
|
|
|
|
#include <kbookmark.h>
|
|
|
|
|
2003-01-21 16:16:53 +00:00
|
|
|
#include "bookmarkiterator.h"
|
|
|
|
|
|
|
|
class FavIconsItrHolder : public BookmarkIteratorHolder {
|
|
|
|
public:
|
2010-04-26 17:29:02 +00:00
|
|
|
FavIconsItrHolder(QObject* parent, KBookmarkModel* model);
|
2003-01-21 16:16:53 +00:00
|
|
|
};
|
|
|
|
|
2010-04-08 12:16:33 +00:00
|
|
|
class KBookmarkModel;
|
2003-01-21 16:16:53 +00:00
|
|
|
class FavIconUpdater;
|
|
|
|
|
|
|
|
class FavIconsItr : public BookmarkIterator
|
2002-09-30 12:36:56 +00:00
|
|
|
{
|
2003-01-21 16:16:53 +00:00
|
|
|
Q_OBJECT
|
2002-09-30 12:36:56 +00:00
|
|
|
|
|
|
|
public:
|
2010-04-17 16:01:46 +00:00
|
|
|
FavIconsItr(BookmarkIteratorHolder* holder, const QList<KBookmark>& bks);
|
2003-01-21 16:16:53 +00:00
|
|
|
~FavIconsItr();
|
2002-09-30 12:36:56 +00:00
|
|
|
|
2010-04-18 14:24:11 +00:00
|
|
|
virtual void cancel();
|
|
|
|
|
2006-01-20 11:09:06 +00:00
|
|
|
public Q_SLOTS:
|
2010-04-18 14:24:11 +00:00
|
|
|
void slotDone(bool succeeded, const QString& errorString);
|
2002-09-30 12:36:56 +00:00
|
|
|
|
2003-03-08 13:22:06 +00:00
|
|
|
protected:
|
2003-03-03 20:52:39 +00:00
|
|
|
virtual void doAction();
|
2003-03-08 13:22:06 +00:00
|
|
|
virtual bool isApplicable(const KBookmark &bk) const;
|
|
|
|
|
|
|
|
private:
|
2007-12-16 01:47:07 +00:00
|
|
|
void setStatus(const QString & status);
|
2003-01-21 16:16:53 +00:00
|
|
|
FavIconUpdater *m_updater;
|
2007-12-16 01:47:07 +00:00
|
|
|
QString m_oldStatus;
|
2002-09-30 12:36:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|