summaryrefslogtreecommitdiffstats
path: root/klinkstatus/src/engine/linkstatus.cpp
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/linkstatus.cpp
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/linkstatus.cpp')
-rw-r--r--klinkstatus/src/engine/linkstatus.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/klinkstatus/src/engine/linkstatus.cpp b/klinkstatus/src/engine/linkstatus.cpp
index 58841a63..cec4cd52 100644
--- a/klinkstatus/src/engine/linkstatus.cpp
+++ b/klinkstatus/src/engine/linkstatus.cpp
@@ -28,20 +28,20 @@
#include <tqdom.h>
-LinkStatus::~LinkStatus()
+LinktqStatus::~LinktqStatus()
{
//kdDebug(23100) << "|";
- for(uint i = 0; i != children_nodes_.size(); ++i)
+ for(uint i = 0; i != tqchildren_nodes_.size(); ++i)
{
- if(children_nodes_[i])
+ if(tqchildren_nodes_[i])
{
- delete children_nodes_[i];
- children_nodes_[i] = 0;
+ delete tqchildren_nodes_[i];
+ tqchildren_nodes_[i] = 0;
}
}
- children_nodes_.clear();
+ tqchildren_nodes_.clear();
if(isRedirection())
{
@@ -53,7 +53,7 @@ LinkStatus::~LinkStatus()
}
}
-void LinkStatus::reset()
+void LinktqStatus::reset()
{
depth_ = -1;
external_domain_depth_ = -1;
@@ -71,16 +71,16 @@ void LinkStatus::reset()
http_header_ = HttpResponseHeader();
error_ = "";
- for(uint i = 0; i != children_nodes_.size(); ++i)
+ for(uint i = 0; i != tqchildren_nodes_.size(); ++i)
{
- if(children_nodes_[i])
+ if(tqchildren_nodes_[i])
{
- delete children_nodes_[i];
- children_nodes_[i] = 0;
+ delete tqchildren_nodes_[i];
+ tqchildren_nodes_[i] = 0;
}
}
- children_nodes_.clear();
+ tqchildren_nodes_.clear();
if(isRedirection())
{
@@ -90,31 +90,31 @@ void LinkStatus::reset()
redirection_ = 0;
}
}
- Q_ASSERT(!parent_);
+ Q_ASSERT(!tqparent_);
base_URI_ = "";
}
-TQString const LinkStatus::toString() const
+TQString const LinktqStatus::toString() const
{
TQString aux;
if(!is_root_)
{
- Q_ASSERT(parent_);
- aux += i18n( "Parent: %1" ).arg( parent()->absoluteUrl().prettyURL() ) + "\n";
+ Q_ASSERT(tqparent_);
+ aux += i18n( "Parent: %1" ).tqarg( tqparent()->absoluteUrl().prettyURL() ) + "\n";
}
Q_ASSERT(!original_url_.isNull());
- aux += i18n( "URL: %1" ).arg( absoluteUrl().prettyURL() ) + "\n";
- aux += i18n( "Original URL: %1" ).arg( originalUrl() ) + "\n";
+ aux += i18n( "URL: %1" ).tqarg( absoluteUrl().prettyURL() ) + "\n";
+ aux += i18n( "Original URL: %1" ).tqarg( originalUrl() ) + "\n";
if(node())
- aux += i18n( "Node: %1" ).arg( node()->content() ) + "\n";
+ aux += i18n( "Node: %1" ).tqarg( node()->content() ) + "\n";
return aux;
}
-LinkStatus* LinkStatus::lastRedirection(LinkStatus* ls)
+LinktqStatus* LinktqStatus::lastRedirection(LinktqStatus* ls)
{
if(ls->isRedirection())
if(ls->redirection())
@@ -125,7 +125,7 @@ LinkStatus* LinkStatus::lastRedirection(LinkStatus* ls)
return ls;
}
-void LinkStatus::loadNode()
+void LinktqStatus::loadNode()
{
Q_ASSERT(node_);
@@ -136,32 +136,32 @@ void LinkStatus::loadNode()
{
setErrorOccurred(true);
setError(i18n( "Malformed" ));
- setStatus(LinkStatus::MALFORMED);
+ settqStatus(LinktqStatus::MALFORMED);
kdDebug(23100) << "Malformed:" << endl;
kdDebug(23100) << "Node: " << node()->content() << endl;
//kdDebug(23100) << toString() << endl; // probable segfault
}
}
-bool LinkStatus::malformed() const // don't inline please (#include "node.h")
+bool LinktqStatus::malformed() const // don't inline please (#include "node.h")
{
return (malformed_ || node_->malformed());
}
-void LinkStatus::setChildrenNodes(vector<Node*> const& nodes) // don't inline please (#include "node.h")
+void LinktqStatus::setChildrenNodes(vector<Node*> const& nodes) // don't inline please (#include "node.h")
{
- children_nodes_.reserve(nodes.size());
- children_nodes_ = nodes;
+ tqchildren_nodes_.reserve(nodes.size());
+ tqchildren_nodes_ = nodes;
}
-void LinkStatus::setMalformed(bool flag)
+void LinktqStatus::setMalformed(bool flag)
{
malformed_ = flag;
if(flag)
{
setErrorOccurred(true);
setError(i18n( "Malformed" ));
- setStatus(LinkStatus::MALFORMED);
+ settqStatus(LinktqStatus::MALFORMED);
kdDebug(23100) << "Malformed!" << endl;
kdDebug(23100) << node()->content() << endl;
//kdDebug(23100) << toString() << endl; // probable segfault
@@ -170,11 +170,11 @@ void LinkStatus::setMalformed(bool flag)
{
setErrorOccurred(false);
setError("");
- setStatus(LinkStatus::UNDETERMINED);
+ settqStatus(LinktqStatus::UNDETERMINED);
}
}
-void LinkStatus::save(TQDomElement& element) const
+void LinktqStatus::save(TQDomElement& element) const
{
TQDomElement child_element = element.ownerDocument().createElement("link");
@@ -186,7 +186,7 @@ void LinkStatus::save(TQDomElement& element) const
// <status>
tmp_1 = element.ownerDocument().createElement("status");
tmp_1.setAttribute("broken",
- ResultView::displayableWithStatus(this, ResultView::bad) ?
+ ResultView::displayableWithtqStatus(this, ResultView::bad) ?
"true" : "false");
tmp_1.appendChild(element.ownerDocument().createTextNode(statusText()));
child_element.appendChild(tmp_1);