VideoListImp Class Reference

List of all members.

Public Types

typedef std::vector
< VideoMetadata * > 
metadata_view_list

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 flatlist, int group_type)
bool refreshNode (MythGenericTree *node)
unsigned int count () const
const VideoFilterSettingsgetCurrentVideoFilter () const
void setCurrentVideoFilter (const VideoFilterSettings &filter)
int TryFilter (const VideoFilterSettings &filter) const
const VideoMetadataListManagergetListCache () const
unsigned int getFilterChangedState ()
bool Delete (unsigned int video_id, VideoList &dummy)
MythGenericTreeGetTreeRoot ()
void InvalidateCache ()

Private Types

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

Private Member Functions

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

Private Attributes

bool m_ListUnknown
bool m_LoadMetaData
std::auto_ptr< MythGenericTreevideo_tree_root
VideoMetadataListManager m_metadata
meta_dir_node m_metadata_tree
metadata_view_list m_metadata_view_flat
meta_dir_node m_metadata_view_tree
metadata_list_type m_metadata_list_type
VideoFilterSettings m_video_filter

Detailed Description

Definition at line 354 of file videolist.cpp.


Member Typedef Documentation

Definition at line 357 of file videolist.cpp.

Definition at line 366 of file videolist.cpp.

Definition at line 367 of file videolist.cpp.


Member Enumeration Documentation

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

Definition at line 360 of file videolist.cpp.


Constructor & Destructor Documentation

VideoListImp::VideoListImp (  ) 

Definition at line 554 of file videolist.cpp.


Member Function Documentation

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

Definition at line 562 of file videolist.cpp.

Referenced by buildVideoList().

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

Definition at line 635 of file videolist.cpp.

Referenced by VideoList::buildVideoList().

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

Definition at line 685 of file videolist.cpp.

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

bool VideoListImp::refreshNode ( MythGenericTree node  ) 

Definition at line 662 of file videolist.cpp.

Referenced by VideoList::refreshNode().

unsigned int VideoListImp::count (  )  const [inline]

Definition at line 382 of file videolist.cpp.

Referenced by VideoList::count().

const VideoFilterSettings& VideoListImp::getCurrentVideoFilter (  )  const [inline]

Definition at line 387 of file videolist.cpp.

Referenced by VideoList::getCurrentVideoFilter().

void VideoListImp::setCurrentVideoFilter ( const VideoFilterSettings filter  )  [inline]

Definition at line 392 of file videolist.cpp.

Referenced by VideoList::setCurrentVideoFilter().

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

Definition at line 397 of file videolist.cpp.

Referenced by VideoList::TryFilter().

const VideoMetadataListManager& VideoListImp::getListCache (  )  const [inline]

Definition at line 408 of file videolist.cpp.

Referenced by VideoList::getListCache().

unsigned int VideoListImp::getFilterChangedState (  )  [inline]

Definition at line 413 of file videolist.cpp.

Referenced by VideoList::getFilterChangedState().

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

Definition at line 418 of file videolist.cpp.

Referenced by VideoList::Delete().

MythGenericTree* VideoListImp::GetTreeRoot (  )  [inline]

Definition at line 431 of file videolist.cpp.

Referenced by VideoList::GetTreeRoot().

void VideoListImp::InvalidateCache (  )  [inline]

Definition at line 436 of file videolist.cpp.

Referenced by VideoList::InvalidateCache().

void VideoListImp::sort_view_data ( bool  flat_list  )  [private]

Definition at line 748 of file videolist.cpp.

Referenced by update_meta_view().

void VideoListImp::fillMetadata ( metadata_list_type  whence  )  [private]

Definition at line 763 of file videolist.cpp.

Referenced by refreshList().

void VideoListImp::buildFsysList (  )  [private]

Definition at line 1024 of file videolist.cpp.

Referenced by fillMetadata().

void VideoListImp::buildGroupList ( metadata_list_type  whence  )  [private]

Definition at line 800 of file videolist.cpp.

Referenced by fillMetadata().

void VideoListImp::buildDbList (  )  [private]

Definition at line 978 of file videolist.cpp.

Referenced by fillMetadata().

void VideoListImp::buildTVList (  )  [private]

Definition at line 931 of file videolist.cpp.

Referenced by fillMetadata().

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

Definition at line 1262 of file videolist.cpp.

Referenced by buildFsysList().

void VideoListImp::update_meta_view ( bool  flat_list  )  [private]

Definition at line 1141 of file videolist.cpp.

Referenced by refreshList().


Member Data Documentation

Definition at line 460 of file videolist.cpp.

Referenced by buildFileList(), and VideoListImp().

Definition at line 461 of file videolist.cpp.

Referenced by buildFsysList(), and VideoListImp().

Definition at line 463 of file videolist.cpp.

Referenced by buildVideoList(), and GetTreeRoot().

Definition at line 468 of file videolist.cpp.

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

Definition at line 469 of file videolist.cpp.

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

Definition at line 471 of file videolist.cpp.

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:32 2012 for MythTV by  doxygen 1.6.3