MythTV  master
treeeditor.cpp
Go to the documentation of this file.
1 #include <libmythbase/netutils.h>
2 
3 #include "treeeditor.h"
4 
6 {
7  return insertTreeInDB(script, VIDEO_FILE);
8 }
9 
11 {
12  bool removed = removeTreeFromDB(script);
13 
14  if (removed && !isTreeInUse(script->GetCommandline()))
15  clearTreeItems(script->GetCommandline());
16 
17  return removed;
18 }
19 
21 {
23 }
24 
25 bool TreeEditor::Matches(bool /*search*/, bool tree)
26 {
27  return tree;
28 }
GrabberScript::GetCommandline
const QString & GetCommandline() const
Definition: netgrabbermanager.h:47
TreeEditor::RemoveFromDB
bool RemoveFromDB(GrabberScript *script) override
Definition: treeeditor.cpp:10
TreeEditor::InsertInDB
bool InsertInDB(GrabberScript *script) override
Definition: treeeditor.cpp:5
findTreeGrabberInDB
bool findTreeGrabberInDB(const QString &commandline, ArticleType type)
Definition: netutils.cpp:11
netutils.h
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:20
removeTreeFromDB
bool removeTreeFromDB(GrabberScript *script)
Definition: netutils.cpp:276
TreeEditor::Matches
bool Matches(bool search, bool tree) override
Definition: treeeditor.cpp:25
build_compdb.filename
filename
Definition: build_compdb.py:21
treeeditor.h