MythTV
master
|
#include <libmythmetadata/videometadatalistmanager.h>
Public Types | |
using | VideoMetadataPtr = simple_ref_ptr< VideoMetadata > |
using | metadata_list = std::list< VideoMetadataPtr > |
Public Member Functions | |
VideoMetadataListManager () | |
~VideoMetadataListManager () | |
void | setList (metadata_list &list) |
const metadata_list & | getList () const |
VideoMetadataPtr | byFilename (const QString &file_name) const |
VideoMetadataPtr | byID (unsigned int db_id) const |
bool | purgeByFilename (const QString &file_name) |
bool | purgeByID (unsigned int db_id) |
Static Public Member Functions | |
static VideoMetadataPtr | loadOneFromDatabase (uint id) |
static void | loadAllFromDatabase (metadata_list &items, const QString &sql="", const QString &bindValue="") |
Load videometadata database into memory. More... | |
Private Attributes | |
class VideoMetadataListManagerImp * | m_imp {nullptr} |
Definition at line 10 of file videometadatalistmanager.h.
Definition at line 13 of file videometadatalistmanager.h.
using VideoMetadataListManager::metadata_list = std::list<VideoMetadataPtr> |
Definition at line 14 of file videometadatalistmanager.h.
VideoMetadataListManager::VideoMetadataListManager | ( | ) |
Definition at line 100 of file videometadatalistmanager.cpp.
VideoMetadataListManager::~VideoMetadataListManager | ( | ) |
Definition at line 105 of file videometadatalistmanager.cpp.
|
static |
Definition at line 111 of file videometadatalistmanager.cpp.
Referenced by Content::AddVideoLiveStream(), V2Video::GetVideo(), Video::GetVideo(), Frontend::PlayVideo(), MythFrontendService::PlayVideo(), and VideoDialog::UpdateWatchedState().
|
static |
Load videometadata database into memory.
Query consumed in VideoMetadataImp::fromDBRow
Definition at line 128 of file videometadatalistmanager.cpp.
Referenced by VideoListImp::buildDbList(), VideoListImp::buildFsysList(), VideoListImp::buildGroupList(), VideoListImp::buildTVList(), MetadataFactory::customEvent(), V2Video::GetVideoByFileName(), Video::GetVideoByFileName(), V2Video::GetVideoList(), Video::GetVideoList(), VideoListImp::InvalidateCache(), loadOneFromDatabase(), V2Video::RemoveVideoFromDB(), Video::RemoveVideoFromDB(), VideoScannerThread::run(), V2Video::UpdateVideoMetadata(), Video::UpdateVideoMetadata(), V2Video::UpdateVideoWatchedStatus(), and Video::UpdateVideoWatchedStatus().
void VideoMetadataListManager::setList | ( | metadata_list & | list | ) |
Definition at line 162 of file videometadatalistmanager.cpp.
Referenced by VideoListImp::buildDbList(), VideoListImp::buildFsysList(), VideoListImp::buildGroupList(), VideoListImp::buildTVList(), MetadataFactory::customEvent(), VideoListImp::fillMetadata(), VideoListImp::InvalidateCache(), and VideoScannerThread::run().
const VideoMetadataListManager::metadata_list & VideoMetadataListManager::getList | ( | ) | const |
Definition at line 168 of file videometadatalistmanager.cpp.
Referenced by VideoListImp::buildDbList(), VideoListImp::buildGroupList(), VideoListImp::buildTVList(), EditMetadataDialog::fillWidgets(), VideoFilterDialog::fillWidgets(), VideoListImp::TryFilter(), VideoListImp::update_meta_view(), and VideoScannerThread::verifyFiles().
VideoMetadataListManager::VideoMetadataPtr VideoMetadataListManager::byFilename | ( | const QString & | file_name | ) | const |
Definition at line 174 of file videometadatalistmanager.cpp.
Referenced by VideoMetadata::FillDataFromFilename(), and anonymous_namespace{videodlg.cpp}::PlayVideo().
VideoMetadataListManager::VideoMetadataPtr VideoMetadataListManager::byID | ( | unsigned int | db_id | ) | const |
Definition at line 180 of file videometadatalistmanager.cpp.
Referenced by MetadataFactory::customEvent(), VideoListImp::Delete(), and anonymous_namespace{videodlg.cpp}::PlayVideo().
bool VideoMetadataListManager::purgeByFilename | ( | const QString & | file_name | ) |
Definition at line 185 of file videometadatalistmanager.cpp.
bool VideoMetadataListManager::purgeByID | ( | unsigned int | db_id | ) |
Definition at line 190 of file videometadatalistmanager.cpp.
Referenced by VideoListImp::Delete(), and VideoScannerThread::removeOrphans().
|
private |
Definition at line 36 of file videometadatalistmanager.h.
Referenced by byFilename(), byID(), getList(), purgeByFilename(), purgeByID(), setList(), and ~VideoMetadataListManager().