diff options
Diffstat (limited to 'klinkstatus/src/engine/linkstatus.h')
-rw-r--r-- | klinkstatus/src/engine/linkstatus.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/klinkstatus/src/engine/linkstatus.h b/klinkstatus/src/engine/linkstatus.h index 3880791f..693a95fc 100644 --- a/klinkstatus/src/engine/linkstatus.h +++ b/klinkstatus/src/engine/linkstatus.h @@ -43,11 +43,11 @@ using namespace std; class Node; -class LinktqStatus +class LinkStatus { public: - enum tqStatus { + enum Status { UNDETERMINED, SUCCESSFULL, BROKEN, @@ -59,29 +59,29 @@ public: MALFORMED }; - LinktqStatus(); - LinktqStatus(KURL const& absolute_url); - LinktqStatus(Node* node, LinktqStatus* parent); - ~LinktqStatus(); + LinkStatus(); + LinkStatus(KURL const& absolute_url); + LinkStatus(Node* node, LinkStatus* parent); + ~LinkStatus(); void save(TQDomElement& element) const; void reset(); void setRootUrl(KURL const& url); - void settqStatus(tqStatus status); + void setStatus(Status status); void setDepth(uint depth); - void setParent(LinktqStatus* parent); + void setParent(LinkStatus* 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 LinktqStatus::tqStatus + void setStatusText(TQString const& statusText); // FIXME Legacy. This should be eliminated in favor of LinkStatus::Status void setError(TQString const& error); void setIsRoot(bool flag); void setErrorOccurred(bool houve_error); void setIsRedirection(bool e_redirection); - void setRedirection(LinktqStatus* redirection); + void setRedirection(LinkStatus* redirection); void setNode(Node* node); void setChildrenNodes(vector<Node*> const& nodes); void addChildNode(Node* node); @@ -102,23 +102,23 @@ public: void addReferrer(KURL const& url); KURL const& rootUrl() const; - tqStatus const& status() const; + Status 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 - LinktqStatus const* parent() const; + LinkStatus 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 LinktqStatus::tqStatus + TQString statusText() const; // FIXME Legacy. This should be eliminated in favor of LinkStatus::Status TQString const& error() const; bool isRoot() const; bool errorOccurred() const; bool isRedirection() const; - LinktqStatus* redirection() const; + LinkStatus* redirection() const; Node* node() const; vector<Node*> const& tqchildrenNodes() const; TQString const toString() const; @@ -137,7 +137,7 @@ public: TreeViewItem* treeViewItem() const; TQValueVector<KURL> const& referrers() const; - static LinktqStatus* lastRedirection(LinktqStatus* ls); + static LinkStatus* lastRedirection(LinkStatus* ls); private: @@ -149,7 +149,7 @@ private: private: KURL root_url_; // The URL which made the search start - tqStatus status_; + Status 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 LinktqStatus::tqStatus + TQString status_text_; // FIXME Legacy. This should be eliminated in favor of LinkStatus::Status TQString error_; bool is_root_; bool error_occurred_; bool is_redirection_; vector<Node*> tqchildren_nodes_; - LinktqStatus* parent_; - LinktqStatus* redirection_; + LinkStatus* parent_; + LinkStatus* redirection_; bool checked_; bool only_check_header_; bool malformed_; |