summaryrefslogtreecommitdiffstats
path: root/klinkstatus/src/engine/linkchecker.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
commite985f7e545f4739493965aad69bbecb136dc9346 (patch)
tree54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /klinkstatus/src/engine/linkchecker.h
parentf7670c198945adc3b95ad69a959fe5f8ae55b493 (diff)
downloadtdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz
tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip
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
Diffstat (limited to 'klinkstatus/src/engine/linkchecker.h')
-rw-r--r--klinkstatus/src/engine/linkchecker.h19
1 files changed, 10 insertions, 9 deletions
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_;
}