diff options
Diffstat (limited to 'klinkstatus/src/engine/linkstatus.h')
-rw-r--r-- | klinkstatus/src/engine/linkstatus.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/klinkstatus/src/engine/linkstatus.h b/klinkstatus/src/engine/linkstatus.h index ac49801f..3880791f 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* parent); + ~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* parent); 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<Node*> 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* parent() 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<Node*> const& childrenNodes() const; + vector<Node*> const& tqchildrenNodes() const; TQString const toString() const; bool checked() const; int externalDomainDepth() const; @@ -137,7 +137,7 @@ public: TreeViewItem* treeViewItem() const; TQValueVector<KURL> const& referrers() const; - static LinkStatus* lastRedirection(LinkStatus* ls); + static LinktqStatus* lastRedirection(LinktqStatus* ls); private: @@ -149,7 +149,7 @@ private: 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<Node*> children_nodes_; - LinkStatus* parent_; - LinkStatus* redirection_; + vector<Node*> tqchildren_nodes_; + LinktqStatus* parent_; + LinktqStatus* redirection_; bool checked_; bool only_check_header_; bool malformed_; |