dialogwebcrawler.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 2.5
4  Written in Qt
5 
6  dialogwebcrawler.h - description
7  -------------------
8  copyright : (C) 2005-2018 by Dimitris B. Kalamaras
9  email : [email protected]
10  website: : http://dimitris.apeiro.gr
11  project site : http://socnetv.org
12 
13  ***************************************************************************/
14 
15 /*******************************************************************************
16 * This program is free software: you can redistribute it and/or modify *
17 * it under the terms of the GNU General Public License as published by *
18 * the Free Software Foundation, either version 3 of the License, or *
19 * (at your option) any later version. *
20 * *
21 * This program is distributed in the hope that it will be useful, *
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
24 * GNU General Public License for more details. *
25 * *
26 * You should have received a copy of the GNU General Public License *
27 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
28 ********************************************************************************/
29 
30 #ifndef WEBCRAWLERDIALOG_H
31 #define WEBCRAWLERDIALOG_H
32 
33 
34 #include <QDialog>
35 
36 #include "ui_dialogwebcrawler.h"
37 
38 
39 class DialogWebCrawler: public QDialog
40 {
41  Q_OBJECT
42 public:
43  explicit DialogWebCrawler (QWidget *parent = 0);
44 
45 public slots:
46  void checkErrors ();
47  void getUserChoices ();
48  QStringList parseTextEditInput(const QString &html);
49 signals:
50  void userChoices( const QString &seedUrl,
51  const QStringList &,
52  const QStringList &,
53  const QStringList &,
54  const int &maxNodes,
55  const int &maxLinks,
56  const bool &extLinks,
57  const bool &intLinks,
58  const bool &selfLinks,
59  const bool &delayedRequests
60  );
61  void webCrawlerDialogError(QString);
62 private:
63  Ui::DialogWebCrawler ui;
64  QString seedUrl ;
67  QStringList linkClasses;
68  QStringList urlPatternsIncluded;
69  QStringList urlPatternsExcluded;
70 
71 };
72 
73 
74 
75 #endif
Ui::DialogWebCrawler ui
Definition: dialogwebcrawler.h:63
bool extLinks
Definition: dialogwebcrawler.h:66
void getUserChoices()
gathers data from web crawler form
Definition: dialogwebcrawler.cpp:312
QStringList parseTextEditInput(const QString &html)
Parses HTML-formatted input string and returns a list of all strings inside.
Definition: dialogwebcrawler.cpp:255
void webCrawlerDialogError(QString)
Definition: dialogwebcrawler.h:39
int maxUrlsToCrawl
Definition: dialogwebcrawler.h:65
QStringList urlPatternsExcluded
Definition: dialogwebcrawler.h:69
DialogWebCrawler(QWidget *parent=0)
Definition: dialogwebcrawler.cpp:36
QStringList urlPatternsIncluded
Definition: dialogwebcrawler.h:68
QString seedUrl
Definition: dialogwebcrawler.h:64
bool intLinks
Definition: dialogwebcrawler.h:66
void userChoices(const QString &seedUrl, const QStringList &, const QStringList &, const QStringList &, const int &maxNodes, const int &maxLinks, const bool &extLinks, const bool &intLinks, const bool &selfLinks, const bool &delayedRequests)
void checkErrors()
Checks crawler form for user input errors.
Definition: dialogwebcrawler.cpp:104
int maxLinksPerPage
Definition: dialogwebcrawler.h:65
QStringList linkClasses
Definition: dialogwebcrawler.h:67