Go to the documentation of this file. 1 #ifndef NETGRABBERMANAGER_H
2 #define NETGRABBERMANAGER_H
9 #if QT_VERSION >= QT_VERSION_CHECK(5,14,0)
10 #include <QRecursiveMutex>
36 m_title(
std::move(title)), m_image(
std::move(image)), m_type(
type),
37 m_author(
std::move(author)), m_search(search), m_tree(tree),
38 m_description(
std::move(description)),
39 m_commandline(
std::move(commandline)), m_version(
version) {};
42 const QString&
GetTitle()
const {
return m_title; }
43 const QString&
GetImage()
const {
return m_image; }
45 const QString&
GetAuthor()
const {
return m_author; }
47 const bool&
GetTree()
const {
return m_tree; }
52 void run(
void)
override;
62 void parseDBTree(
const QString &feedtitle,
const QString &path,
63 const QString &pathThumb, QDomElement& domElem,
65 #if QT_VERSION < QT_VERSION_CHECK(5,14,0)
66 mutable QMutex m_lock {QMutex::Recursive};
103 #if QT_VERSION < QT_VERSION_CHECK(5,14,0)
104 mutable QMutex m_lock {QMutex::Recursive};
108 QTimer *m_timer {
nullptr};
110 std::chrono::hours m_updateFreq {24h};
112 bool m_refreshAll {
false};
146 QObject *m_parent {
nullptr};
149 bool m_refreshAll {
false};
163 void resetSearch(
void);
164 void executeSearch(
const QString &script,
const QString &query,
165 const QString &pagenum =
"");
169 void SetData(QByteArray data);
196 void finishedSearch(
Search *item);
197 void searchTimedOut(
Search *item);
200 void slotProcessSearchExit(
uint exitcode);
201 void slotProcessSearchExit(
void);
204 #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