MythTV  master
Functions
netutils.h File Reference
#include <QString>
#include <QDateTime>
#include "rssparse.h"
#include "netgrabbermanager.h"
#include "mythrssmanager.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

MPUBLIC QString GetDownloadFilename (const QString &title, const QString &url)
 
MPUBLIC bool findTreeGrabberInDB (const QString &commandline, ArticleType type)
 
MPUBLIC GrabberScriptfindTreeGrabberByCommand (const QString &url, ArticleType type)
 
MPUBLIC GrabberScript::scriptList findAllDBTreeGrabbersByHost (ArticleType type)
 
MPUBLIC GrabberScript::scriptList findAllDBTreeGrabbers (void)
 
MPUBLIC bool findSearchGrabberInDB (const QString &commandline, ArticleType type)
 
MPUBLIC GrabberScriptfindSearchGrabberByCommand (const QString &url, ArticleType type)
 
MPUBLIC GrabberScript::scriptList findAllDBSearchGrabbers (ArticleType type)
 
MPUBLIC bool markTreeUpdated (GrabberScript *script, const QDateTime &curTime)
 
MPUBLIC bool needsUpdate (GrabberScript *script, uint updateFreq)
 
MPUBLIC QDateTime lastUpdate (GrabberScript *script)
 
MPUBLIC bool clearTreeItems (const QString &feedcommand)
 
MPUBLIC bool isTreeInUse (const QString &feedcommand)
 
MPUBLIC bool insertTreeArticleInDB (const QString &feedtitle, const QString &path, const QString &paththumb, ResultItem *item, ArticleType type)
 
MPUBLIC QMultiMap< QPair< QString, QString >, ResultItem * > getTreeArticles (const QString &feedtitle, ArticleType type)
 
MPUBLIC bool insertTreeInDB (GrabberScript *script, ArticleType type)
 
MPUBLIC bool insertSearchInDB (GrabberScript *script, ArticleType type)
 
MPUBLIC 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)
 
MPUBLIC bool removeTreeFromDB (GrabberScript *script)
 
MPUBLIC bool removeSearchFromDB (GrabberScript *script)
 
MPUBLIC bool removeGrabberFromDB (const QString &commandline, const bool &search)
 
MPUBLIC bool findInDB (const QString &url, ArticleType type)
 
MPUBLIC RSSSitefindByURL (const QString &url, ArticleType type)
 
MPUBLIC RSSSite::rssList findAllDBRSS (void)
 
MPUBLIC RSSSite::rssList findAllDBRSSByType (ArticleType type)
 
MPUBLIC bool insertInDB (RSSSite *site)
 
MPUBLIC 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)
 
MPUBLIC bool removeFromDB (RSSSite *site)
 
MPUBLIC bool removeFromDB (const QString &url, ArticleType type)
 
MPUBLIC void markUpdated (RSSSite *site)
 
MPUBLIC bool clearRSSArticles (const QString &feedtitle, ArticleType type)
 
MPUBLIC bool insertRSSArticleInDB (const QString &feedtitle, ResultItem *item, ArticleType type)
 
MPUBLIC ResultItem::resultList getRSSArticles (const QString &feedtitle, ArticleType type)
 

Function Documentation

◆ GetDownloadFilename()

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

◆ findTreeGrabberInDB()

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

Definition at line 11 of file netutils.cpp.

Referenced by TreeEditor::FindGrabberInDB().

◆ findTreeGrabberByCommand()

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

Definition at line 51 of file netutils.cpp.

◆ findAllDBTreeGrabbersByHost()

MPUBLIC GrabberScript::scriptList findAllDBTreeGrabbersByHost ( ArticleType  type)

Definition at line 149 of file netutils.cpp.

Referenced by NetTree::Load().

◆ findAllDBTreeGrabbers()

MPUBLIC GrabberScript::scriptList findAllDBTreeGrabbers ( void  )

Definition at line 115 of file netutils.cpp.

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

◆ findSearchGrabberInDB()

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

Definition at line 31 of file netutils.cpp.

Referenced by SearchEditor::FindGrabberInDB().

◆ findSearchGrabberByCommand()

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

