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)
 
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 329 of file videolist.cpp.

Member Typedef Documentation

◆ metadata_view_list

Definition at line 332 of file videolist.cpp.

◆ metadata_list

Definition at line 341 of file videolist.cpp.

◆ MetadataPtr

Definition at line 342 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 335 of file videolist.cpp.

Constructor & Destructor Documentation

◆ VideoListImp()

VideoListImp::VideoListImp ( )

Definition at line 536 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 543 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 624 of file videolist.cpp.

Referenced by VideoList::buildVideoList().

◆ refreshList()

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

Definition at line 670 of file videolist.cpp.

Referenced by buildVideoList(), and VideoList::refreshList().

◆ refreshNode()

bool VideoListImp::refreshNode ( MythGenericTree node)

Definition at line 647 of file videolist.cpp.

Referenced by VideoList::refreshNode().

◆ count()

unsigned int VideoListImp::count ( void  ) const
inline

Definition at line 358 of file videolist.cpp.

Referenced by VideoList::count().

◆ getCurrentVideoFilter()

const VideoFilterSettings& VideoListImp::getCurrentVideoFilter ( ) const
inline

Definition at line 363 of file videolist.cpp.

Referenced by VideoList::getCurrentVideoFilter().

◆ setCurrentVideoFilter()

void VideoListImp::setCurrentVideoFilter ( const VideoFilterSettings filter)
inline

Definition at line 368 of file videolist.cpp.

Referenced by VideoList::setCurrentVideoFilter().

◆ TryFilter()

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

Definition at line 373 of file videolist.cpp.

Referenced by VideoList::TryFilter().

◆ getListCache()

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

Definition at line 384 of file videolist.cpp.

Referenced by VideoList::getListCache().

◆ getFilterChangedState()

unsigned int VideoListImp::getFilterChangedState ( void  )
inline

Definition at line 389 of file videolist.cpp.

Referenced by VideoList::getFilterChangedState().

◆ Delete()

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

Definition at line 394 of file videolist.cpp.

Referenced by VideoList::Delete().

◆ GetTreeRoot()

MythGenericTree* VideoListImp::GetTreeRoot ( void  )
inline

Definition at line 412 of file videolist.cpp.

Referenced by VideoList::GetTreeRoot().

◆ InvalidateCache()

void VideoListImp::InvalidateCache ( )
inline

Definition at line 417 of file videolist.cpp.

Referenced by VideoList::InvalidateCache().

◆ sort_view_data()

void VideoListImp::sort_view_data ( bool  flat_list)
private

Definition at line 733 of file videolist.cpp.

Referenced by update_meta_view().

◆ fillMetadata()

void VideoListImp::fillMetadata ( metadata_list_type  whence)
private

Definition at line 747 of file videolist.cpp.

Referenced by refreshList().

◆ buildFsysList()

void VideoListImp::buildFsysList ( void  )
private

Definition at line 1004 of file videolist.cpp.

Referenced by fillMetadata().

◆ buildGroupList()

void VideoListImp::buildGroupList ( metadata_list_type  whence)
private

Definition at line 784 of file videolist.cpp.

Referenced by fillMetadata().

◆ buildDbList()

void VideoListImp::buildDbList ( void  )
private

Definition at line 958 of file videolist.cpp.

Referenced by fillMetadata().

◆ buildTVList()

void VideoListImp::buildTVList ( void  )
private

Definition at line 914 of file videolist.cpp.

Referenced by fillMetadata().

◆ buildFileList()

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

Definition at line 1226 of file videolist.cpp.

Referenced by buildFsysList().

◆ update_meta_view()

void VideoListImp::update_meta_view ( bool  flat_list)
private

Definition at line 1118 of file videolist.cpp.

Referenced by refreshList().

Member Data Documentation

◆ m_listUnknown

bool VideoListImp::m_listUnknown {false}
private

Definition at line 441 of file videolist.cpp.

Referenced by buildFileList(), and VideoListImp().

◆ m_loadMetaData

bool VideoListImp::m_loadMetaData {false}
private

Definition at line 442 of file videolist.cpp.

Referenced by buildFsysList(), and VideoListImp().

◆ m_videoTreeRoot

QScopedPointer<MythGenericTree> VideoListImp::m_videoTreeRoot
private

Definition at line 444 of file videolist.cpp.

Referenced by buildVideoList(), and GetTreeRoot().

◆ 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 449 of file videolist.cpp.

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

◆ m_metadataViewTree

meta_dir_node VideoListImp::m_metadataViewTree
private

Definition at line 450 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 452 of file videolist.cpp.

Referenced by Delete(), fillMetadata(), InvalidateCache(), and refreshNode().

◆ m_videoFilter

VideoFilterSettings VideoListImp::m_videoFilter
private

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