MythTV  master
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
VideoListImp Class Reference
Collaboration diagram for VideoListImp:
Collaboration graph
[legend]

Public Types

using metadata_view_list = vector< VideoMetadata * >
 

Public Member Functions

 VideoListImp ()
 
void build_generic_tree (MythGenericTree *dst, meta_dir_node *src, bool include_updirs)
 
MythGenericTreebuildVideoList (bool filebrowser, bool flatlist, int group_type, const ParentalLevel &parental_level, bool include_updirs)
 
void refreshList (bool filebrowser, const ParentalLevel &parental_level, bool flat_list, int group_type)
 
bool refreshNode (MythGenericTree *node)
 
unsigned int count (void) const
 
const VideoFilterSettingsgetCurrentVideoFilter () const
 
void setCurrentVideoFilter (const VideoFilterSettings &filter)
 
int TryFilter (const VideoFilterSettings &filter) const
 
const VideoMetadataListManagergetListCache (void) const
 
unsigned int getFilterChangedState (void)
 
bool Delete (unsigned int video_id, VideoList &)
 
MythGenericTreeGetTreeRoot (void)
 
void InvalidateCache ()
 

Private Types

enum  metadata_list_type {
  ltNone, ltFileSystem, ltDBMetadata, ltDBGenreGroup,
  ltDBCategoryGroup, ltDBYearGroup, ltDBDirectorGroup, ltDBStudioGroup,
  ltDBCastGroup, ltDBUserRatingGroup, ltDBInsertDateGroup, ltTVMetadata
}
 
using metadata_list = VideoMetadataListManager::metadata_list
 
using MetadataPtr = VideoMetadataListManager::VideoMetadataPtr
 

Private Member Functions

void sort_view_data (bool flat_list)
 
void fillMetadata (metadata_list_type whence)
 
void buildFsysList (void)
 
void buildGroupList (metadata_list_type whence)
 
void buildDbList (void)
 
void buildTVList (void)
 
void buildFileList (smart_dir_node &directory, metadata_list &metalist, const QString &prefix) const
 
void update_meta_view (bool flat_list)
 

Private Attributes

bool m_listUnknown {false}
 
bool m_loadMetaData {false}
 
QScopedPointer< MythGenericTreem_videoTreeRoot
 
VideoMetadataListManager m_metadata
 
meta_dir_node m_metadataTree
 
metadata_view_list m_metadataViewFlat
 
meta_dir_node m_metadataViewTree
 
metadata_list_type m_metadataListType {ltNone}
 
VideoFilterSettings m_videoFilter
 

Detailed Description

Definition at line 333 of file videolist.cpp.

Member Typedef Documentation

◆ metadata_view_list

Definition at line 336 of file videolist.cpp.

◆ metadata_list

Definition at line 345 of file videolist.cpp.

◆ MetadataPtr

Definition at line 346 of file videolist.cpp.

Member Enumeration Documentation

◆ metadata_list_type

Enumerator
ltNone 
ltFileSystem 
ltDBMetadata 
ltDBGenreGroup 
ltDBCategoryGroup 
ltDBYearGroup 
ltDBDirectorGroup 
ltDBStudioGroup 
ltDBCastGroup 
ltDBUserRatingGroup 
ltDBInsertDateGroup 
ltTVMetadata 

Definition at line 339 of file videolist.cpp.

Constructor & Destructor Documentation

◆ VideoListImp()

VideoListImp::VideoListImp ( )

Definition at line 537 of file videolist.cpp.

Member Function Documentation

◆ build_generic_tree()

void VideoListImp::build_generic_tree ( MythGenericTree dst,
meta_dir_node src,
bool  include_updirs 
)

Definition at line 544 of file videolist.cpp.

Referenced by buildVideoList().

◆ buildVideoList()

MythGenericTree * VideoListImp::buildVideoList ( bool  filebrowser,
bool  flatlist,
int  group_type,
const ParentalLevel parental_level,
bool  include_updirs 
)

Definition at line 625 of file videolist.cpp.

◆ refreshList()

void VideoListImp::refreshList ( bool  filebrowser,
const ParentalLevel parental_level,
bool  flat_list,
int  group_type 
)

Definition at line 671 of file videolist.cpp.

Referenced by buildVideoList().

◆ refreshNode()

bool VideoListImp::refreshNode ( MythGenericTree node)

Definition at line 648 of file videolist.cpp.

◆ count()

unsigned int VideoListImp::count ( void  ) const
inline

