From e985f7e545f4739493965aad69bbecb136dc9346 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 16 Jun 2011 19:02:47 +0000 Subject: TQt4 port kdewebdev This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- klinkstatus/src/engine/linkchecker.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'klinkstatus/src/engine/linkchecker.h') diff --git a/klinkstatus/src/engine/linkchecker.h b/klinkstatus/src/engine/linkchecker.h index 168776d9..74cf9eb9 100644 --- a/klinkstatus/src/engine/linkchecker.h +++ b/klinkstatus/src/engine/linkchecker.h @@ -37,25 +37,26 @@ using namespace std; /** @author Paulo Moura Guedes */ -class LinkChecker : public QObject +class LinkChecker : public TQObject { Q_OBJECT + TQ_OBJECT public: - LinkChecker(LinkStatus* linkstatus, int time_out = 50, - TQObject *parent = 0, const char *name = 0); + LinkChecker(LinktqStatus* linkstatus, int time_out = 50, + TQObject *tqparent = 0, const char *name = 0); ~LinkChecker(); //virtual void run(); void check(); void setSearchManager(SearchManager* search_manager); - LinkStatus const* linkStatus() const; + LinktqStatus const* linktqStatus() const; static bool hasAnchor(KHTMLPart* html_part, TQString const& anchor); signals: - void transactionFinished(const LinkStatus * linkstatus, + void transactionFinished(const LinktqStatus * linkstatus, LinkChecker * checker); void jobFinnished(LinkChecker * checker); @@ -75,8 +76,8 @@ protected: private: - LinkStatus::Status getHttpStatus() const; - void checkRef(LinkStatus const* linkstatus_parent); + LinktqStatus::tqStatus getHttptqStatus() const; + void checkRef(LinktqStatus const* linkstatus_parent); void checkRef(KURL const& url); void killJob(); /** @@ -90,7 +91,7 @@ private: private: SearchManager* search_manager_; - LinkStatus* const linkstatus_; + LinktqStatus* const linkstatus_; KIO::TransferJob* t_job_; int time_out_; LinkChecker* checker_; @@ -119,7 +120,7 @@ private: static int count_; // debug attribute that counts how many links were checked }; -inline LinkStatus const* LinkChecker::linkStatus() const +inline LinktqStatus const* LinkChecker::linktqStatus() const { return linkstatus_; } -- cgit v1.2.1