diff options
author | Timothy Pearson <[email protected]> | 2011-12-18 18:36:38 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-18 18:36:38 -0600 |
commit | 9445f97b426e97c6ce46de18fba4030da45d56df (patch) | |
tree | 5199825600092081f3256a8202f035b92612b109 /klinkstatus/src/engine/linkstatus_impl.h | |
parent | 1fffbdafa12271a1a635caf46777fb8acfb6f31b (diff) | |
download | tdewebdev-9445f97b426e97c6ce46de18fba4030da45d56df.tar.gz tdewebdev-9445f97b426e97c6ce46de18fba4030da45d56df.zip |
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'klinkstatus/src/engine/linkstatus_impl.h')
-rw-r--r-- | klinkstatus/src/engine/linkstatus_impl.h | 136 |
1 files changed, 68 insertions, 68 deletions
diff --git a/klinkstatus/src/engine/linkstatus_impl.h b/klinkstatus/src/engine/linkstatus_impl.h index f8d6bfd5..52c5d92e 100644 --- a/klinkstatus/src/engine/linkstatus_impl.h +++ b/klinkstatus/src/engine/linkstatus_impl.h @@ -18,16 +18,16 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -inline LinktqStatus::LinktqStatus() - : status_(LinktqStatus::UNDETERMINED), depth_(-1), external_domain_depth_(-1), is_root_(false), +inline LinkStatus::LinkStatus() + : status_(LinkStatus::UNDETERMINED), depth_(-1), external_domain_depth_(-1), is_root_(false), error_occurred_(false), is_redirection_(false), parent_(0), redirection_(0), checked_(false), only_check_header_(true), malformed_(false), node_(0), has_base_URI_(false), has_html_doc_title_(false), ignored_(false), mimetype_(""), is_error_page_(false), tree_view_item_(0) {} -inline LinktqStatus::LinktqStatus(KURL const& absolute_url) - : status_(LinktqStatus::UNDETERMINED), depth_(-1), external_domain_depth_(-1), is_root_(false), +inline LinkStatus::LinkStatus(KURL const& absolute_url) + : status_(LinkStatus::UNDETERMINED), depth_(-1), external_domain_depth_(-1), is_root_(false), error_occurred_(false), is_redirection_(false), parent_(0), redirection_(0), checked_(false), only_check_header_(true), malformed_(false), node_(0), has_base_URI_(false), has_html_doc_title_(false), ignored_(false), @@ -36,8 +36,8 @@ inline LinktqStatus::LinktqStatus(KURL const& absolute_url) setAbsoluteUrl(absolute_url); } -inline LinktqStatus::LinktqStatus(Node* node, LinktqStatus* parent) - : status_(LinktqStatus::UNDETERMINED), depth_(-1), external_domain_depth_(-1), is_root_(false), +inline LinkStatus::LinkStatus(Node* node, LinkStatus* parent) + : status_(LinkStatus::UNDETERMINED), depth_(-1), external_domain_depth_(-1), is_root_(false), error_occurred_(false), is_redirection_(false), parent_(0), redirection_(0), checked_(false), only_check_header_(true), malformed_(false), node_(node), has_base_URI_(false), has_html_doc_title_(false), ignored_(false), @@ -50,22 +50,22 @@ inline LinktqStatus::LinktqStatus(Node* node, LinktqStatus* parent) setRootUrl(parent->rootUrl()); } -inline void LinktqStatus::setRootUrl(KURL const& url) +inline void LinkStatus::setRootUrl(KURL const& url) { root_url_ = url; } -inline void LinktqStatus::settqStatus(tqStatus status) +inline void LinkStatus::setStatus(Status status) { status_ = status; } -inline void LinktqStatus::setDepth(uint depth) +inline void LinkStatus::setDepth(uint depth) { depth_ = depth; } -inline void LinktqStatus::setParent(LinktqStatus* parent) +inline void LinkStatus::setParent(LinkStatus* parent) { Q_ASSERT(parent); @@ -73,105 +73,105 @@ inline void LinktqStatus::setParent(LinktqStatus* parent) addReferrer(parent->absoluteUrl()); } -inline void LinktqStatus::setAbsoluteUrl(KURL const& url_absoluto) +inline void LinkStatus::setAbsoluteUrl(KURL const& url_absoluto) { absolute_url_ = url_absoluto; } -inline void LinktqStatus::setOriginalUrl(TQString const& url_original) +inline void LinkStatus::setOriginalUrl(TQString const& url_original) { original_url_ = url_original; } -inline void LinktqStatus::setLabel(TQString const& label) +inline void LinkStatus::setLabel(TQString const& label) { label_ = label; } -inline void LinktqStatus::setDocHtml(TQString const& doc_html) +inline void LinkStatus::setDocHtml(TQString const& doc_html) { Q_ASSERT(!doc_html.isEmpty()); doc_html_ = doc_html; } -inline void LinktqStatus::setHttpHeader(HttpResponseHeader const& cabecalho_http) +inline void LinkStatus::setHttpHeader(HttpResponseHeader const& cabecalho_http) { http_header_ = cabecalho_http; } -inline void LinktqStatus::setStatusText(TQString const& status) +inline void LinkStatus::setStatusText(TQString const& status) { Q_ASSERT(!status.isEmpty()); status_text_ = status; } -inline void LinktqStatus::setError(TQString const& error) +inline void LinkStatus::setError(TQString const& error) { Q_ASSERT(!error.isEmpty()); error_ = error; } -inline void LinktqStatus::setErrorOccurred(bool houve_error) +inline void LinkStatus::setErrorOccurred(bool houve_error) { error_occurred_ = houve_error; } -inline void LinktqStatus::setIsRoot(bool flag) +inline void LinkStatus::setIsRoot(bool flag) { is_root_ = flag; label_ = i18n("ROOT"); } -inline void LinktqStatus::setRedirection(LinktqStatus* redirection) +inline void LinkStatus::setRedirection(LinkStatus* redirection) { Q_ASSERT(redirection != NULL); Q_ASSERT(isRedirection()); redirection_ = redirection; } -inline void LinktqStatus::setIsRedirection(bool e_redirection) +inline void LinkStatus::setIsRedirection(bool e_redirection) { is_redirection_ = e_redirection; } -inline void LinktqStatus::addChildNode(Node* node) +inline void LinkStatus::addChildNode(Node* node) { tqchildren_nodes_.push_back(node); } -inline void LinktqStatus::reserveMemoryForChildrenNodes(int n) +inline void LinkStatus::reserveMemoryForChildrenNodes(int n) { Q_ASSERT(n > 0); tqchildren_nodes_.reserve(n); } -inline void LinktqStatus::setChecked(bool flag) +inline void LinkStatus::setChecked(bool flag) { checked_ = flag; } -inline void LinktqStatus::setExternalDomainDepth(int p) +inline void LinkStatus::setExternalDomainDepth(int p) { Q_ASSERT(p >= -1); external_domain_depth_ = p; } -inline void LinktqStatus::setOnlyCheckHeader(bool flag) +inline void LinkStatus::setOnlyCheckHeader(bool flag) { only_check_header_= flag; } -inline void LinktqStatus::setHasBaseURI(bool flag) +inline void LinkStatus::setHasBaseURI(bool flag) { has_base_URI_ = flag; } -inline void LinktqStatus::setHasHtmlDocTitle(bool flag) +inline void LinkStatus::setHasHtmlDocTitle(bool flag) { has_html_doc_title_ = flag; } -inline void LinktqStatus::setBaseURI(KURL const& base_url) +inline void LinkStatus::setBaseURI(KURL const& base_url) { if(!base_url.isValid()) { @@ -186,7 +186,7 @@ inline void LinktqStatus::setBaseURI(KURL const& base_url) base_URI_ = base_url; } -inline void LinktqStatus::setHtmlDocTitle(TQString const& title) +inline void LinkStatus::setHtmlDocTitle(TQString const& title) { if(title.isNull() || title.isEmpty()) { @@ -199,34 +199,34 @@ inline void LinktqStatus::setHtmlDocTitle(TQString const& title) html_doc_title_ = title; } -inline void LinktqStatus::setIgnored(bool flag) +inline void LinkStatus::setIgnored(bool flag) { ignored_ = flag; } -inline void LinktqStatus::setMimeType(TQString const& mimetype) +inline void LinkStatus::setMimeType(TQString const& mimetype) { Q_ASSERT(!mimetype.isNull() && !mimetype.isEmpty()); mimetype_ = mimetype; } -inline void LinktqStatus::setIsErrorPage(bool flag) +inline void LinkStatus::setIsErrorPage(bool flag) { is_error_page_ = flag; } -inline void LinktqStatus::setIsLocalRestrict(bool flag) +inline void LinkStatus::setIsLocalRestrict(bool flag) { is_local_restrict_ = flag; } -inline void LinktqStatus::setTreeViewItem(TreeViewItem* tree_view_item) +inline void LinkStatus::setTreeViewItem(TreeViewItem* tree_view_item) { Q_ASSERT(tree_view_item); tree_view_item_ = tree_view_item; } -inline void LinktqStatus::addReferrer(KURL const& url) +inline void LinkStatus::addReferrer(KURL const& url) { Q_ASSERT(url.isValid()); @@ -236,67 +236,67 @@ inline void LinktqStatus::addReferrer(KURL const& url) -inline KURL const& LinktqStatus::rootUrl() const +inline KURL const& LinkStatus::rootUrl() const { return root_url_; } -inline LinktqStatus::tqStatus const& LinktqStatus::status() const +inline LinkStatus::Status const& LinkStatus::status() const { return status_; } -inline uint LinktqStatus::depth() const +inline uint LinkStatus::depth() const { return depth_; } -inline bool LinktqStatus::local() const +inline bool LinkStatus::local() const { return external_domain_depth_ == -1; } -inline bool LinktqStatus::isLocalRestrict() const +inline bool LinkStatus::isLocalRestrict() const { return is_local_restrict_; } -inline LinktqStatus const* LinktqStatus::parent() const +inline LinkStatus const* LinkStatus::parent() const { return parent_; } -inline TQString const& LinktqStatus::originalUrl() const +inline TQString const& LinkStatus::originalUrl() const { return original_url_; } -inline TQString const& LinktqStatus::label() const +inline TQString const& LinkStatus::label() const { return label_; } -inline KURL const& LinktqStatus::absoluteUrl() const +inline KURL const& LinkStatus::absoluteUrl() const { return absolute_url_; } -inline TQString const& LinktqStatus::docHtml() const +inline TQString const& LinkStatus::docHtml() const { return doc_html_; } -inline HttpResponseHeader const& LinktqStatus::httpHeader() const +inline HttpResponseHeader const& LinkStatus::httpHeader() const { return http_header_; } -inline HttpResponseHeader& LinktqStatus::httpHeader() +inline HttpResponseHeader& LinkStatus::httpHeader() { return http_header_; } -inline TQString LinktqStatus::statusText() const +inline TQString LinkStatus::statusText() const { if(errorOccurred()) return error(); @@ -314,103 +314,103 @@ inline TQString LinktqStatus::statusText() const } } -inline TQString const& LinktqStatus::error() const +inline TQString const& LinkStatus::error() const { return error_; } -inline bool LinktqStatus::isRoot() const +inline bool LinkStatus::isRoot() const { return is_root_; } -inline bool LinktqStatus::errorOccurred() const +inline bool LinkStatus::errorOccurred() const { return error_occurred_; } -inline bool LinktqStatus::isRedirection() const +inline bool LinkStatus::isRedirection() const { return is_redirection_; } -inline LinktqStatus* LinktqStatus::redirection() const +inline LinkStatus* LinkStatus::redirection() const { Q_ASSERT(isRedirection()); return redirection_; } -inline Node* LinktqStatus::node() const +inline Node* LinkStatus::node() const { //Q_ASSERT(node_); return node_; } -inline vector<Node*> const& LinktqStatus::tqchildrenNodes() const +inline vector<Node*> const& LinkStatus::tqchildrenNodes() const { return tqchildren_nodes_; } -inline bool LinktqStatus::checked() const +inline bool LinkStatus::checked() const { return checked_; } -inline int LinktqStatus::externalDomainDepth() const +inline int LinkStatus::externalDomainDepth() const { return external_domain_depth_; } -inline bool LinktqStatus::onlyCheckHeader() const +inline bool LinkStatus::onlyCheckHeader() const { return only_check_header_; } -inline bool LinktqStatus::hasBaseURI() const +inline bool LinkStatus::hasBaseURI() const { return has_base_URI_; } -inline bool LinktqStatus::hasHtmlDocTitle() const +inline bool LinkStatus::hasHtmlDocTitle() const { return has_html_doc_title_; } -inline KURL const& LinktqStatus::baseURI() const +inline KURL const& LinkStatus::baseURI() const { Q_ASSERT(hasBaseURI()); return base_URI_; } -inline TQString const& LinktqStatus::htmlDocTitle() const +inline TQString const& LinkStatus::htmlDocTitle() const { Q_ASSERT(has_html_doc_title_); return html_doc_title_; } -inline bool LinktqStatus::ignored() const +inline bool LinkStatus::ignored() const { return ignored_; } -inline TQString LinktqStatus::mimeType() const +inline TQString LinkStatus::mimeType() const { Q_ASSERT(!mimetype_.isNull()); return mimetype_; } -inline bool LinktqStatus::isErrorPage() const +inline bool LinkStatus::isErrorPage() const { return is_error_page_; } -inline TreeViewItem* LinktqStatus::treeViewItem() const +inline TreeViewItem* LinkStatus::treeViewItem() const { return tree_view_item_; } -inline TQValueVector<KURL> const& LinktqStatus::referrers() const +inline TQValueVector<KURL> const& LinkStatus::referrers() const { return referrers_; } |