Definition at line 362 of file videolist.cpp.

◆ getCurrentVideoFilter()

const VideoFilterSettings& VideoListImp::getCurrentVideoFilter ( ) const
inline

Definition at line 367 of file videolist.cpp.

◆ setCurrentVideoFilter()

void VideoListImp::setCurrentVideoFilter ( const VideoFilterSettings filter)
inline

Definition at line 372 of file videolist.cpp.

◆ TryFilter()

int VideoListImp::TryFilter ( const VideoFilterSettings filter) const
inline

Definition at line 377 of file videolist.cpp.

◆ getListCache()

const VideoMetadataListManager& VideoListImp::getListCache ( void  ) const
inline

Definition at line 385 of file videolist.cpp.

◆ getFilterChangedState()

unsigned int VideoListImp::getFilterChangedState ( void  )
inline

Definition at line 390 of file videolist.cpp.

◆ Delete()

bool VideoListImp::Delete ( unsigned int  video_id,
VideoList  
)
inline

Definition at line 395 of file videolist.cpp.

◆ GetTreeRoot()

MythGenericTree* VideoListImp::GetTreeRoot ( void  )
inline

Definition at line 413 of file videolist.cpp.

◆ InvalidateCache()

void VideoListImp::InvalidateCache ( )
inline

Definition at line 418 of file videolist.cpp.

◆ sort_view_data()

void VideoListImp::sort_view_data ( bool  flat_list)
private

Definition at line 734 of file videolist.cpp.

Referenced by update_meta_view().

◆ fillMetadata()

void VideoListImp::fillMetadata ( metadata_list_type  whence)
private

Definition at line 748 of file videolist.cpp.

Referenced by refreshList().

◆ buildFsysList()

void VideoListImp::buildFsysList ( void  )
private

Definition at line 993 of file videolist.cpp.

Referenced by fillMetadata().

◆ buildGroupList()

void VideoListImp::buildGroupList ( metadata_list_type  whence)
private

Definition at line 785 of file videolist.cpp.

Referenced by fillMetadata().

◆ buildDbList()

void VideoListImp::buildDbList ( void  )
private

Definition at line 949 of file videolist.cpp.

Referenced by fillMetadata().

◆ buildTVList()

void VideoListImp::buildTVList ( void  )
private

Definition at line 905 of file videolist.cpp.

Referenced by fillMetadata().

◆ buildFileList()

void VideoListImp::buildFileList ( smart_dir_node directory,
metadata_list metalist,
const QString &  prefix 
) const
private

Definition at line 1209 of file videolist.cpp.

Referenced by buildFsysList().

◆ update_meta_view()

void VideoListImp::update_meta_view ( bool  flat_list)
private

Definition at line 1105 of file videolist.cpp.

Referenced by refreshList().

Member Data Documentation

◆ m_listUnknown

bool VideoListImp::m_listUnknown {false}
private

Definition at line 442 of file videolist.cpp.

Referenced by buildFileList(), and VideoListImp().

◆ m_loadMetaData

bool VideoListImp::m_loadMetaData {false}
private

Definition at line 443 of file videolist.cpp.

Referenced by buildFsysList(), and VideoListImp().

◆ m_videoTreeRoot

QScopedPointer<MythGenericTree> VideoListImp::m_videoTreeRoot
private

Definition at line 445 of file videolist.cpp.

Referenced by buildVideoList().

◆ m_metadata

VideoMetadataListManager VideoListImp::m_metadata
private

◆ m_metadataTree

meta_dir_node VideoListImp::m_metadataTree
private

◆ m_metadataViewFlat

metadata_view_list VideoListImp::m_metadataViewFlat
private

Definition at line 450 of file videolist.cpp.

Referenced by buildVideoList(), sort_view_data(), and update_meta_view().

◆ m_metadataViewTree

meta_dir_node VideoListImp::m_metadataViewTree
private

Definition at line 451 of file videolist.cpp.

Referenced by buildVideoList(), sort_view_data(), and update_meta_view().

◆ m_metadataListType

metadata_list_type VideoListImp::m_metadataListType {ltNone}
private

Definition at line 453 of file videolist.cpp.

Referenced by fillMetadata(), and refreshNode().

◆ m_videoFilter

VideoFilterSettings VideoListImp::m_videoFilter
private

Definition at line 455 of file videolist.cpp.

Referenced by refreshList(), sort_view_data(), and update_meta_view().


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