Definition at line 83 of file netutils.cpp.

◆ findAllDBSearchGrabbers()

MPUBLIC GrabberScript::scriptList findAllDBSearchGrabbers ( ArticleType  type)

Definition at line 184 of file netutils.cpp.

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

◆ markTreeUpdated()

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

Definition at line 310 of file netutils.cpp.

Referenced by GrabberScript::run().

◆ needsUpdate()

MPUBLIC bool needsUpdate ( GrabberScript script,
uint  updateFreq 
)

Definition at line 326 of file netutils.cpp.

Referenced by GrabberDownloadThread::run().

◆ lastUpdate()

MPUBLIC QDateTime lastUpdate ( GrabberScript script)

Definition at line 334 of file netutils.cpp.

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

◆ clearTreeItems()

MPUBLIC bool clearTreeItems ( const QString &  feedcommand)

Definition at line 356 of file netutils.cpp.

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

◆ isTreeInUse()

MPUBLIC bool isTreeInUse ( const QString &  feedcommand)

Definition at line 375 of file netutils.cpp.

Referenced by TreeEditor::RemoveFromDB().

◆ insertTreeArticleInDB()

MPUBLIC bool insertTreeArticleInDB ( const QString &  feedtitle,
const QString &  path,
const QString &  paththumb,
ResultItem item,
ArticleType  type 
)

Definition at line 395 of file netutils.cpp.

Referenced by GrabberScript::parseDBTree().

◆ getTreeArticles()

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

Definition at line 460 of file netutils.cpp.

Referenced by NetTree::FillTree().

◆ insertTreeInDB()

MPUBLIC bool insertTreeInDB ( GrabberScript script,
ArticleType  type 
)

Definition at line 230 of file netutils.cpp.

Referenced by TreeEditor::InsertInDB().

◆ insertSearchInDB()

MPUBLIC bool insertSearchInDB ( GrabberScript script,
ArticleType  type 
)

Definition at line 219 of file netutils.cpp.

Referenced by SearchEditor::InsertInDB().

◆ insertGrabberInDB()

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

◆ removeTreeFromDB()

MPUBLIC bool removeTreeFromDB ( GrabberScript script)

Definition at line 276 of file netutils.cpp.

Referenced by TreeEditor::RemoveFromDB().

◆ removeSearchFromDB()

MPUBLIC bool removeSearchFromDB ( GrabberScript script)

Definition at line 283 of file netutils.cpp.

Referenced by SearchEditor::RemoveFromDB().

◆ removeGrabberFromDB()

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

Definition at line 290 of file netutils.cpp.

Referenced by removeSearchFromDB(), and removeTreeFromDB().

◆ findInDB()

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

Definition at line 524 of file netutils.cpp.

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

◆ findByURL()

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

Definition at line 539 of file netutils.cpp.

Referenced by RSSEditPopup::Create().

◆ findAllDBRSS()

MPUBLIC RSSSite::rssList findAllDBRSS ( void  )

◆ findAllDBRSSByType()

MPUBLIC RSSSite::rssList findAllDBRSSByType ( ArticleType  type)

Definition at line 574 of file netutils.cpp.

◆ insertInDB() [1/2]

MPUBLIC bool insertInDB ( RSSSite site)

◆ insertInDB() [2/2]

MPUBLIC 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 650 of file netutils.cpp.

◆ removeFromDB() [1/2]

MPUBLIC bool removeFromDB ( RSSSite site)

◆ removeFromDB() [2/2]

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

Definition at line 689 of file netutils.cpp.

◆ markUpdated()

MPUBLIC void markUpdated ( RSSSite site)

Definition at line 704 of file netutils.cpp.

Referenced by RSSManager::slotRSSRetrieved().

◆ clearRSSArticles()

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

Definition at line 718 of file netutils.cpp.

Referenced by RSSManager::processAndInsertRSS().

◆ insertRSSArticleInDB()

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

Definition at line 738 of file netutils.cpp.

Referenced by RSSManager::processAndInsertRSS().

◆ getRSSArticles()

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

Definition at line 794 of file netutils.cpp.

Referenced by NetTree::FillTree().