MythTV  master
Public Types | Public Member Functions | Private Attributes | List of all members
meta_dir_node Class Reference

#include <videometadatalistmanager.h>

Inheritance diagram for meta_dir_node:
Inheritance graph
[legend]
Collaboration diagram for meta_dir_node:
Collaboration graph
[legend]

Public Types

typedef meta_dir_list::iterator dir_iterator
 
typedef meta_dir_list::const_iterator const_dir_iterator
 
typedef meta_data_list::iterator entry_iterator
 
typedef meta_data_list::const_iterator const_entry_iterator
 

Public Member Functions

 meta_dir_node (const QString &path, const QString &name="", meta_dir_node *parent=nullptr, bool is_path_root=false, const QString &host="", const QString &prefix="", const 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_nodem_parent {nullptr}
 

Detailed Description

Definition at line 82 of file videometadatalistmanager.h.

Member Typedef Documentation

◆ dir_iterator

typedef meta_dir_list::iterator meta_dir_node::dir_iterator

Definition at line 85 of file videometadatalistmanager.h.

◆ const_dir_iterator

typedef meta_dir_list::const_iterator meta_dir_node::const_dir_iterator

Definition at line 86 of file videometadatalistmanager.h.

◆ entry_iterator

typedef meta_data_list::iterator meta_dir_node::entry_iterator

Definition at line 88 of file videometadatalistmanager.h.

◆ const_entry_iterator

typedef meta_data_list::const_iterator meta_dir_node::const_entry_iterator

Definition at line 89 of file videometadatalistmanager.h.

Constructor & Destructor Documentation

◆ meta_dir_node() [1/2]

meta_dir_node::meta_dir_node ( const QString &  path,
const QString &  name = "",
meta_dir_node parent = nullptr,
bool  is_path_root = false,
const QString &  host = "",
const QString &  prefix = "",
const QVariant &  data = QVariant() 
)

Definition at line 250 of file videometadatalistmanager.cpp.

◆ meta_dir_node() [2/2]

meta_dir_node::meta_dir_node ( )
inline

Definition at line 96 of file videometadatalistmanager.h.

Referenced by getSubDir().

Member Function Documentation

◆ ensureSortFields()

void meta_dir_node::ensureSortFields ( void  )

Definition at line 262 of file videometadatalistmanager.cpp.

Referenced by meta_dir_node(), and setPath().

◆ setName()

void meta_dir_node::setName ( const QString &  name)

◆ getName()

const QString & meta_dir_node::getName ( void  ) const
overridevirtual

◆ SetHost()

void meta_dir_node::SetHost ( const QString &  host)

Definition at line 280 of file videometadatalistmanager.cpp.

◆ GetHost()

const QString & meta_dir_node::GetHost ( ) const

Definition at line 285 of file videometadatalistmanager.cpp.

◆ SetPrefix()

void meta_dir_node::SetPrefix ( const QString &  prefix)

Definition at line 290 of file videometadatalistmanager.cpp.

◆ GetPrefix()

const QString & meta_dir_node::GetPrefix ( ) const

Definition at line 295 of file videometadatalistmanager.cpp.

◆ getPath()

const QString & meta_dir_node::getPath ( void  ) const
overridevirtual

Reimplemented from meta_node.

Definition at line 300 of file videometadatalistmanager.cpp.

Referenced by VideoListImp::update_meta_view().

◆ getSortPath()

const QString & meta_dir_node::getSortPath ( ) const

Definition at line 305 of file videometadatalistmanager.cpp.

Referenced by metadata_path_sort::operator()().

◆ setPath()

void meta_dir_node::setPath ( const QString &  path,
const QString &  sortPath = nullptr 
)

◆ SetData()

void meta_dir_node::SetData ( const QVariant &  data)

Definition at line 317 of file videometadatalistmanager.cpp.

Referenced by UPNPScanner::GetServerContent().

◆ GetData()

const QVariant & meta_dir_node::GetData ( ) const

Definition at line 322 of file videometadatalistmanager.cpp.

Referenced by VideoListImp::build_generic_tree().

◆ DataIsValid()

bool meta_dir_node::DataIsValid ( void  ) const

Definition at line 327 of file videometadatalistmanager.cpp.

Referenced by VideoListImp::build_generic_tree().

◆ addSubDir() [1/2]

smart_dir_node meta_dir_node::addSubDir ( const QString &  subdir,
const QString &  name = "",
const QString &  host = "",
const QString &  prefix = "",
const QVariant &  data = QVariant() 
)

◆ addSubDir() [2/2]

void meta_dir_node::addSubDir ( const smart_dir_node subdir)

Definition at line 341 of file videometadatalistmanager.cpp.

◆ getSubDir()

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 346 of file videometadatalistmanager.cpp.

Referenced by addSubDir().

◆ addEntry()

void meta_dir_node::addEntry ( const smart_meta_node entry)

◆ clear()

void meta_dir_node::clear ( void  )

◆ empty()

bool meta_dir_node::empty ( void  ) const

Definition at line 385 of file videometadatalistmanager.cpp.

◆ subdir_count()

int meta_dir_node::subdir_count ( ) const

Definition at line 390 of file videometadatalistmanager.cpp.

◆ sort()

template<typename DirSort , typename EntrySort >
void meta_dir_node::sort ( DirSort  dir_sort,
EntrySort  entry_sort 
)
inline

Definition at line 128 of file videometadatalistmanager.h.

Referenced by VideoListImp::sort_view_data().

◆ dirs_begin() [1/2]

meta_dir_list::iterator meta_dir_node::dirs_begin ( )

◆ dirs_end() [1/2]

meta_dir_list::iterator meta_dir_node::dirs_end ( )

◆ dirs_begin() [2/2]

meta_dir_list::const_iterator meta_dir_node::dirs_begin ( ) const

Definition at line 405 of file videometadatalistmanager.cpp.

◆ dirs_end() [2/2]

meta_dir_list::const_iterator meta_dir_node::dirs_end ( ) const

Definition at line 410 of file videometadatalistmanager.cpp.

◆ entries_begin() [1/2]

meta_data_list::iterator meta_dir_node::entries_begin ( )

◆ entries_end() [1/2]

meta_data_list::iterator meta_dir_node::entries_end ( )

◆ entries_begin() [2/2]

meta_data_list::const_iterator meta_dir_node::entries_begin ( ) const

Definition at line 425 of file videometadatalistmanager.cpp.

◆ entries_end() [2/2]

meta_data_list::const_iterator meta_dir_node::entries_end ( ) const

Definition at line 430 of file videometadatalistmanager.cpp.

◆ has_entries()

bool meta_dir_node::has_entries ( ) const

Definition at line 437 of file videometadatalistmanager.cpp.

Member Data Documentation

◆ m_path

QString meta_dir_node::m_path
private

Definition at line 150 of file videometadatalistmanager.h.

Referenced by ensureSortFields(), getPath(), and setPath().

◆ m_sortPath

QString meta_dir_node::m_sortPath
private

Definition at line 151 of file videometadatalistmanager.h.

Referenced by ensureSortFields(), getSortPath(), and setPath().

◆ m_name

QString meta_dir_node::m_name
private

Definition at line 152 of file videometadatalistmanager.h.

Referenced by getName(), meta_dir_node(), and setName().

◆ m_host

QString meta_dir_node::m_host
private

Definition at line 153 of file videometadatalistmanager.h.

Referenced by GetHost(), and SetHost().

◆ m_prefix

QString meta_dir_node::m_prefix
private

Definition at line 154 of file videometadatalistmanager.h.

Referenced by GetPrefix(), and SetPrefix().

◆ m_subdirs

meta_dir_list meta_dir_node::m_subdirs
private

◆ m_entries

meta_data_list meta_dir_node::m_entries
private

◆ m_data

QVariant meta_dir_node::m_data
private

Definition at line 158 of file videometadatalistmanager.h.

Referenced by DataIsValid(), GetData(), and SetData().


The documentation for this class was generated from the following files: