summaryrefslogtreecommitdiffstats
path: root/klinkstatus/src/ui/resultview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'klinkstatus/src/ui/resultview.cpp')
-rw-r--r--klinkstatus/src/ui/resultview.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/klinkstatus/src/ui/resultview.cpp b/klinkstatus/src/ui/resultview.cpp
index 737b901b..907559a1 100644
--- a/klinkstatus/src/ui/resultview.cpp
+++ b/klinkstatus/src/ui/resultview.cpp
@@ -20,7 +20,7 @@
#include <kiconloader.h>
const TQString ResultView::URL_LABEL = "URL";
-const TQString ResultView::STATUS_LABEL = "Status";
+const TQString ResultView::STATUS_LABEL = "tqStatus";
const TQString ResultView::MARKUP_LABEL = "Markup";
const TQString ResultView::LINK_LABEL_LABEL = "Label";
@@ -69,31 +69,31 @@ void ResultView::setColumns(TQStringList const& columns)
number_of_columns_ = columns.size();
}
-bool ResultView::displayableWithStatus(LinkStatus const* ls, Status const& status)
+bool ResultView::displayableWithtqStatus(LinktqStatus const* ls, tqStatus const& status)
{
if(status == ResultView::good)
{
return
- ls->status() == LinkStatus::SUCCESSFULL ||
- ls->status() == LinkStatus::HTTP_REDIRECTION;
+ ls->status() == LinktqStatus::SUCCESSFULL ||
+ ls->status() == LinktqStatus::HTTP_REDIRECTION;
}
else if(status == ResultView::bad)
{
return
- ls->status() == LinkStatus::BROKEN ||
- ls->status() == LinkStatus::HTTP_CLIENT_ERROR ||
- ls->status() == LinkStatus::HTTP_SERVER_ERROR;
+ ls->status() == LinktqStatus::BROKEN ||
+ ls->status() == LinktqStatus::HTTP_CLIENT_ERROR ||
+ ls->status() == LinktqStatus::HTTP_SERVER_ERROR;
}
else if(status == ResultView::malformed)
{
- return ls->status() == LinkStatus::MALFORMED;
+ return ls->status() == LinktqStatus::MALFORMED;
}
else if(status == ResultView::undetermined)
{
return
- ls->status() == LinkStatus::UNDETERMINED ||
- ls->status() == LinkStatus::TIMEOUT ||
- ls->status() == LinkStatus::NOT_SUPPORTED;
+ ls->status() == LinktqStatus::UNDETERMINED ||
+ ls->status() == LinktqStatus::TIMEOUT ||
+ ls->status() == LinktqStatus::NOT_SUPPORTED;
}
else
return true;
@@ -102,8 +102,8 @@ bool ResultView::displayableWithStatus(LinkStatus const* ls, Status const& statu
// ******************************* ResultViewItem *****************************
-ResultViewItem::ResultViewItem(LinkStatus const* linkstatus, int column_index)
- : ls_((LinkStatus*)linkstatus), column_index_(column_index)
+ResultViewItem::ResultViewItem(LinktqStatus const* linkstatus, int column_index)
+ : ls_((LinktqStatus*)linkstatus), column_index_(column_index)
{
Q_ASSERT(ls_);
Q_ASSERT(column_index_ > 0);
@@ -123,7 +123,7 @@ int ResultViewItem::columnIndex() const
return column_index_;
}
-LinkStatus const* ResultViewItem::linkStatus() const
+LinktqStatus const* ResultViewItem::linktqStatus() const
{
Q_ASSERT(ls_);
return ls_;
@@ -131,47 +131,47 @@ LinkStatus const* ResultViewItem::linkStatus() const
TQColor const& ResultViewItem::textStatusColor() const
{
- if(linkStatus()->errorOccurred())
+ if(linktqStatus()->errorOccurred())
{
- //kdDebug(23100) << "ERROR: " << linkStatus()->error() << ": " << linkStatus()->absoluteUrl().prettyURL() << endl;
- if(linkStatus()->error() == i18n( "Javascript not supported" ))
- return Qt::lightGray;
+ //kdDebug(23100) << "ERROR: " << linktqStatus()->error() << ": " << linktqStatus()->absoluteUrl().prettyURL() << endl;
+ if(linktqStatus()->error() == i18n( "Javascript not supported" ))
+ return TQt::lightGray;
else
- return Qt::red;
+ return TQt::red;
}
- else if(linkStatus()->absoluteUrl().hasRef())
- return Qt::blue;
+ else if(linktqStatus()->absoluteUrl().hasRef())
+ return TQt::blue;
- else if(!linkStatus()->absoluteUrl().protocol().startsWith("http"))
- return Qt::darkGreen;
+ else if(!linktqStatus()->absoluteUrl().protocol().startsWith("http"))
+ return TQt::darkGreen;
else
{
- TQString status_code(TQString::number(linkStatus()->httpHeader().statusCode()));
+ TQString status_code(TQString::number(linktqStatus()->httpHeader().statusCode()));
if(status_code[0] == '0')
{
kdWarning(23100) << "status code == 0: " << endl;
- kdWarning(23100) << linkStatus()->toString() << endl;
- kdWarning(23100) << linkStatus()->httpHeader().toString() << endl;
+ kdWarning(23100) << linktqStatus()->toString() << endl;
+ kdWarning(23100) << linktqStatus()->httpHeader().toString() << endl;
}
//Q_ASSERT(status_code[0] != '0');
if(status_code[0] == '5')
- return Qt::darkMagenta;
+ return TQt::darkMagenta;
else if(status_code[0] == '4')
- return Qt::red;
+ return TQt::red;
else if(status_code[0] == '3')
- return Qt::blue;
+ return TQt::blue;
else if(status_code[0] == '2')
- return Qt::darkGreen;
+ return TQt::darkGreen;
else
- return Qt::red;
+ return TQt::red;
}
}