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 1226 of file videometadata.cpp.
VideoMetadata::~VideoMetadata | ( | ) |
Definition at line 1253 of file videometadata.cpp.
|
explicit |
Definition at line 1258 of file videometadata.cpp.
VideoMetadata::VideoMetadata | ( | const VideoMetadata & | rhs | ) |
Definition at line 1263 of file videometadata.cpp.
|
private |
|
static |
Definition at line 1070 of file videometadata.cpp.
Referenced by VideoScannerThread::updateDB().
|
static |
Definition at line 1118 of file videometadata.cpp.
Referenced by VideoMetadataImp::Reset(), VideoMetadataImp::saveToDatabase(), and VideoScannerThread::updateDB().
|
static |
Definition at line 1137 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 1268 of file videometadata.cpp.
bool VideoMetadata::sortBefore | ( | const VideoMetadata & | rhs | ) | const |
Definition at line 2012 of file videometadata.cpp.
Referenced by VideoFilterSettings::meta_less_than().
void VideoMetadata::toMap | ( | InfoMap & | metadataMap | ) |
Definition at line 1278 of file videometadata.cpp.
Referenced by ItemDetailPopup::Create(), VideoDialog::UpdateItem(), and VideoDialog::UpdateText().
QString VideoMetadata::GetText | ( | const QString & | name | ) | const |
Definition at line 1340 of file videometadata.cpp.
Referenced by MetadataGetTextCb().
void VideoMetadata::GetStateMap | ( | InfoMap & | stateMap | ) | const |
Definition at line 1426 of file videometadata.cpp.
Referenced by toMap().
QString VideoMetadata::GetState | ( | const QString & | name | ) | const |
Definition at line 1437 of file videometadata.cpp.
Referenced by MetadataGetStateCb().
void VideoMetadata::GetImageMap | ( | InfoMap & | imageMap | ) |
Definition at line 1450 of file videometadata.cpp.
Referenced by AddFileNode(), and toMap().
QString VideoMetadata::GetImage | ( | const QString & | name | ) | const |
Definition at line 1455 of file videometadata.cpp.
Referenced by MetadataGetImageCb().
|
static |
Definition at line 1504 of file videometadata.cpp.
Referenced by AddFileNode().
|
static |
Definition at line 1518 of file videometadata.cpp.
Referenced by AddFileNode().
|
static |
Definition at line 1526 of file videometadata.cpp.
Referenced by AddFileNode().
const QString & VideoMetadata::GetPrefix | ( | ) | const |
Definition at line 1534 of file videometadata.cpp.
Referenced by AddMetadataToDir().
void VideoMetadata::SetPrefix | ( | const QString & | prefix | ) |
Definition at line 1539 of file videometadata.cpp.
const QString & VideoMetadata::GetTitle | ( | ) | const |
Definition at line 1544 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 1549 of file videometadata.cpp.
void VideoMetadata::SetTitle | ( | const QString & | title, |
const QString & | sortTitle = "" |
||
) |
Definition at line 1554 of file videometadata.cpp.
Referenced by MetadataFactory::OnVideoResult(), and EditMetadataDialog::SetTitle().
const QString & VideoMetadata::GetSubtitle | ( | ) | const |
Definition at line 1559 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 1564 of file videometadata.cpp.
void VideoMetadata::SetSubtitle | ( | const QString & | subtitle, |
const QString & | sortSubtitle = "" |
||
) |
Definition at line 1569 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetSubtitle().
const QString & VideoMetadata::GetTagline | ( | ) | const |
Definition at line 1574 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), GetText(), and toMap().
void VideoMetadata::SetTagline | ( | const QString & | tagline | ) |
Definition at line 1579 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetTagline().
int VideoMetadata::GetYear | ( | ) | const |
Definition at line 1584 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 1589 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetYear().
QDate VideoMetadata::GetReleaseDate | ( | ) | const |
Definition at line 1594 of file videometadata.cpp.
void VideoMetadata::SetReleaseDate | ( | QDate | releasedate | ) |
Definition at line 1599 of file videometadata.cpp.
const QString & VideoMetadata::GetInetRef | ( | ) | const |
Definition at line 1604 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 1609 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetInetRef().
int VideoMetadata::GetCollectionRef | ( | ) | const |
Definition at line 1614 of file videometadata.cpp.
void VideoMetadata::SetCollectionRef | ( | int | collectionref | ) |
Definition at line 1619 of file videometadata.cpp.
const QString & VideoMetadata::GetHomepage | ( | ) | const |
Definition at line 1624 of file videometadata.cpp.
Referenced by VideoDialog::CreateInfoMenu(), EditMetadataDialog::fillWidgets(), GetText(), VideoDialog::ShowHomepage(), and toMap().
void VideoMetadata::SetHomepage | ( | const QString & | homepage | ) |
Definition at line 1629 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetHomepage().
const QString & VideoMetadata::GetDirector | ( | ) | const |
Definition at line 1634 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), EditMetadataDialog::fillWidgets(), GetText(), VideoPlayerCommandPrivate::PlayerFor(), and toMap().
void VideoMetadata::SetDirector | ( | const QString & | director | ) |
Definition at line 1639 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetDirector().
const QString & VideoMetadata::GetStudio | ( | ) | const |
Definition at line 1644 of file videometadata.cpp.
Referenced by anonymous_namespace{videodlg.cpp}::CopyMetadataToUI(), GetText(), and toMap().
void VideoMetadata::SetStudio | ( | const QString & | studio | ) |
Definition at line 1649 of file videometadata.cpp.
const QString & VideoMetadata::GetPlot | ( | ) | const |
Definition at line 1654 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 1659 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetPlot().
float VideoMetadata::GetUserRating | ( | ) | const |
Definition at line 1664 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 1669 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetUserRating().
const QString & VideoMetadata::GetRating | ( | ) | const |
Definition at line 1674 of file videometadata.cpp.
Referenced by VideoDialogPrivate::AutomaticParentalAdjustment(), EditMetadataDialog::fillWidgets(), GetText(), and toMap().
void VideoMetadata::SetRating | ( | const QString & | rating | ) |
Definition at line 1679 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetRating().
std::chrono::minutes VideoMetadata::GetLength | ( | ) | const |
Definition at line 1684 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 1689 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetLength().
int VideoMetadata::GetSeason | ( | ) | const |
Definition at line 1704 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 1709 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetSeason().
int VideoMetadata::GetEpisode | ( | ) | const |
Definition at line 1714 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 1719 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetEpisode().
QDate VideoMetadata::GetInsertdate | ( | ) | const |
Definition at line 1724 of file videometadata.cpp.
Referenced by GetText(), VideoFilterSettings::matches_filter(), VideoFilterSettings::meta_less_than(), and toMap().
void VideoMetadata::SetInsertdate | ( | QDate | date | ) |
Definition at line 1729 of file videometadata.cpp.
unsigned int VideoMetadata::GetID | ( | ) | const |
Definition at line 1734 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 1739 of file videometadata.cpp.
int VideoMetadata::GetChildID | ( | ) | const |
Definition at line 1744 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), GetText(), and toMap().
void VideoMetadata::SetChildID | ( | int | childID | ) |
Definition at line 1749 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetChild().
bool VideoMetadata::GetBrowse | ( | ) | const |
Definition at line 1754 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), GetText(), VideoFilterSettings::matches_filter(), and toMap().
void VideoMetadata::SetBrowse | ( | bool | browse | ) |
Definition at line 1759 of file videometadata.cpp.
bool VideoMetadata::GetWatched | ( | ) | const |
Definition at line 1764 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 1769 of file videometadata.cpp.
Referenced by VideoDialog::ToggleWatched(), and VideoDialog::UpdateWatchedState().
bool VideoMetadata::GetProcessed | ( | ) | const |
Definition at line 1774 of file videometadata.cpp.
Referenced by VideoDialog::CreateManageMenu(), GetText(), VideoDialog::ToggleProcess(), toMap(), and VideoDialog::VideoAutoSearch().
void VideoMetadata::SetProcessed | ( | bool | processed | ) |
Definition at line 1779 of file videometadata.cpp.
Referenced by VideoDialog::OnVideoImageSetDone(), and VideoDialog::ToggleProcess().
VideoContentType VideoMetadata::GetContentType | ( | ) | const |
Definition at line 1784 of file videometadata.cpp.
void VideoMetadata::SetContentType | ( | VideoContentType | contenttype | ) |
Definition at line 1789 of file videometadata.cpp.
const QString & VideoMetadata::GetPlayCommand | ( | ) | const |
Definition at line 1794 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), and VideoPlayerCommandPrivate::PlayerFor().
void VideoMetadata::SetPlayCommand | ( | const QString & | playCommand | ) |
Definition at line 1799 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetPlayer().
unsigned int VideoMetadata::GetPlayCount | ( | ) | const |
Definition at line 1694 of file videometadata.cpp.
void VideoMetadata::SetPlayCount | ( | int | count | ) |
Definition at line 1699 of file videometadata.cpp.
ParentalLevel::Level VideoMetadata::GetShowLevel | ( | ) | const |
Definition at line 1804 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 1809 of file videometadata.cpp.
Referenced by VideoDialogPrivate::AutomaticParentalAdjustment(), and VideoDialog::OnParentalChange().
const QString & VideoMetadata::GetHost | ( | ) | const |
Definition at line 1834 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 1839 of file videometadata.cpp.
Referenced by V2Video::AddVideo(), Video::AddVideo(), and VideoScannerThread::updateDB().
const QString & VideoMetadata::GetFilename | ( | ) | const |
Definition at line 1814 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 1819 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 1844 of file videometadata.cpp.
const QString & VideoMetadata::GetHash | ( | ) | const |
Definition at line 1824 of file videometadata.cpp.
Referenced by VideoDialog::createFetchDialog(), VideoDialog::dismissFetchDialog(), and VideoDialog::VideoMenu().
void VideoMetadata::SetHash | ( | const QString & | hash | ) |
Definition at line 1829 of file videometadata.cpp.
const QString & VideoMetadata::GetTrailer | ( | ) | const |
Definition at line 1849 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 1854 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetTrailer().
const QString & VideoMetadata::GetCoverFile | ( | ) | const |
Definition at line 1859 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 1864 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetCoverArt(), and VideoDialog::StartVideoImageSet().
const QString & VideoMetadata::GetScreenshot | ( | ) | const |
Definition at line 1869 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 1874 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetScreenshot(), and VideoDialog::StartVideoImageSet().
const QString & VideoMetadata::GetBanner | ( | ) | const |
Definition at line 1879 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 1884 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetBanner(), and VideoDialog::StartVideoImageSet().
const QString & VideoMetadata::GetFanart | ( | ) | const |
Definition at line 1889 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 1894 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetFanart(), and VideoDialog::StartVideoImageSet().
const QString & VideoMetadata::GetCategory | ( | ) | const |
Definition at line 1899 of file videometadata.cpp.
const VideoMetadata::genre_list & VideoMetadata::GetGenres | ( | ) | const |
Definition at line 1909 of file videometadata.cpp.
Referenced by GetDisplayGenres(), and VideoFilterSettings::matches_filter().
void VideoMetadata::SetGenres | ( | const genre_list & | genres | ) |
Definition at line 1914 of file videometadata.cpp.
const VideoMetadata::cast_list & VideoMetadata::GetCast | ( | ) | const |
Definition at line 1919 of file videometadata.cpp.
Referenced by VideoDialog::CreateInfoMenu(), GetDisplayCast(), and VideoFilterSettings::matches_filter().
void VideoMetadata::SetCast | ( | const cast_list & | cast | ) |
Definition at line 1924 of file videometadata.cpp.
const VideoMetadata::country_list & VideoMetadata::GetCountries | ( | ) | const |
Definition at line 1929 of file videometadata.cpp.
Referenced by GetDisplayCountries(), and VideoFilterSettings::matches_filter().
void VideoMetadata::SetCountries | ( | const country_list & | countries | ) |
Definition at line 1934 of file videometadata.cpp.
int VideoMetadata::GetCategoryID | ( | ) | const |
Definition at line 1939 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), and VideoFilterSettings::matches_filter().
void VideoMetadata::SetCategoryID | ( | int | id | ) |
Definition at line 1944 of file videometadata.cpp.
Referenced by EditMetadataDialog::AddCategory(), and EditMetadataDialog::SetCategory().
void VideoMetadata::SaveToDatabase | ( | ) |
Definition at line 1949 of file videometadata.cpp.
Referenced by V2Video::AddVideo(), Video::AddVideo(), and VideoScannerThread::updateDB().
void VideoMetadata::UpdateDatabase | ( | ) |
Definition at line 1954 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 1959 of file videometadata.cpp.
bool VideoMetadata::FillDataFromFilename | ( | const VideoMetadataListManager & | cache | ) |
Definition at line 1981 of file videometadata.cpp.
bool VideoMetadata::DeleteFile | ( | ) |
Definition at line 1997 of file videometadata.cpp.
void VideoMetadata::Reset | ( | ) |
Resets to default metadata.
Definition at line 2002 of file videometadata.cpp.
Referenced by VideoDialog::ResetMetadata().
bool VideoMetadata::IsHostSet | ( | ) | const |
Definition at line 2007 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().