|
MythTV master
|
#include "netutils.h"#include <QDir>#include <QFileInfo>#include "libmythbase/mythcorecontext.h"#include "libmythbase/mythdate.h"#include "libmythbase/mythdb.h"#include "libmythbase/mythdirs.h"Go to the source code of this file.
Functions | |
| bool | findTreeGrabberInDB (const QString &commandline, ArticleType type) |
| bool | findSearchGrabberInDB (const QString &commandline, ArticleType type) |
| GrabberScript * | findTreeGrabberByCommand (const QString &commandline, ArticleType type) |
| GrabberScript * | findSearchGrabberByCommand (const QString &commandline, ArticleType type) |
| GrabberScript::scriptList | findAllDBTreeGrabbers () |
| GrabberScript::scriptList | findAllDBTreeGrabbersByHost (ArticleType type) |
| GrabberScript::scriptList | findAllDBSearchGrabbers (ArticleType type) |
| bool | insertSearchInDB (GrabberScript *script, ArticleType type) |
| bool | insertTreeInDB (GrabberScript *script, ArticleType type) |
| bool | insertGrabberInDB (const QString &name, const QString &thumbnail, ArticleType type, const QString &author, const QString &description, const QString &commandline, const double version, bool search, bool tree, bool podcast) |
| bool | removeTreeFromDB (GrabberScript *script) |
| bool | removeSearchFromDB (GrabberScript *script) |
| bool | removeGrabberFromDB (const QString &commandline, const bool search) |
| bool | markTreeUpdated (GrabberScript *script, const QDateTime &curTime) |
| bool | needsUpdate (GrabberScript *script, std::chrono::hours updateFreq) |
| QDateTime | lastUpdate (GrabberScript *script) |
| bool | clearTreeItems (const QString &feedcommand) |
| bool | isTreeInUse (const QString &feedcommand) |
| bool | insertTreeArticleInDB (const QString &feedtitle, const QString &path, const QString &paththumb, ResultItem *item, ArticleType type) |
| QMultiMap< QPair< QString, QString >, ResultItem * > | getTreeArticles (const QString &feedtitle, ArticleType type) |
| bool | findInDB (const QString &url, ArticleType type) |
| RSSSite * | findByURL (const QString &url, ArticleType type) |
| RSSSite::rssList | findAllDBRSSByType (ArticleType type) |
| RSSSite::rssList | findAllDBRSS () |
| bool | insertInDB (RSSSite *site) |
| bool | insertInDB (const QString &name, const QString &sortname, const QString &thumbnail, const QString &description, const QString &url, const QString &author, const bool download, const QDateTime &updated, ArticleType type) |
| bool | removeFromDB (RSSSite *site) |
| bool | removeFromDB (const QString &url, ArticleType type) |
| void | markUpdated (RSSSite *site) |
| bool | clearRSSArticles (const QString &feedtitle, ArticleType type) |
| bool | insertRSSArticleInDB (const QString &feedtitle, ResultItem *item, ArticleType type) |
| ResultItem::resultList | getRSSArticles (const QString &feedtitle, ArticleType type) |
| QString | GetDownloadFilename (const QString &title, const QString &url) |
| bool clearRSSArticles | ( | const QString & | feedtitle, |
| ArticleType | type | ||
| ) |
Definition at line 722 of file netutils.cpp.
Referenced by RSSManager::processAndInsertRSS().
| bool clearTreeItems | ( | const QString & | feedcommand | ) |
Definition at line 360 of file netutils.cpp.
Referenced by TreeEditor::RemoveFromDB(), and GrabberScript::run().
| RSSSite::rssList findAllDBRSS | ( | void | ) |
Definition at line 610 of file netutils.cpp.
Referenced by RSSManager::doUpdate(), NetTree::Load(), RSSEditor::LoadData(), main(), NetTree::TreeRefresh(), and NetTree::UpdateRSS().
| RSSSite::rssList findAllDBRSSByType | ( | ArticleType | type | ) |
Definition at line 577 of file netutils.cpp.
| GrabberScript::scriptList findAllDBSearchGrabbers | ( | ArticleType | type | ) |
Definition at line 184 of file netutils.cpp.
Referenced by NetSearch::DoListRefresh(), and NetSearch::Load().
| GrabberScript::scriptList findAllDBTreeGrabbers | ( | void | ) |
Definition at line 115 of file netutils.cpp.
Referenced by GrabberDownloadThread::run(), and NetTree::TreeRefresh().
| GrabberScript::scriptList findAllDBTreeGrabbersByHost | ( | ArticleType | type | ) |
Definition at line 149 of file netutils.cpp.
Referenced by NetTree::Load().
| RSSSite * findByURL | ( | const QString & | url, |
| ArticleType | type | ||
| ) |
Definition at line 542 of file netutils.cpp.
Referenced by RSSEditPopup::Create().
| bool findInDB | ( | const QString & | url, |
| ArticleType | type | ||
| ) |
Definition at line 527 of file netutils.cpp.
Referenced by insertInDB(), and MythNewsConfig::populateSites().
| GrabberScript * findSearchGrabberByCommand | ( | const QString & | commandline, |
| ArticleType | type | ||
| ) |
Definition at line 83 of file netutils.cpp.
| bool findSearchGrabberInDB | ( | const QString & | commandline, |
| ArticleType | type | ||
| ) |
Definition at line 31 of file netutils.cpp.
Referenced by SearchEditor::FindGrabberInDB().
| GrabberScript * findTreeGrabberByCommand | ( | const QString & | commandline, |
| ArticleType | type | ||
| ) |
Definition at line 51 of file netutils.cpp.
| bool findTreeGrabberInDB | ( | const QString & | commandline, |
| ArticleType | type | ||
| ) |
Definition at line 11 of file netutils.cpp.
Referenced by TreeEditor::FindGrabberInDB().
| QString GetDownloadFilename | ( | const QString & | title, |
| const QString & | url | ||
| ) |
Definition at line 854 of file netutils.cpp.
Referenced by NetBase::DoDeleteVideo(), NetBase::DoDownloadAndPlay(), NetBase::DoPlayVideo(), NetSearch::ShowMenu(), and NetTree::UpdateCurrentItem().
| ResultItem::resultList getRSSArticles | ( | const QString & | feedtitle, |
| ArticleType | type | ||
| ) |
Definition at line 797 of file netutils.cpp.
Referenced by NetTree::FillTree().
| QMultiMap< QPair< QString, QString >, ResultItem * > getTreeArticles | ( | const QString & | feedtitle, |
| ArticleType | type | ||
| ) |
Definition at line 463 of file netutils.cpp.
Referenced by NetTree::FillTree().
| bool insertGrabberInDB | ( | const QString & | name, |
| const QString & | thumbnail, | ||
| ArticleType | type, | ||
| const QString & | author, | ||
| const QString & | description, | ||
| const QString & | commandline, | ||
| const double | version, | ||
| bool | search, | ||
| bool | tree, | ||
| bool | podcast | ||
| ) |
Definition at line 241 of file netutils.cpp.
Referenced by insertSearchInDB(), and insertTreeInDB().
| bool insertInDB | ( | const QString & | name, |
| const QString & | sortname, | ||
| const QString & | thumbnail, | ||
| const QString & | description, | ||
| const QString & | url, | ||
| const QString & | author, | ||
| const bool | download, | ||
| const QDateTime & | updated, | ||
| ArticleType | type | ||
| ) |
Definition at line 653 of file netutils.cpp.
Definition at line 643 of file netutils.cpp.
Referenced by insertInDB(), RSSEditPopup::ParseAndSave(), MythNewsEditor::Save(), RSSEditPopup::SlotSave(), and MythNewsConfig::toggleItem().
| bool insertRSSArticleInDB | ( | const QString & | feedtitle, |
| ResultItem * | item, | ||
| ArticleType | type | ||
| ) |
Definition at line 742 of file netutils.cpp.
Referenced by RSSManager::processAndInsertRSS().
| bool insertSearchInDB | ( | GrabberScript * | script, |
| ArticleType | type | ||
| ) |
Definition at line 219 of file netutils.cpp.
Referenced by SearchEditor::InsertInDB().
| bool insertTreeArticleInDB | ( | const QString & | feedtitle, |
| const QString & | path, | ||
| const QString & | paththumb, | ||
| ResultItem * | item, | ||
| ArticleType | type | ||
| ) |
Definition at line 399 of file netutils.cpp.
Referenced by GrabberScript::parseDBTree().
| bool insertTreeInDB | ( | GrabberScript * | script, |
| ArticleType | type | ||
| ) |
Definition at line 230 of file netutils.cpp.
Referenced by TreeEditor::InsertInDB().
| bool isTreeInUse | ( | const QString & | feedcommand | ) |
Definition at line 379 of file netutils.cpp.
Referenced by TreeEditor::RemoveFromDB().
| QDateTime lastUpdate | ( | GrabberScript * | script | ) |
Definition at line 338 of file netutils.cpp.
Referenced by needsUpdate(), and MusicMetadata::updateStreamList().
| bool markTreeUpdated | ( | GrabberScript * | script, |
| const QDateTime & | curTime | ||
| ) |
Definition at line 314 of file netutils.cpp.
Referenced by GrabberScript::run().
| void markUpdated | ( | RSSSite * | site | ) |
Definition at line 708 of file netutils.cpp.
Referenced by RSSManager::slotRSSRetrieved().
| bool needsUpdate | ( | GrabberScript * | script, |
| std::chrono::hours | updateFreq | ||
| ) |
Definition at line 330 of file netutils.cpp.
Referenced by GrabberDownloadThread::run().
| bool removeFromDB | ( | const QString & | url, |
| ArticleType | type | ||
| ) |
Definition at line 693 of file netutils.cpp.
Definition at line 686 of file netutils.cpp.
Referenced by MythNews::deleteNewsSite(), RSSEditor::DoDeleteSite(), RSSEditPopup::ParseAndSave(), removeFromDB(), MythNewsEditor::Save(), and MythNewsConfig::toggleItem().
Definition at line 290 of file netutils.cpp.
Referenced by removeSearchFromDB(), and removeTreeFromDB().
| bool removeSearchFromDB | ( | GrabberScript * | script | ) |
Definition at line 283 of file netutils.cpp.
Referenced by SearchEditor::RemoveFromDB().
| bool removeTreeFromDB | ( | GrabberScript * | script | ) |
Definition at line 276 of file netutils.cpp.
Referenced by TreeEditor::RemoveFromDB().