MythTV  master
Functions
netutils.h File Reference
#include <QString>
#include <QDateTime>
#include "mythbaseexp.h"
#include "rssparse.h"
#include "netgrabbermanager.h"
#include "rssmanager.h"
Include dependency graph for netutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

MBASE_PUBLIC QString GetDownloadFilename (const QString &title, const QString &url)
 
MBASE_PUBLIC bool findTreeGrabberInDB (const QString &commandline, ArticleType type)
 
MBASE_PUBLIC GrabberScriptfindTreeGrabberByCommand (const QString &url, ArticleType type)
 
MBASE_PUBLIC GrabberScript::scriptList findAllDBTreeGrabbersByHost (ArticleType type)
 
MBASE_PUBLIC GrabberScript::scriptList findAllDBTreeGrabbers (void)
 
MBASE_PUBLIC bool findSearchGrabberInDB (const QString &commandline, ArticleType type)
 
MBASE_PUBLIC GrabberScriptfindSearchGrabberByCommand (const QString &url, ArticleType type)
 
MBASE_PUBLIC GrabberScript::scriptList findAllDBSearchGrabbers (ArticleType type)
 
MBASE_PUBLIC bool markTreeUpdated (GrabberScript *script, const QDateTime &curTime)
 
MBASE_PUBLIC bool needsUpdate (GrabberScript *script, std::chrono::hours updateFreq)
 
MBASE_PUBLIC QDateTime lastUpdate (GrabberScript *script)
 
MBASE_PUBLIC bool clearTreeItems (const QString &feedcommand)
 
MBASE_PUBLIC bool isTreeInUse (const QString &feedcommand)
 
MBASE_PUBLIC bool insertTreeArticleInDB (const QString &feedtitle, const QString &path, const QString &paththumb, ResultItem *item, ArticleType type)
 
MBASE_PUBLIC QMultiMap< QPair< QString, QString >, ResultItem * > getTreeArticles (const QString &feedtitle, ArticleType type)
 
MBASE_PUBLIC bool insertTreeInDB (GrabberScript *script, ArticleType type)
 
MBASE_PUBLIC bool insertSearchInDB (GrabberScript *script, ArticleType type)
 
MBASE_PUBLIC bool insertGrabberInDB (const QString &name, const QString &thumbnail, ArticleType type, const QString &author, const QString &description, const QString &commandline, double version, bool search, bool tree, bool podcast)
 
MBASE_PUBLIC bool removeTreeFromDB (GrabberScript *script)
 
MBASE_PUBLIC bool removeSearchFromDB (GrabberScript *script)
 
MBASE_PUBLIC bool removeGrabberFromDB (const QString &commandline, bool search)
 
MBASE_PUBLIC bool findInDB (const QString &url, ArticleType type)
 
MBASE_PUBLIC RSSSitefindByURL (const QString &url, ArticleType type)
 
MBASE_PUBLIC RSSSite::rssList findAllDBRSS (void)
 
MBASE_PUBLIC RSSSite::rssList findAllDBRSSByType (ArticleType type)
 
MBASE_PUBLIC bool insertInDB (RSSSite *site)
 
MBASE_PUBLIC bool insertInDB (const QString &name, const QString &sortname, const QString &thumbnail, const QString &description, const QString &url, const QString &author, bool download, const QDateTime &updated, ArticleType type)
 
MBASE_PUBLIC bool removeFromDB (RSSSite *site)
 
MBASE_PUBLIC bool removeFromDB (const QString &url, ArticleType type)
 
MBASE_PUBLIC void markUpdated (RSSSite *site)
 
MBASE_PUBLIC bool clearRSSArticles (const QString &feedtitle, ArticleType type)
 
MBASE_PUBLIC bool insertRSSArticleInDB (const QString &feedtitle, ResultItem *item, ArticleType type)
 
MBASE_PUBLIC ResultItem::resultList getRSSArticles (const QString &feedtitle, ArticleType type)
 

Function Documentation

◆ GetDownloadFilename()

MBASE_PUBLIC QString GetDownloadFilename ( const QString &  title,
const QString &  url 
)

◆ findTreeGrabberInDB()

MBASE_PUBLIC bool findTreeGrabberInDB ( const QString &  commandline,
ArticleType  type 
)

Definition at line 11 of file netutils.cpp.

Referenced by TreeEditor::FindGrabberInDB().

◆ findTreeGrabberByCommand()

MBASE_PUBLIC GrabberScript* findTreeGrabberByCommand ( const QString &  url,
ArticleType  type 
)

Definition at line 51 of file netutils.cpp.

◆ findAllDBTreeGrabbersByHost()

MBASE_PUBLIC GrabberScript::scriptList findAllDBTreeGrabbersByHost ( ArticleType  type)

Definition at line 149 of file netutils.cpp.

Referenced by NetTree::Load().

◆ findAllDBTreeGrabbers()

MBASE_PUBLIC GrabberScript::scriptList findAllDBTreeGrabbers ( void  )

Definition at line 115 of file netutils.cpp.

Referenced by GrabberDownloadThread::run(), and NetTree::TreeRefresh().

◆ findSearchGrabberInDB()

MBASE_PUBLIC bool findSearchGrabberInDB ( const QString &  commandline,
ArticleType  type 
)

Definition at line 31 of file netutils.cpp.

Referenced by SearchEditor::FindGrabberInDB().

◆ findSearchGrabberByCommand()

MBASE_PUBLIC GrabberScript* findSearchGrabberByCommand ( const QString &  url,
ArticleType  type 
)

Definition at line 83 of file netutils.cpp.

◆ findAllDBSearchGrabbers()

MBASE_PUBLIC GrabberScript::scriptList findAllDBSearchGrabbers ( ArticleType  type)

