diff options
Diffstat (limited to 'klinkstatus/src/engine/searchmanager.h')
-rw-r--r-- | klinkstatus/src/engine/searchmanager.h | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/klinkstatus/src/engine/searchmanager.h b/klinkstatus/src/engine/searchmanager.h index 5f2410ac..e977eae4 100644 --- a/klinkstatus/src/engine/searchmanager.h +++ b/klinkstatus/src/engine/searchmanager.h @@ -18,8 +18,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef GESTOR_PESQUISA_H -#define GESTOR_PESQUISA_H +#ifndef GESTOR_PESTQUISA_H +#define GESTOR_PESTQUISA_H #include <kurl.h> @@ -41,9 +41,10 @@ using namespace std; typedef TQMap<TQString, KHTMLPart*> KHTMLPartMap; -class SearchManager: public QObject +class SearchManager: public TQObject { Q_OBJECT + TQ_OBJECT public: @@ -54,7 +55,7 @@ public: }; SearchManager(int max_simultaneous_connections = 3, int time_out = 50, - TQObject *parent = 0, const char *name = 0); + TQObject *tqparent = 0, const char *name = 0); ~SearchManager(); TQString toXML() const; @@ -94,12 +95,12 @@ public: SearchMode const& searchMode() const; bool checkRegularExpressions() const { return check_regular_expressions_; } bool existUrl(KURL const& url, KURL const& url_parent) const; - LinkStatus const* linkStatus(TQString const& s_url) const; + LinktqStatus const* linktqStatus(TQString const& s_url) const; int checkedLinks() const; TQTime timeElapsed() const; bool checkParentDirs() const; bool checkExternalLinks() const; - LinkStatus const* linkStatusRoot() const; + LinktqStatus const* linkStatusRoot() const; int maxSimultaneousConnections() const; int timeOut() const; @@ -109,20 +110,20 @@ public: private: void checkRoot(); - void checkVectorLinks(vector<LinkStatus*> const& links); // corresponde a um no de um nivel de depth - vector<LinkStatus*> children(LinkStatus* link); + void checkVectorLinks(vector<LinktqStatus*> const& links); // corresponde a um no de um nivel de depth + vector<LinktqStatus*> tqchildren(LinktqStatus* link); void startSearch(); void continueSearch(); void finnish(); void pause(); - vector<LinkStatus*> const& nodeToAnalize() const; - vector<LinkStatus*> chooseLinks(vector<LinkStatus*> const& links); - void checkLinksSimultaneously(vector<LinkStatus*> const& links); + vector<LinktqStatus*> const& nodeToAnalize() const; + vector<LinktqStatus*> chooseLinks(vector<LinktqStatus*> const& links); + void checkLinksSimultaneously(vector<LinktqStatus*> const& links); void addLevel(); - bool checkableByDomain(KURL const& url, LinkStatus const& link_parent) const; - bool checkable(KURL const& url, LinkStatus const& link_parent) const; + bool checkableByDomain(KURL const& url, LinktqStatus const& link_parent) const; + bool checkable(KURL const& url, LinktqStatus const& link_parent) const; int maximumCurrentConnections() const; - bool onlyCheckHeader(LinkStatus* ls) const; + bool onlyCheckHeader(LinktqStatus* ls) const; /* Entende-se por domain vago um domain do tipo www.google.pt ou google.pt, pelo que, @@ -134,15 +135,15 @@ private: private slots: - void slotRootChecked(const LinkStatus * link, LinkChecker * checker); - void slotLinkChecked(const LinkStatus * link, LinkChecker * checker); + void slotRootChecked(const LinktqStatus * link, LinkChecker * checker); + void slotLinkChecked(const LinktqStatus * link, LinkChecker * checker); void slotSearchFinished(); void slotLinkCheckerFinnished(LinkChecker * checker); signals: - void signalRootChecked(const LinkStatus * link, LinkChecker * checker); - void signalLinkChecked(const LinkStatus * link, LinkChecker * checker); + void signalRootChecked(const LinktqStatus * link, LinkChecker * checker); + void signalLinkChecked(const LinktqStatus * link, LinkChecker * checker); void signalSearchFinished(); void signalSearchPaused(); void signalAddingLevelTotalSteps(uint number_of_links); @@ -154,7 +155,7 @@ private: int max_simultaneous_connections_; SearchMode search_mode_; - LinkStatus root_; + LinktqStatus root_; bool has_document_root_; KURL document_root_url_; // in case of non http protocols the document root must be explicitly given int depth_; @@ -184,7 +185,7 @@ private: bool check_regular_expressions_; uint number_of_level_links_; uint number_of_links_to_check_; - vector< vector< vector <LinkStatus*> > > search_results_; + vector< vector< vector <LinktqStatus*> > > search_results_; KHTMLPartMap html_parts_; }; |