MythTV
master
|
#include <libmythmetadata/videometadata.h>
Public Types | |
using | genre_entry = std::pair< int, QString > |
using | country_entry = std::pair< int, QString > |
using | cast_entry = std::pair< int, QString > |
using | genre_list = std::vector< genre_entry > |
using | country_list = std::vector< country_entry > |
using | cast_list = std::vector< cast_entry > |
Public Member Functions | |
VideoMetadata (const QString &filename=QString(), const QString &sortFilename=QString(), const QString &hash=QString(), const QString &trailer=QString(), const QString &coverfile=QString(), const QString &screenshot=QString(), const QString &banner=QString(), const QString &fanart=QString(), const QString &title=QString(), const QString &sortTitle=QString(), const QString &subtitle=QString(), const QString &sortSubtitle=QString(), const QString &tagline=QString(), int year=VIDEO_YEAR_DEFAULT, QDate releasedate=QDate(), const QString &inetref=QString(), int collectionref=0, const QString &homepage=QString(), const QString &director=QString(), const QString &studio=QString(), const QString &plot=QString(), float userrating=0.0, const QString &rating=QString(), int length=0, int playcount=0, int season=0, int episode=0, QDate insertdate=QDate(), int id=0, ParentalLevel::Level showlevel=ParentalLevel::plLowest, int categoryID=0, int childID=-1, bool browse=true, bool watched=false, const QString &playcommand=QString(), const QString &category=QString(), const genre_list &genres=genre_list(), const country_list &countries=country_list(), const cast_list &cast=cast_list(), const QString &host="", bool processed=false, VideoContentType contenttype=kContentUnknown) | |
~VideoMetadata () | |
VideoMetadata (MSqlQuery &query) | |
VideoMetadata (const VideoMetadata &rhs) | |
VideoMetadata & | operator= (const VideoMetadata &rhs) |
bool | sortBefore (const VideoMetadata &rhs) const |
void | toMap (InfoMap &metadataMap) |
QString | GetText (const QString &name) const |
void | GetStateMap (InfoMap &stateMap) const |
QString | GetState (const QString &name) const |
void | GetImageMap (InfoMap &imageMap) |
QString | GetImage (const QString &name) const |
const QString & | GetPrefix () const |
void | SetPrefix (const QString &prefix) |
const QString & | GetTitle () const |
const QString & | GetSortTitle () const |
void | SetTitle (const QString &title, const QString &sortTitle="") |
const QString & | GetSubtitle () const |
const QString & | GetSortSubtitle () const |
void | SetSubtitle (const QString &subtitle, const QString &sortSubtitle="") |
const QString & | GetTagline () const |
void | SetTagline (const QString &tagline) |
int | GetYear () const |
void | SetYear (int year) |
QDate | GetReleaseDate () const |
void | SetReleaseDate (QDate releasedate) |
const QString & | GetInetRef () const |
void | SetInetRef (const QString &inetRef) |
int | GetCollectionRef () const |
void | SetCollectionRef (int collectionref) |
const QString & | GetHomepage () const |
void | SetHomepage (const QString &homepage) |
const QString & | GetDirector () const |
void | SetDirector (const QString &director) |
const QString & | GetStudio () const |
void | SetStudio (const QString &studio) |
const QString & | GetPlot () const |
void | SetPlot (const QString &plot) |
float | GetUserRating () const |
void | SetUserRating (float userRating) |
const QString & | GetRating () const |
void | SetRating (const QString &rating) |
std::chrono::minutes | GetLength () const |
void | SetLength (std::chrono::minutes length) |
int | GetSeason () const |
void | SetSeason (int season) |
int | GetEpisode () const |
void | SetEpisode (int episode) |
QDate | GetInsertdate () const |
void | SetInsertdate (QDate date) |
unsigned int | GetID () const |
void | SetID (int id) |
int | GetChildID () const |
void | SetChildID (int childID) |
bool | GetBrowse () const |
void | SetBrowse (bool browse) |
bool | GetWatched () const |
void | SetWatched (bool watched) |
bool | GetProcessed () const |
void | SetProcessed (bool processed) |
VideoContentType | GetContentType () const |
void | SetContentType (VideoContentType contenttype) |
const QString & | GetPlayCommand () const |
void | SetPlayCommand (const QString &playCommand) |
unsigned int | GetPlayCount () const |
void | SetPlayCount (int count) |
ParentalLevel::Level | GetShowLevel () const |
void | SetShowLevel (ParentalLevel::Level showLevel) |
const QString & | GetHost () const |
void | SetHost (const QString &host) |
const QString & | GetFilename () const |
const QString & | GetSortFilename () const |
void | SetFilename (const QString &filename, const QString &sortFilename="") |
const QString & | GetHash () const |
void | SetHash (const QString &hash) |
const QString & | GetTrailer () const |
void | SetTrailer (const QString &trailer) |
const QString & | GetCoverFile () const |
void | SetCoverFile (const QString &coverFile) |
const QString & | GetScreenshot () const |
void | SetScreenshot (const QString &screenshot) |
const QString & | GetBanner () const |
void | SetBanner (const QString &banner) |
const QString & | GetFanart () const |
void | SetFanart (const QString &fanart) |
const QString & | GetCategory () const |
const genre_list & | GetGenres () const |
void | SetGenres (const genre_list &genres) |
const cast_list & | GetCast () const |
void | SetCast (const cast_list &cast) |
const country_list & | GetCountries () const |
void | SetCountries (const country_list &countries) |
int | GetCategoryID () const |
void | SetCategoryID (int id) |
void | SaveToDatabase () |
void | UpdateDatabase () |
bool | DeleteFromDatabase () |
bool | FillDataFromFilename (const VideoMetadataListManager &cache) |
bool | DeleteFile () |
void | Reset () |
Resets to default metadata. More... | |
bool | IsHostSet () const |
Static Public Member Functions | |
static int | UpdateHashedDBRecord (const QString &hash, const QString &file_name, const QString &host) |
static QString | VideoFileHash (const QString &file_name, const QString &host) |
static QString | FilenameToMeta (const QString &file_name, int position) |
static QString | TrimTitle (const QString &title, bool ignore_case) |
static QString | MetadataGetTextCb (const QString &name, void *data) |
static QString | MetadataGetImageCb (const QString &name, void *data) |
static QString | MetadataGetStateCb (const QString &name, void *data) |
Private Member Functions | |
Q_DECLARE_TR_FUNCTIONS (VideoMetadata) | |
Private Attributes | |
class VideoMetadataImp * | m_imp |
Definition at line 24 of file videometadata.h.
using VideoMetadata::genre_entry = std::pair<int, QString> |
Definition at line 29 of file videometadata.h.
using VideoMetadata::country_entry = std::pair<int, QString> |
Definition at line 30 of file videometadata.h.
using VideoMetadata::cast_entry = std::pair<int, QString> |
Definition at line 31 of file videometadata.h.
using VideoMetadata::genre_list = std::vector<genre_entry> |
Definition at line 32 of file videometadata.h.
using VideoMetadata::country_list = std::vector<country_entry> |
Definition at line 33 of file videometadata.h.
using VideoMetadata::cast_list = std::vector<cast_entry> |
Definition at line 34 of file videometadata.h.
|
explicit |
Definition at line 1225 of file videometadata.cpp.
VideoMetadata::~VideoMetadata | ( | ) |
Definition at line 1252 of file videometadata.cpp.
|
explicit |
Definition at line 1257 of file videometadata.cpp.
VideoMetadata::VideoMetadata | ( | const VideoMetadata & | rhs | ) |
Definition at line 1262 of file videometadata.cpp.
|
private |
|
static |
Definition at line 1069 of file videometadata.cpp.
Referenced by VideoScannerThread::updateDB().
|
static |
Definition at line 1117 of file videometadata.cpp.
Referenced by VideoMetadataImp::Reset(), VideoMetadataImp::saveToDatabase(), and VideoScannerThread::updateDB().
|
static |
Definition at line 1136 of file videometadata.cpp.
Referenced by dirhandler::handleFile(), ParseVideoFilename(), VideoPlayerCommandPrivate::PlayerFor(), VideoMetadataImp::saveToDatabase(), and VideoMetadataImp::VideoMetadataImp().
|
static |
VideoMetadata & VideoMetadata::operator= | ( | const VideoMetadata & | rhs | ) |
Definition at line 1267 of file videometadata.cpp.
bool VideoMetadata::sortBefore | ( | const VideoMetadata & | rhs | ) | const |
Definition at line 2011 of file videometadata.cpp.
Referenced by VideoFilterSettings::meta_less_than().
void VideoMetadata::toMap | ( | InfoMap & | metadataMap | ) |
Definition at line 1277 of file videometadata.cpp.
Referenced by ItemDetailPopup::Create(), VideoDialog::UpdateItem(), and VideoDialog::UpdateText().
QString VideoMetadata::GetText | ( | const QString & | name | ) | const |
Definition at line 1339 of file videometadata.cpp.
Referenced by MetadataGetTextCb().
void VideoMetadata::GetStateMap | ( | InfoMap & | stateMap | ) | const |
Definition at line 1425 of file videometadata.cpp.
Referenced by toMap().
QString VideoMetadata::GetState | ( | const QString & | name | ) | const |
Definition at line 1436 of file videometadata.cpp.
Referenced by MetadataGetStateCb().
void VideoMetadata::GetImageMap | ( | InfoMap & | imageMap | ) |
Definition at line 1449 of file videometadata.cpp.
Referenced by AddFileNode(), and toMap().
QString VideoMetadata::GetImage | ( | const QString & | name | ) | const |
Definition at line 1454 of file videometadata.cpp.
Referenced by MetadataGetImageCb().
|
static |
Definition at line 1503 of file videometadata.cpp.
Referenced by AddFileNode().
|
static |
Definition at line 1517 of file videometadata.cpp.
Referenced by AddFileNode().
|
static |
Definition at line 1525 of file videometadata.cpp.
Referenced by AddFileNode().
const QString & VideoMetadata::GetPrefix | ( | ) | const |
Definition at line 1533 of file videometadata.cpp.
Referenced by AddMetadataToDir().
void VideoMetadata::SetPrefix | ( | const QString & | prefix | ) |
Definition at line 1538 of file videometadata.cpp.
const QString & VideoMetadata::GetTitle | ( | ) | const |
Definition at line 1543 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), VideoDialog::createFetchDialog(), VideoDialog::CreatePlayMenu(), VideoDialog::dismissFetchDialog(), EditMetadataDialog::fillWidgets(), EditMetadataDialog::FindNetArt(), VideoDialog::GetFirstImage(), meta_data_node::getName(), GetText(), MetadataFactory::Lookup(), VideoFilterSettings::matches_filter(), VideoFilterSettings::meta_less_than(), EditMetadataDialog::OnSearchListSelection(), VideoPlayerCommandPrivate::PlayerFor(), VideoDialog::RemoveVideo(), VideoDialog::StartVideoImageSet(), toMap(), VideoDialog::UpdateItem(), and VideoDialog::VideoMenu().
const QString & VideoMetadata::GetSortTitle | ( | ) | const |
Definition at line 1548 of file videometadata.cpp.
void VideoMetadata::SetTitle | ( | const QString & | title, |
const QString & | sortTitle = "" |
||
) |
Definition at line 1553 of file videometadata.cpp.
Referenced by MetadataFactory::OnVideoResult(), and EditMetadataDialog::SetTitle().
const QString & VideoMetadata::GetSubtitle | ( | ) | const |
Definition at line 1558 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), EditMetadataDialog::fillWidgets(), EditMetadataDialog::FindNetArt(), GetText(), GuessLookupType(), MetadataFactory::Lookup(), VideoFilterSettings::matches_filter(), EditMetadataDialog::OnSearchListSelection(), VideoPlayerCommandPrivate::PlayerFor(), toMap(), VideoDialog::UpdateItem(), and VideoDialog::VideoMenu().
const QString & VideoMetadata::GetSortSubtitle | ( | ) | const |
Definition at line 1563 of file videometadata.cpp.
void VideoMetadata::SetSubtitle | ( | const QString & | subtitle, |
const QString & | sortSubtitle = "" |
||
) |
Definition at line 1568 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetSubtitle().
const QString & VideoMetadata::GetTagline | ( | ) | const |
Definition at line 1573 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), GetText(), and toMap().
void VideoMetadata::SetTagline | ( | const QString & | tagline | ) |
Definition at line 1578 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetTagline().
int VideoMetadata::GetYear | ( | ) | const |
Definition at line 1583 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), EditMetadataDialog::fillWidgets(), GetText(), VideoFilterSettings::matches_filter(), VideoFilterSettings::meta_less_than(), VideoPlayerCommandPrivate::PlayerFor(), and toMap().
void VideoMetadata::SetYear | ( | int | year | ) |
Definition at line 1588 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetYear().
QDate VideoMetadata::GetReleaseDate | ( | ) | const |
Definition at line 1593 of file videometadata.cpp.
void VideoMetadata::SetReleaseDate | ( | QDate | releasedate | ) |
Definition at line 1598 of file videometadata.cpp.
const QString & VideoMetadata::GetInetRef | ( | ) | const |
Definition at line 1603 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), EditMetadataDialog::fillWidgets(), EditMetadataDialog::FindNetArt(), GetText(), GuessLookupType(), MetadataFactory::Lookup(), VideoFilterSettings::matches_filter(), EditMetadataDialog::OnSearchListSelection(), VideoPlayerCommandPrivate::PlayerFor(), VideoDialog::StartVideoImageSet(), and toMap().
void VideoMetadata::SetInetRef | ( | const QString & | inetRef | ) |
Definition at line 1608 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetInetRef().
int VideoMetadata::GetCollectionRef | ( | ) | const |
Definition at line 1613 of file videometadata.cpp.
void VideoMetadata::SetCollectionRef | ( | int | collectionref | ) |
Definition at line 1618 of file videometadata.cpp.
const QString & VideoMetadata::GetHomepage | ( | ) | const |
Definition at line 1623 of file videometadata.cpp.
Referenced by VideoDialog::CreateInfoMenu(), EditMetadataDialog::fillWidgets(), GetText(), VideoDialog::ShowHomepage(), and toMap().
void VideoMetadata::SetHomepage | ( | const QString & | homepage | ) |
Definition at line 1628 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetHomepage().
const QString & VideoMetadata::GetDirector | ( | ) | const |
Definition at line 1633 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), EditMetadataDialog::fillWidgets(), GetText(), VideoPlayerCommandPrivate::PlayerFor(), and toMap().
void VideoMetadata::SetDirector | ( | const QString & | director | ) |
Definition at line 1638 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetDirector().
const QString & VideoMetadata::GetStudio | ( | ) | const |
Definition at line 1643 of file videometadata.cpp.
Referenced by anonymous_namespace{videodlg.cpp}::CopyMetadataToUI(), GetText(), and toMap().
void VideoMetadata::SetStudio | ( | const QString & | studio | ) |
Definition at line 1648 of file videometadata.cpp.
const QString & VideoMetadata::GetPlot | ( | ) | const |
Definition at line 1653 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), PlotDialog::Create(), EditMetadataDialog::fillWidgets(), GetText(), VideoFilterSettings::matches_filter(), VideoPlayerCommandPrivate::PlayerFor(), and toMap().
void VideoMetadata::SetPlot | ( | const QString & | plot | ) |
Definition at line 1658 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetPlot().
float VideoMetadata::GetUserRating | ( | ) | const |
Definition at line 1663 of file videometadata.cpp.
Referenced by anonymous_namespace{videodlg.cpp}::CopyMetadataToUI(), EditMetadataDialog::fillWidgets(), GetState(), GetStateMap(), GetText(), VideoFilterSettings::matches_filter(), VideoFilterSettings::meta_less_than(), and toMap().
void VideoMetadata::SetUserRating | ( | float | userRating | ) |
Definition at line 1668 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetUserRating().
const QString & VideoMetadata::GetRating | ( | ) | const |
Definition at line 1673 of file videometadata.cpp.
Referenced by VideoDialogPrivate::AutomaticParentalAdjustment(), EditMetadataDialog::fillWidgets(), GetText(), and toMap().
void VideoMetadata::SetRating | ( | const QString & | rating | ) |
Definition at line 1678 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetRating().
std::chrono::minutes VideoMetadata::GetLength | ( | ) | const |
Definition at line 1683 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), EditMetadataDialog::fillWidgets(), GetText(), VideoFilterSettings::matches_filter(), VideoFilterSettings::meta_less_than(), VideoPlayerCommandPrivate::PlayerFor(), and toMap().
void VideoMetadata::SetLength | ( | std::chrono::minutes | length | ) |
Definition at line 1688 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetLength().
int VideoMetadata::GetSeason | ( | ) | const |
Definition at line 1703 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), VideoDialog::createFetchDialog(), VideoDialog::dismissFetchDialog(), EditMetadataDialog::fillWidgets(), EditMetadataDialog::FindNetArt(), GetText(), GuessLookupType(), MetadataFactory::Lookup(), VideoFilterSettings::matches_filter(), VideoFilterSettings::meta_less_than(), EditMetadataDialog::OnSearchListSelection(), VideoPlayerCommandPrivate::PlayerFor(), VideoDialog::StartVideoImageSet(), and toMap().
void VideoMetadata::SetSeason | ( | int | season | ) |
Definition at line 1708 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetSeason().
int VideoMetadata::GetEpisode | ( | ) | const |
Definition at line 1713 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), VideoDialog::createFetchDialog(), VideoDialog::dismissFetchDialog(), EditMetadataDialog::fillWidgets(), EditMetadataDialog::FindNetArt(), GetText(), GuessLookupType(), MetadataFactory::Lookup(), VideoFilterSettings::matches_filter(), VideoFilterSettings::meta_less_than(), EditMetadataDialog::OnSearchListSelection(), VideoPlayerCommandPrivate::PlayerFor(), VideoDialog::StartVideoImageSet(), and toMap().
void VideoMetadata::SetEpisode | ( | int | episode | ) |
Definition at line 1718 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetEpisode().
QDate VideoMetadata::GetInsertdate | ( | ) | const |
Definition at line 1723 of file videometadata.cpp.
Referenced by GetText(), VideoFilterSettings::matches_filter(), VideoFilterSettings::meta_less_than(), and toMap().
void VideoMetadata::SetInsertdate | ( | QDate | date | ) |
Definition at line 1728 of file videometadata.cpp.
unsigned int VideoMetadata::GetID | ( | ) | const |
Definition at line 1733 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), EditMetadataDialog::fillWidgets(), VideoDialog::GetItemByMetadata(), VideoFilterSettings::meta_less_than(), VideoDialog::OnRemoveVideo(), VideoPlayerCommandPrivate::PlayerFor(), VideoScannerThread::updateDB(), and VideoDialog::UpdateWatchedState().
void VideoMetadata::SetID | ( | int | id | ) |
Definition at line 1738 of file videometadata.cpp.
int VideoMetadata::GetChildID | ( | ) | const |
Definition at line 1743 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), GetText(), and toMap().
void VideoMetadata::SetChildID | ( | int | childID | ) |
Definition at line 1748 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetChild().
bool VideoMetadata::GetBrowse | ( | ) | const |
Definition at line 1753 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), GetText(), VideoFilterSettings::matches_filter(), and toMap().
void VideoMetadata::SetBrowse | ( | bool | browse | ) |
Definition at line 1758 of file videometadata.cpp.
bool VideoMetadata::GetWatched | ( | ) | const |
Definition at line 1763 of file videometadata.cpp.
Referenced by anonymous_namespace{videodlg.cpp}::CopyMetadataToUI(), anonymous_namespace{videodlg.cpp}::CopyPlaybackStateToUI(), EditMetadataDialog::fillWidgets(), GetState(), GetStateMap(), GetText(), VideoFilterSettings::matches_filter(), VideoDialog::ToggleWatched(), toMap(), VideoDialog::UpdateWatchedState(), and VideoDialog::VideoMenu().
void VideoMetadata::SetWatched | ( | bool | watched | ) |
Definition at line 1768 of file videometadata.cpp.
Referenced by VideoDialog::ToggleWatched(), and VideoDialog::UpdateWatchedState().
bool VideoMetadata::GetProcessed | ( | ) | const |
Definition at line 1773 of file videometadata.cpp.
Referenced by VideoDialog::CreateManageMenu(), GetText(), VideoDialog::ToggleProcess(), toMap(), and VideoDialog::VideoAutoSearch().
void VideoMetadata::SetProcessed | ( | bool | processed | ) |
Definition at line 1778 of file videometadata.cpp.
Referenced by VideoDialog::OnVideoImageSetDone(), and VideoDialog::ToggleProcess().
VideoContentType VideoMetadata::GetContentType | ( | ) | const |
Definition at line 1783 of file videometadata.cpp.
void VideoMetadata::SetContentType | ( | VideoContentType | contenttype | ) |
Definition at line 1788 of file videometadata.cpp.
const QString & VideoMetadata::GetPlayCommand | ( | ) | const |
Definition at line 1793 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), and VideoPlayerCommandPrivate::PlayerFor().
void VideoMetadata::SetPlayCommand | ( | const QString & | playCommand | ) |
Definition at line 1798 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetPlayer().
unsigned int VideoMetadata::GetPlayCount | ( | ) | const |
Definition at line 1693 of file videometadata.cpp.
void VideoMetadata::SetPlayCount | ( | int | count | ) |
Definition at line 1698 of file videometadata.cpp.
ParentalLevel::Level VideoMetadata::GetShowLevel | ( | ) | const |
Definition at line 1803 of file videometadata.cpp.
Referenced by anonymous_namespace{videodlg.cpp}::CopyMetadataToUI(), EditMetadataDialog::fillWidgets(), GetState(), GetStateMap(), VideoFilterSettings::matches_filter(), and VideoDialog::OnParentalChange().
void VideoMetadata::SetShowLevel | ( | ParentalLevel::Level | showLevel | ) |
Definition at line 1808 of file videometadata.cpp.
Referenced by VideoDialogPrivate::AutomaticParentalAdjustment(), and VideoDialog::OnParentalChange().
const QString & VideoMetadata::GetHost | ( | ) | const |
Definition at line 1833 of file videometadata.cpp.
Referenced by AddMetadataToDir(), VideoPlayerCommandPrivate::AltPlayerFor(), anonymous_namespace{videodlg.cpp}::CopyMetadataToUI(), VideoDialog::CreatePlayMenu(), EditMetadataDialog::fillWidgets(), EditMetadataDialog::FindBanner(), EditMetadataDialog::FindCoverArt(), EditMetadataDialog::FindFanart(), EditMetadataDialog::FindScreenshot(), EditMetadataDialog::FindTrailer(), VideoDialog::GetBanner(), VideoDialog::GetCoverImage(), VideoDialog::GetFanart(), VideoDialog::GetFirstImage(), VideoDialog::GetScreenshot(), MetadataFactory::Lookup(), EditMetadataDialog::OnSearchListSelection(), VideoPlayerCommandPrivate::PlayerFor(), VideoDialog::playTrailer(), VideoDialog::StartVideoImageSet(), TreeNodeDataPrivate::TreeNodeDataPrivate(), and VideoScannerThread::updateDB().
void VideoMetadata::SetHost | ( | const QString & | host | ) |
Definition at line 1838 of file videometadata.cpp.
Referenced by V2Video::AddVideo(), and VideoScannerThread::updateDB().
const QString & VideoMetadata::GetFilename | ( | ) | const |
Definition at line 1813 of file videometadata.cpp.
Referenced by AddMetadataToDir(), VideoPlayerCommandPrivate::AltPlayerFor(), anonymous_namespace{videodlg.cpp}::CopyPlaybackStateToUI(), GetText(), MetadataFactory::Lookup(), ItemDetailPopup::OnPlay(), operator!=(), operator==(), VideoPlayerCommandPrivate::PlayerFor(), VideoDialog::playFolder(), VideoDialog::playVideo(), VideoDialog::playVideoAlt(), VideoDialog::playVideoWithTrailers(), VideoDialog::StartVideoImageSet(), toMap(), and VideoScannerThread::updateDB().
const QString & VideoMetadata::GetSortFilename | ( | ) | const |
Definition at line 1818 of file videometadata.cpp.
Referenced by GetText(), VideoFilterSettings::meta_less_than(), metadata_path_sort::sort(), and toMap().
void VideoMetadata::SetFilename | ( | const QString & | filename, |
const QString & | sortFilename = "" |
||
) |
Definition at line 1843 of file videometadata.cpp.
const QString & VideoMetadata::GetHash | ( | ) | const |
Definition at line 1823 of file videometadata.cpp.
Referenced by VideoDialog::createFetchDialog(), VideoDialog::dismissFetchDialog(), and VideoDialog::VideoMenu().
void VideoMetadata::SetHash | ( | const QString & | hash | ) |
Definition at line 1828 of file videometadata.cpp.
const QString & VideoMetadata::GetTrailer | ( | ) | const |
Definition at line 1848 of file videometadata.cpp.
Referenced by anonymous_namespace{videodlg.cpp}::CopyMetadataToUI(), VideoDialog::CreatePlayMenu(), EditMetadataDialog::fillWidgets(), GetState(), GetStateMap(), VideoDialog::playTrailer(), and VideoDialog::VideoMenu().
void VideoMetadata::SetTrailer | ( | const QString & | trailer | ) |
Definition at line 1853 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetTrailer().
const QString & VideoMetadata::GetCoverFile | ( | ) | const |
Definition at line 1858 of file videometadata.cpp.
Referenced by anonymous_namespace{videodlg.cpp}::CopyMetadataToUI(), EditMetadataDialog::fillWidgets(), VideoDialog::GetCoverImage(), VideoDialog::GetFirstImage(), VideoFilterSettings::matches_filter(), and VideoDialog::StartVideoImageSet().
void VideoMetadata::SetCoverFile | ( | const QString & | coverFile | ) |
Definition at line 1863 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetCoverArt(), and VideoDialog::StartVideoImageSet().
const QString & VideoMetadata::GetScreenshot | ( | ) | const |
Definition at line 1868 of file videometadata.cpp.
Referenced by anonymous_namespace{videodlg.cpp}::CopyMetadataToUI(), EditMetadataDialog::fillWidgets(), VideoDialog::GetFirstImage(), VideoDialog::GetScreenshot(), and VideoDialog::StartVideoImageSet().
void VideoMetadata::SetScreenshot | ( | const QString & | screenshot | ) |
Definition at line 1873 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetScreenshot(), and VideoDialog::StartVideoImageSet().
const QString & VideoMetadata::GetBanner | ( | ) | const |
Definition at line 1878 of file videometadata.cpp.
Referenced by anonymous_namespace{videodlg.cpp}::CopyMetadataToUI(), EditMetadataDialog::fillWidgets(), VideoDialog::GetBanner(), VideoDialog::GetFirstImage(), and VideoDialog::StartVideoImageSet().
void VideoMetadata::SetBanner | ( | const QString & | banner | ) |
Definition at line 1883 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetBanner(), and VideoDialog::StartVideoImageSet().
const QString & VideoMetadata::GetFanart | ( | ) | const |
Definition at line 1888 of file videometadata.cpp.
Referenced by anonymous_namespace{videodlg.cpp}::CopyMetadataToUI(), EditMetadataDialog::fillWidgets(), VideoDialog::GetFanart(), VideoDialog::GetFirstImage(), and VideoDialog::StartVideoImageSet().
void VideoMetadata::SetFanart | ( | const QString & | fanart | ) |
Definition at line 1893 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetFanart(), and VideoDialog::StartVideoImageSet().
const QString & VideoMetadata::GetCategory | ( | ) | const |
Definition at line 1898 of file videometadata.cpp.
const VideoMetadata::genre_list & VideoMetadata::GetGenres | ( | ) | const |
Definition at line 1908 of file videometadata.cpp.
Referenced by GetDisplayGenres(), and VideoFilterSettings::matches_filter().
void VideoMetadata::SetGenres | ( | const genre_list & | genres | ) |
Definition at line 1913 of file videometadata.cpp.
const VideoMetadata::cast_list & VideoMetadata::GetCast | ( | ) | const |
Definition at line 1918 of file videometadata.cpp.
Referenced by VideoDialog::CreateInfoMenu(), GetDisplayCast(), and VideoFilterSettings::matches_filter().
void VideoMetadata::SetCast | ( | const cast_list & | cast | ) |
Definition at line 1923 of file videometadata.cpp.
const VideoMetadata::country_list & VideoMetadata::GetCountries | ( | ) | const |
Definition at line 1928 of file videometadata.cpp.
Referenced by GetDisplayCountries(), and VideoFilterSettings::matches_filter().
void VideoMetadata::SetCountries | ( | const country_list & | countries | ) |
Definition at line 1933 of file videometadata.cpp.
int VideoMetadata::GetCategoryID | ( | ) | const |
Definition at line 1938 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), and VideoFilterSettings::matches_filter().
void VideoMetadata::SetCategoryID | ( | int | id | ) |
Definition at line 1943 of file videometadata.cpp.
Referenced by EditMetadataDialog::AddCategory(), and EditMetadataDialog::SetCategory().
void VideoMetadata::SaveToDatabase | ( | ) |
Definition at line 1948 of file videometadata.cpp.
Referenced by V2Video::AddVideo(), and VideoScannerThread::updateDB().
void VideoMetadata::UpdateDatabase | ( | ) |
Definition at line 1953 of file videometadata.cpp.
Referenced by VideoDialog::OnParentalChange(), VideoDialog::OnVideoImageSetDone(), VideoDialog::ResetMetadata(), EditMetadataDialog::SaveAndExit(), VideoDialog::ToggleProcess(), and VideoDialog::ToggleWatched().
bool VideoMetadata::DeleteFromDatabase | ( | ) |
Definition at line 1958 of file videometadata.cpp.
bool VideoMetadata::FillDataFromFilename | ( | const VideoMetadataListManager & | cache | ) |
Definition at line 1980 of file videometadata.cpp.
bool VideoMetadata::DeleteFile | ( | ) |
Definition at line 1996 of file videometadata.cpp.
void VideoMetadata::Reset | ( | ) |
Resets to default metadata.
Definition at line 2001 of file videometadata.cpp.
Referenced by VideoDialog::ResetMetadata().
bool VideoMetadata::IsHostSet | ( | ) | const |
Definition at line 2006 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), anonymous_namespace{videodlg.cpp}::CopyMetadataToUI(), VideoDialog::GetBanner(), VideoDialog::GetCoverImage(), VideoDialog::GetFanart(), VideoDialog::GetScreenshot(), VideoPlayerCommandPrivate::PlayerFor(), and VideoDialog::playTrailer().
|
private |
Definition at line 242 of file videometadata.h.
Referenced by DeleteFile(), DeleteFromDatabase(), FillDataFromFilename(), GetBanner(), GetBrowse(), GetCast(), GetCategory(), GetCategoryID(), GetChildID(), GetCollectionRef(), GetContentType(), GetCountries(), GetCoverFile(), GetDirector(), GetEpisode(), GetFanart(), GetFilename(), GetGenres(), GetHash(), GetHomepage(), GetHost(), GetID(), GetImage(), GetImageMap(), GetInetRef(), GetInsertdate(), GetLength(), GetPlayCommand(), GetPlayCount(), GetPlot(), GetPrefix(), GetProcessed(), GetRating(), GetReleaseDate(), GetScreenshot(), GetSeason(), GetShowLevel(), GetSortFilename(), GetSortSubtitle(), GetSortTitle(), GetStudio(), GetSubtitle(), GetTagline(), GetTitle(), GetTrailer(), GetUserRating(), GetWatched(), GetYear(), IsHostSet(), operator=(), Reset(), SaveToDatabase(), SetBanner(), SetBrowse(), SetCast(), SetCategoryID(), SetChildID(), SetCollectionRef(), SetContentType(), SetCountries(), SetCoverFile(), SetDirector(), SetEpisode(), SetFanart(), SetFilename(), SetGenres(), SetHash(), SetHomepage(), SetHost(), SetID(), SetInetRef(), SetInsertdate(), SetLength(), SetPlayCommand(), SetPlayCount(), SetPlot(), SetPrefix(), SetProcessed(), SetRating(), SetReleaseDate(), SetScreenshot(), SetSeason(), SetShowLevel(), SetStudio(), SetSubtitle(), SetTagline(), SetTitle(), SetTrailer(), SetUserRating(), SetWatched(), SetYear(), sortBefore(), UpdateDatabase(), VideoMetadata(), and ~VideoMetadata().