MythTV  master
treeeditor.cpp
Go to the documentation of this file.
1 #include "treeeditor.h"
2 #include <netutils.h>
3 
5 {
6  return insertTreeInDB(script, VIDEO_FILE);
7 }
8 
10 {
11  bool removed = removeTreeFromDB(script);
12 
13  if (removed && !isTreeInUse(script->GetCommandline()))
14  clearTreeItems(script->GetCommandline());
15 
16  return removed;
17 }
18 
20 {
22 }
23 
24 bool TreeEditor::Matches(bool /*search*/, bool tree)
25 {
26  return tree;
27 }
GrabberScript::GetCommandline
const QString & GetCommandline() const
Definition: netgrabbermanager.h:41
TreeEditor::RemoveFromDB
bool RemoveFromDB(GrabberScript *script) override
Definition: treeeditor.cpp:9
TreeEditor::InsertInDB
bool InsertInDB(GrabberScript *script) override
Definition: treeeditor.cpp:4
findTreeGrabberInDB
bool findTreeGrabberInDB(const QString &commandline, ArticleType type)
Definition: netutils.cpp:11
netutils.h
filename
QString filename
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:634
GrabberScript
Definition: netgrabbermanager.h:17
isTreeInUse
bool isTreeInUse(const QString &feedcommand)
Definition: netutils.cpp:379
clearTreeItems
bool clearTreeItems(const QString &feedcommand)
Definition: netutils.cpp:360
VIDEO_FILE
@ VIDEO_FILE
Definition: rssparse.h:21
insertTreeInDB
bool insertTreeInDB(GrabberScript *script, ArticleType type)
Definition: netutils.cpp:230
TreeEditor::FindGrabberInDB
bool FindGrabberInDB(const QString &filename) override
Definition: treeeditor.cpp:19
removeTreeFromDB
bool removeTreeFromDB(GrabberScript *script)
Definition: netutils.cpp:276
TreeEditor::Matches
bool Matches(bool search, bool tree) override
Definition: treeeditor.cpp:24
treeeditor.h