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/linkstatus.h | 44 ++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'klinkstatus/src/engine/linkstatus.h') diff --git a/klinkstatus/src/engine/linkstatus.h b/klinkstatus/src/engine/linkstatus.h index 59a45751..7ec26ca9 100644 --- a/klinkstatus/src/engine/linkstatus.h +++ b/klinkstatus/src/engine/linkstatus.h @@ -43,11 +43,11 @@ using namespace std; class Node; -class LinkStatus +class LinktqStatus { public: - enum Status { + enum tqStatus { UNDETERMINED, SUCCESSFULL, BROKEN, @@ -59,29 +59,29 @@ public: MALFORMED }; - LinkStatus(); - LinkStatus(KURL const& absolute_url); - LinkStatus(Node* node, LinkStatus* parent); - ~LinkStatus(); + LinktqStatus(); + LinktqStatus(KURL const& absolute_url); + LinktqStatus(Node* node, LinktqStatus* tqparent); + ~LinktqStatus(); void save(TQDomElement& element) const; void reset(); void setRootUrl(KURL const& url); - void setStatus(Status status); + void settqStatus(tqStatus status); void setDepth(uint depth); - void setParent(LinkStatus* parent); + void setParent(LinktqStatus* tqparent); void setOriginalUrl(TQString const& url_original); void setLabel(TQString const& label); void setAbsoluteUrl(KURL const& url_absoluto); void setDocHtml(TQString const& doc_html); void setHttpHeader(HttpResponseHeader const& cabecalho_http); - void setStatusText(TQString const& statusText); // FIXME Legacy. This should be eliminated in favor of LinkStatus::Status + void setStatusText(TQString const& statusText); // FIXME Legacy. This should be eliminated in favor of LinktqStatus::tqStatus void setError(TQString const& error); void setIsRoot(bool flag); void setErrorOccurred(bool houve_error); void setIsRedirection(bool e_redirection); - void setRedirection(LinkStatus* redirection); + void setRedirection(LinktqStatus* redirection); void setNode(Node* node); void setChildrenNodes(vector const& nodes); void addChildNode(Node* node); @@ -102,25 +102,25 @@ public: void addReferrer(KURL const& url); KURL const& rootUrl() const; - Status const& status() const; + tqStatus const& status() const; uint depth() const; bool local() const; // linkstatus.paradigma.co.pt == paradigma.co.pt bool isLocalRestrict() const; // linkstatus.paradigma.co.pt != paradigma.co.pt - LinkStatus const* parent() const; + LinktqStatus const* tqparent() const; TQString const& originalUrl() const; TQString const& label() const; KURL const& absoluteUrl() const; TQString const& docHtml() const; HttpResponseHeader const& httpHeader() const; HttpResponseHeader& httpHeader(); - TQString statusText() const; // FIXME Legacy. This should be eliminated in favor of LinkStatus::Status + TQString statusText() const; // FIXME Legacy. This should be eliminated in favor of LinktqStatus::tqStatus TQString const& error() const; bool isRoot() const; bool errorOccurred() const; bool isRedirection() const; - LinkStatus* redirection() const; + LinktqStatus* redirection() const; Node* node() const; - vector const& childrenNodes() const; + vector const& tqchildrenNodes() const; TQString const toString() const; bool checked() const; int externalDomainDepth() const; @@ -137,19 +137,19 @@ public: TreeViewItem* treeViewItem() const; TQValueVector const& referrers() const; - static LinkStatus* lastRedirection(LinkStatus* ls); + static LinktqStatus* lastRedirection(LinktqStatus* ls); private: /** - Load some atributes in function of his parent node. + Load some atributes in function of his tqparent node. */ void loadNode(); private: KURL root_url_; // The URL which made the search start - Status status_; + tqStatus status_; int depth_; int external_domain_depth_; // Para se poder escolher explorar domains diferentes ate n depth TQString original_url_; @@ -157,14 +157,14 @@ private: KURL absolute_url_; TQString doc_html_; HttpResponseHeader http_header_; - TQString status_text_; // FIXME Legacy. This should be eliminated in favor of LinkStatus::Status + TQString status_text_; // FIXME Legacy. This should be eliminated in favor of LinktqStatus::tqStatus TQString error_; bool is_root_; bool error_occurred_; bool is_redirection_; - vector children_nodes_; - LinkStatus* parent_; - LinkStatus* redirection_; + vector tqchildren_nodes_; + LinktqStatus* tqparent_; + LinktqStatus* redirection_; bool checked_; bool only_check_header_; bool malformed_; -- cgit v1.2.1