Definition at line 184 of file netutils.cpp.

Referenced by NetSearch::DoListRefresh(), and NetSearch::Load().

◆ markTreeUpdated()

MBASE_PUBLIC bool markTreeUpdated ( GrabberScript script,
const QDateTime &  curTime 
)

Definition at line 314 of file netutils.cpp.

Referenced by GrabberScript::run().

◆ needsUpdate()

MBASE_PUBLIC bool needsUpdate ( GrabberScript script,
std::chrono::hours  updateFreq 
)

Definition at line 330 of file netutils.cpp.

Referenced by GrabberDownloadThread::run().

◆ lastUpdate()

MBASE_PUBLIC QDateTime lastUpdate ( GrabberScript script)

Definition at line 338 of file netutils.cpp.

Referenced by needsUpdate(), and MusicMetadata::updateStreamList().

◆ clearTreeItems()

MBASE_PUBLIC bool clearTreeItems ( const QString &  feedcommand)

Definition at line 360 of file netutils.cpp.

Referenced by TreeEditor::RemoveFromDB(), and GrabberScript::run().

◆ isTreeInUse()

MBASE_PUBLIC bool isTreeInUse ( const QString &  feedcommand)

Definition at line 379 of file netutils.cpp.

Referenced by TreeEditor::RemoveFromDB().

◆ insertTreeArticleInDB()

MBASE_PUBLIC 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().

◆ getTreeArticles()

MBASE_PUBLIC QMultiMap<QPair<QString,QString>, ResultItem*> getTreeArticles ( const QString &  feedtitle,
ArticleType  type 
)

Definition at line 463 of file netutils.cpp.

Referenced by NetTree::FillTree().

◆ insertTreeInDB()

MBASE_PUBLIC bool insertTreeInDB ( GrabberScript script,
ArticleType  type 
)

Definition at line 230 of file netutils.cpp.

Referenced by TreeEditor::InsertInDB().

◆ insertSearchInDB()

MBASE_PUBLIC bool insertSearchInDB ( GrabberScript script,
ArticleType  type 
)

Definition at line 219 of file netutils.cpp.

Referenced by SearchEditor::InsertInDB().

◆ insertGrabberInDB()

MBASE_PUBLIC bool insertGrabberInDB ( const QString &  name,
const QString &  thumbnail,
ArticleType  type,
const QString &  author,
const QString &  description,
const QString &  commandline,
double  version,
bool  search,
bool  tree,
bool  podcast 
)

Definition at line 241 of file netutils.cpp.

Referenced by insertSearchInDB(), and insertTreeInDB().

◆ removeTreeFromDB()

MBASE_PUBLIC bool removeTreeFromDB ( GrabberScript script)

Definition at line 276 of file netutils.cpp.

Referenced by TreeEditor::RemoveFromDB().

◆ removeSearchFromDB()

MBASE_PUBLIC bool removeSearchFromDB ( GrabberScript script)

Definition at line 283 of file netutils.cpp.

Referenced by SearchEditor::RemoveFromDB().

◆ removeGrabberFromDB()

MBASE_PUBLIC bool removeGrabberFromDB ( const QString &  commandline,
bool  search 
)

Definition at line 290 of file netutils.cpp.

Referenced by removeSearchFromDB(), and removeTreeFromDB().

◆ findInDB()

MBASE_PUBLIC bool findInDB ( const QString &  url,
ArticleType  type 
)

Definition at line 527 of file netutils.cpp.

Referenced by insertInDB(), and MythNewsConfig::populateSites().

◆ findByURL()

MBASE_PUBLIC RSSSite* findByURL ( const QString &  url,
ArticleType  type 
)

Definition at line 542 of file netutils.cpp.

Referenced by RSSEditPopup::Create().

◆ findAllDBRSS()

MBASE_PUBLIC RSSSite::rssList findAllDBRSS ( void  )

◆ findAllDBRSSByType()

MBASE_PUBLIC RSSSite::rssList findAllDBRSSByType ( ArticleType  type)

Definition at line 577 of file netutils.cpp.

◆ insertInDB() [1/2]

MBASE_PUBLIC bool insertInDB ( RSSSite site)

◆ insertInDB() [2/2]

MBASE_PUBLIC bool insertInDB ( const QString &  name,
const QString &  sortname,
const QString &  thumbnail,
const QString &  description,
const QString &  url,
const QString &  author,
bool  download,
const QDateTime &  updated,
ArticleType  type 
)

◆ removeFromDB() [1/2]

MBASE_PUBLIC bool removeFromDB ( RSSSite site)

◆ removeFromDB() [2/2]

MBASE_PUBLIC bool removeFromDB ( const QString &  url,
ArticleType  type 
)

Definition at line 693 of file netutils.cpp.

◆ markUpdated()

MBASE_PUBLIC void markUpdated ( RSSSite site)

Definition at line 708 of file netutils.cpp.

Referenced by RSSManager::slotRSSRetrieved().

◆ clearRSSArticles()

MBASE_PUBLIC bool clearRSSArticles ( const QString &  feedtitle,
ArticleType  type 
)

Definition at line 722 of file netutils.cpp.

Referenced by RSSManager::processAndInsertRSS().

◆ insertRSSArticleInDB()

MBASE_PUBLIC bool insertRSSArticleInDB ( const QString &  feedtitle,
ResultItem item,
ArticleType  type 
)

Definition at line 742 of file netutils.cpp.

Referenced by RSSManager::processAndInsertRSS().

◆ getRSSArticles()

MBASE_PUBLIC ResultItem::resultList getRSSArticles ( const QString &  feedtitle,
ArticleType  type 
)

Definition at line 797 of file netutils.cpp.

Referenced by NetTree::FillTree().