MythTV
master
|
#include <libmythmetadata/videometadatalistmanager.h>
Public Types | |
using | dir_iterator = meta_dir_list::iterator |
using | const_dir_iterator = meta_dir_list::const_iterator |
using | entry_iterator = meta_data_list::iterator |
using | const_entry_iterator = meta_data_list::const_iterator |
Public Member Functions | |
meta_dir_node (const QString &path, const QString &name="", meta_dir_node *parent=nullptr, bool is_path_root=false, QString host="", QString prefix="", QVariant data=QVariant()) | |
meta_dir_node () | |
void | ensureSortFields () |
void | setName (const QString &name) |
const QString & | getName () const override |
void | SetHost (const QString &host) |
const QString & | GetHost () const |
void | SetPrefix (const QString &prefix) |
const QString & | GetPrefix () const |
const QString & | getPath () const override |
const QString & | getSortPath () const |
void | setPath (const QString &path, const QString &sortPath=nullptr) |
void | SetData (const QVariant &data) |
const QVariant & | GetData () const |
bool | DataIsValid (void) const |
smart_dir_node | addSubDir (const QString &subdir, const QString &name="", const QString &host="", const QString &prefix="", const QVariant &data=QVariant()) |
void | addSubDir (const smart_dir_node &subdir) |
smart_dir_node | getSubDir (const QString &subdir, const QString &name="", bool create=true, const QString &host="", const QString &prefix="", const QVariant &data=QVariant()) |
void | addEntry (const smart_meta_node &entry) |
void | clear () |
bool | empty () const |
int | subdir_count () const |
template<typename DirSort , typename EntrySort > | |
void | sort (DirSort dir_sort, EntrySort entry_sort) |
dir_iterator | dirs_begin () |
dir_iterator | dirs_end () |
const_dir_iterator | dirs_begin () const |
const_dir_iterator | dirs_end () const |
entry_iterator | entries_begin () |
entry_iterator | entries_end () |
const_entry_iterator | entries_begin () const |
const_entry_iterator | entries_end () const |
bool | has_entries () const |
Public Member Functions inherited from meta_node | |
meta_node (meta_node *parent, bool is_path_root=false) | |
virtual | ~meta_node ()=default |
const QString & | getFQPath () |
void | setParent (meta_node *parent) |
void | setPathRoot (bool is_root=true) |
Private Attributes | |
QString | m_path |
QString | m_sortPath |
QString | m_name |
QString | m_host |
QString | m_prefix |
meta_dir_list | m_subdirs |
meta_data_list | m_entries |
QVariant | m_data |
Additional Inherited Members | |
Protected Attributes inherited from meta_node | |
meta_node * | m_parent {nullptr} |
Definition at line 83 of file videometadatalistmanager.h.
using meta_dir_node::dir_iterator = meta_dir_list::iterator |
Definition at line 86 of file videometadatalistmanager.h.
using meta_dir_node::const_dir_iterator = meta_dir_list::const_iterator |
Definition at line 87 of file videometadatalistmanager.h.
using meta_dir_node::entry_iterator = meta_data_list::iterator |
Definition at line 89 of file videometadatalistmanager.h.
using meta_dir_node::const_entry_iterator = meta_data_list::const_iterator |
Definition at line 90 of file videometadatalistmanager.h.
meta_dir_node::meta_dir_node | ( | const QString & | path, |
const QString & | name = "" , |
||
meta_dir_node * | parent = nullptr , |
||
bool | is_path_root = false , |
||
QString | host = "" , |
||
QString | prefix = "" , |
||
QVariant | data = QVariant() |
||
) |
Definition at line 253 of file videometadatalistmanager.cpp.
|
inline |
Definition at line 97 of file videometadatalistmanager.h.
Referenced by getSubDir().
void meta_dir_node::ensureSortFields | ( | ) |
Definition at line 265 of file videometadatalistmanager.cpp.
Referenced by meta_dir_node(), and setPath().
void meta_dir_node::setName | ( | const QString & | name | ) |
Definition at line 273 of file videometadatalistmanager.cpp.
Referenced by VideoListImp::buildDbList(), and VideoListImp::update_meta_view().
|
overridevirtual |
Implements meta_node.
Definition at line 278 of file videometadatalistmanager.cpp.
Referenced by VideoListImp::build_generic_tree(), copy_filtered_tree(), and VideoListImp::update_meta_view().
void meta_dir_node::SetHost | ( | const QString & | host | ) |
Definition at line 283 of file videometadatalistmanager.cpp.
const QString & meta_dir_node::GetHost | ( | ) | const |
Definition at line 288 of file videometadatalistmanager.cpp.
Referenced by copy_filtered_tree().
void meta_dir_node::SetPrefix | ( | const QString & | prefix | ) |
Definition at line 293 of file videometadatalistmanager.cpp.
const QString & meta_dir_node::GetPrefix | ( | ) | const |
Definition at line 298 of file videometadatalistmanager.cpp.
Referenced by copy_filtered_tree().
|
overridevirtual |
Reimplemented from meta_node.
Definition at line 303 of file videometadatalistmanager.cpp.
Referenced by copy_filtered_tree(), and VideoListImp::update_meta_view().
const QString & meta_dir_node::getSortPath | ( | ) | const |
Definition at line 308 of file videometadatalistmanager.cpp.
Referenced by metadata_path_sort::operator()().
void meta_dir_node::setPath | ( | const QString & | path, |
const QString & | sortPath = nullptr |
||
) |
Definition at line 313 of file videometadatalistmanager.cpp.
Referenced by VideoListImp::buildDbList(), and VideoListImp::update_meta_view().
void meta_dir_node::SetData | ( | const QVariant & | data | ) |
Definition at line 320 of file videometadatalistmanager.cpp.
Referenced by UPNPScanner::GetServerContent().
const QVariant & meta_dir_node::GetData | ( | ) | const |
Definition at line 325 of file videometadatalistmanager.cpp.
Referenced by VideoListImp::build_generic_tree(), and copy_filtered_tree().
bool meta_dir_node::DataIsValid | ( | void | ) | const |
Definition at line 330 of file videometadatalistmanager.cpp.
Referenced by VideoListImp::build_generic_tree().
smart_dir_node meta_dir_node::addSubDir | ( | const QString & | subdir, |
const QString & | name = "" , |
||
const QString & | host = "" , |
||
const QString & | prefix = "" , |
||
const QVariant & | data = QVariant() |
||
) |
Definition at line 335 of file videometadatalistmanager.cpp.
Referenced by AddMetadataToDir(), VideoListImp::buildFsysList(), VideoListImp::buildGroupList(), VideoListImp::buildTVList(), copy_filtered_tree(), UPNPScanner::GetInitialMetadata(), UPNPScanner::GetMetadata(), UPNPScanner::GetServerContent(), and dirhandler::newDir().
void meta_dir_node::addSubDir | ( | const smart_dir_node & | subdir | ) |
Definition at line 344 of file videometadatalistmanager.cpp.
smart_dir_node meta_dir_node::getSubDir | ( | const QString & | subdir, |
const QString & | name = "" , |
||
bool | create = true , |
||
const QString & | host = "" , |
||
const QString & | prefix = "" , |
||
const QVariant & | data = QVariant() |
||
) |
Definition at line 349 of file videometadatalistmanager.cpp.
Referenced by addSubDir().
void meta_dir_node::addEntry | ( | const smart_meta_node & | entry | ) |
Definition at line 375 of file videometadatalistmanager.cpp.
Referenced by AddMetadataToDir(), VideoListImp::buildGroupList(), VideoListImp::buildTVList(), copy_entries(), UPNPScanner::GetServerContent(), dirhandler::handleFile(), and VideoListImp::update_meta_view().
void meta_dir_node::clear | ( | ) |
Definition at line 381 of file videometadatalistmanager.cpp.
Referenced by VideoListImp::fillMetadata(), and VideoListImp::update_meta_view().
bool meta_dir_node::empty | ( | ) | const |
Definition at line 387 of file videometadatalistmanager.cpp.
int meta_dir_node::subdir_count | ( | ) | const |
Definition at line 392 of file videometadatalistmanager.cpp.
|
inline |
Definition at line 129 of file videometadatalistmanager.h.
Referenced by VideoListImp::sort_view_data().
meta_dir_list::const_iterator meta_dir_node::dirs_begin | ( | ) |
Definition at line 397 of file videometadatalistmanager.cpp.
Referenced by VideoListImp::build_generic_tree(), copy_filtered_tree(), and tree_view_to_flat().
meta_dir_list::const_iterator meta_dir_node::dirs_end | ( | ) |
Definition at line 402 of file videometadatalistmanager.cpp.
Referenced by VideoListImp::build_generic_tree(), copy_filtered_tree(), and tree_view_to_flat().
const_dir_iterator meta_dir_node::dirs_begin | ( | ) | const |
const_dir_iterator meta_dir_node::dirs_end | ( | ) | const |
meta_data_list::const_iterator meta_dir_node::entries_begin | ( | ) |
Definition at line 417 of file videometadatalistmanager.cpp.
Referenced by VideoListImp::build_generic_tree(), copy_entries(), and tree_view_to_flat().
meta_data_list::const_iterator meta_dir_node::entries_end | ( | ) |
Definition at line 422 of file videometadatalistmanager.cpp.
Referenced by VideoListImp::build_generic_tree(), copy_entries(), and tree_view_to_flat().
const_entry_iterator meta_dir_node::entries_begin | ( | ) | const |
const_entry_iterator meta_dir_node::entries_end | ( | ) | const |
bool meta_dir_node::has_entries | ( | ) | const |
Definition at line 439 of file videometadatalistmanager.cpp.
|
private |
Definition at line 152 of file videometadatalistmanager.h.
Referenced by ensureSortFields(), getPath(), and setPath().
|
private |
Definition at line 153 of file videometadatalistmanager.h.
Referenced by ensureSortFields(), getSortPath(), and setPath().
|
private |
Definition at line 154 of file videometadatalistmanager.h.
Referenced by getName(), meta_dir_node(), and setName().
|
private |
Definition at line 155 of file videometadatalistmanager.h.
|
private |
Definition at line 156 of file videometadatalistmanager.h.
Referenced by GetPrefix(), and SetPrefix().
|
private |
Definition at line 157 of file videometadatalistmanager.h.
Referenced by addSubDir(), clear(), dirs_begin(), dirs_end(), empty(), getSubDir(), has_entries(), and subdir_count().
|
private |
Definition at line 158 of file videometadatalistmanager.h.
Referenced by addEntry(), clear(), empty(), entries_begin(), entries_end(), and has_entries().
|
private |
Definition at line 160 of file videometadatalistmanager.h.
Referenced by DataIsValid(), GetData(), and SetData().