1#ifndef NETGRABBERMANAGER_H
2#define NETGRABBERMANAGER_H
9#include <QRecursiveMutex>
42 QObject *m_parent {
nullptr};
45 bool m_refreshAll {
false};
68 m_title(std::move(title)), m_image(std::move(image)), m_type(
type),
69 m_author(std::move(author)), m_search(search), m_tree(tree),
70 m_description(std::move(description)),
71 m_commandline(std::move(commandline)), m_version(
version) {};
74 const QString&
GetTitle()
const {
return m_title; }
75 const QString&
GetImage()
const {
return m_image; }
77 const QString&
GetAuthor()
const {
return m_author; }
79 const bool&
GetTree()
const {
return m_tree; }
92 void run(
void)
override;
96 void parseDBTree(
const QString &feedtitle,
const QString &path,
97 const QString &pathThumb, QDomElement& domElem,
134 QTimer *m_timer {
nullptr};
136 std::chrono::hours m_updateFreq {24h};
138 bool m_refreshAll {
false};
161 void resetSearch(
void);
162 void executeSearch(
const QString &script,
const QString &query,
163 const QString &pagenum =
"");
167 void SetData(QByteArray data);
198 void slotProcessSearchExit(
uint exitcode);
199 void slotProcessSearchExit(
void);
void run() override
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
QList< GrabberScript * > m_scripts
GrabberScript::scriptList m_scripts
const ArticleType & GetType() const
const double & GetVersion() const
const QString & GetAuthor() const
QList< GrabberScript * > scriptList
GrabberScript(QString title, QString image, ArticleType type, QString author, bool search, bool tree, QString description, QString commandline, double version)
const QString & GetCommandline() const
const QString & GetDescription() const
const QString & GetImage() const
const QString & GetTitle() const
const bool & GetSearch() const
const bool & GetTree() const
~GrabberUpdateEvent() override=default
This is a wrapper around QThread that does several additional things.
virtual void run(void)
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
QList< ResultItem * > resultList
void finishedSearch(Search *item)
ResultItem::resultList GetVideoList()
ResultItem::resultList m_videoList
void searchTimedOut(Search *item)
Q_DECLARE_METATYPE(GrabberScript *)
const int kGrabberUpdateEventType