2003-01-21 16:16:53 +00:00
|
|
|
/* This file is part of the KDE project
|
|
|
|
Copyright (C) 2000 David Faure <faure@kde.org>
|
|
|
|
Copyright (C) 2002-2003 Alexander Kellett <lypanov@kde.org>
|
|
|
|
|
|
|
|
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.
|
2003-01-21 16:16:53 +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.
|
2003-01-21 16:16:53 +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/>
|
2003-01-21 16:16:53 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __testlink_h
|
|
|
|
#define __testlink_h
|
|
|
|
|
2007-05-09 22:23:52 +00:00
|
|
|
#include <QtCore/QObject>
|
2003-01-21 16:16:53 +00:00
|
|
|
|
|
|
|
#include <kio/job.h>
|
|
|
|
#include <kbookmark.h>
|
|
|
|
|
|
|
|
#include "bookmarkiterator.h"
|
2010-04-08 12:16:33 +00:00
|
|
|
class KBookmarkModel;
|
2003-01-21 16:16:53 +00:00
|
|
|
|
|
|
|
class TestLinkItrHolder : public BookmarkIteratorHolder {
|
|
|
|
public:
|
2010-04-26 17:29:02 +00:00
|
|
|
TestLinkItrHolder(QObject* parent, KBookmarkModel* model);
|
2003-01-21 16:16:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class TestLinkItr : public BookmarkIterator
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2010-04-17 16:01:46 +00:00
|
|
|
TestLinkItr(BookmarkIteratorHolder* holder, const QList<KBookmark>& bks);
|
2003-01-21 16:16:53 +00:00
|
|
|
~TestLinkItr();
|
|
|
|
|
2010-04-18 14:24:11 +00:00
|
|
|
virtual void cancel();
|
|
|
|
|
2006-01-20 11:09:06 +00:00
|
|
|
public Q_SLOTS:
|
2006-04-26 11:01:08 +00:00
|
|
|
void slotJobResult(KJob *job);
|
2003-01-21 16:16:53 +00:00
|
|
|
|
|
|
|
private:
|
2007-12-16 01:47:07 +00:00
|
|
|
void setStatus(const QString & text);
|
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;
|
2003-01-21 16:16:53 +00:00
|
|
|
|
|
|
|
KIO::TransferJob *m_job;
|
2007-12-16 01:47:07 +00:00
|
|
|
QString m_oldStatus;
|
2003-01-21 16:16:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|