Go to the documentation of this file. 1 #ifndef NETGRABBERMANAGER_H
2 #define NETGRABBERMANAGER_H
9 #include <QRecursiveMutex>
34 m_title(
std::move(title)), m_image(
std::move(image)), m_type(
type),
35 m_author(
std::move(author)), m_search(search), m_tree(tree),
36 m_description(
std::move(description)),
37 m_commandline(
std::move(commandline)), m_version(
version) {};
40 const QString&
GetTitle()
const {
return m_title; }
41 const QString&
GetImage()
const {
return m_image; }
43 const QString&
GetAuthor()
const {
return m_author; }
45 const bool&
GetTree()
const {
return m_tree; }
50 void run(
void)
override;
60 void parseDBTree(
const QString &feedtitle,
const QString &path,
61 const QString &pathThumb, QDomElement& domElem,
98 QTimer *m_timer {
nullptr};
100 std::chrono::hours m_updateFreq {24h};
102 bool m_refreshAll {
false};
136 QObject *m_parent {
nullptr};
139 bool m_refreshAll {
false};
153 void resetSearch(
void);
154 void executeSearch(
const QString &script,
const QString &query,
155 const QString &pagenum =
"");
159 void SetData(QByteArray data);
186 void finishedSearch(
Search *item);
187 void searchTimedOut(
Search *item);
190 void slotProcessSearchExit(
uint exitcode);
191 void slotProcessSearchExit(
void);
194 #endif // NETGRABBERMANAGER_H
const ArticleType & GetType() const
Q_DECLARE_METATYPE(GrabberScript *)
const QString & GetAuthor() const
const QString & GetCommandline() const
ResultItem::resultList m_videoList
GrabberScript::scriptList m_scripts
const QString & GetImage() const
const QString & GetDescription() const
const QString & GetTitle() const
ResultItem::resultList GetVideoList()
QList< GrabberScript * > scriptList
const int kGrabberUpdateEventType
virtual void run(void)
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
const double & GetVersion() const
const bool & GetTree() const
This is a wrapper around QThread that does several additional things.
QList< ResultItem * > resultList
GrabberScript(QString title, QString image, ArticleType type, QString author, bool search, bool tree, QString description, QString commandline, double version)
QList< GrabberScript * > m_scripts
const bool & GetSearch() const