MythTV
master
|
#include <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) |
void | GetStateMap (InfoMap &stateMap) const |
void | GetImageMap (InfoMap &imageMap) |
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) |
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 1158 of file videometadata.cpp.
VideoMetadata::~VideoMetadata | ( | ) |
Definition at line 1185 of file videometadata.cpp.
|
explicit |
Definition at line 1190 of file videometadata.cpp.
VideoMetadata::VideoMetadata | ( | const VideoMetadata & | rhs | ) |
Definition at line 1195 of file videometadata.cpp.
|
private |
|
static |
Definition at line 1003 of file videometadata.cpp.
Referenced by VideoScannerThread::updateDB().
|
static |
Definition at line 1051 of file videometadata.cpp.
Referenced by VideoMetadataImp::Reset(), VideoMetadataImp::saveToDatabase(), and VideoScannerThread::updateDB().
|
static |
Definition at line 1070 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 1200 of file videometadata.cpp.
bool VideoMetadata::sortBefore | ( | const VideoMetadata & | rhs | ) | const |
Definition at line 1805 of file videometadata.cpp.
Referenced by VideoFilterSettings::meta_less_than().
void VideoMetadata::toMap | ( | InfoMap & | metadataMap | ) |
Definition at line 1210 of file videometadata.cpp.
Referenced by AddFileNode(), ItemDetailPopup::Create(), VideoDialog::UpdateItem(), and VideoDialog::UpdateText().
void VideoMetadata::GetStateMap | ( | InfoMap & | stateMap | ) | const |
Definition at line 1269 of file videometadata.cpp.
Referenced by AddFileNode(), and toMap().
void VideoMetadata::GetImageMap | ( | InfoMap & | imageMap | ) |
Definition at line 1278 of file videometadata.cpp.
Referenced by AddFileNode(), and toMap().
const QString & VideoMetadata::GetPrefix | ( | ) | const |
Definition at line 1327 of file videometadata.cpp.
Referenced by AddMetadataToDir().
void VideoMetadata::SetPrefix | ( | const QString & | prefix | ) |
Definition at line 1332 of file videometadata.cpp.
const QString & VideoMetadata::GetTitle | ( | ) | const |
Definition at line 1337 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), VideoDialog::createFetchDialog(), VideoDialog::CreatePlayMenu(), VideoDialog::dismissFetchDialog(), EditMetadataDialog::fillWidgets(), EditMetadataDialog::FindNetArt(), VideoDialog::GetFirstImage(), VideoDialog::GetImageFromFolder(), meta_data_node::getName(), 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 1342 of file videometadata.cpp.
Referenced by toMap().
void VideoMetadata::SetTitle | ( | const QString & | title, |
const QString & | sortTitle = "" |
||
) |
Definition at line 1347 of file videometadata.cpp.
Referenced by MetadataFactory::OnVideoResult(), and EditMetadataDialog::SetTitle().
const QString & VideoMetadata::GetSubtitle | ( | ) | const |
Definition at line 1352 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), EditMetadataDialog::fillWidgets(), EditMetadataDialog::FindNetArt(), GuessLookupType(), MetadataFactory::Lookup(), VideoFilterSettings::matches_filter(), EditMetadataDialog::OnSearchListSelection(), VideoPlayerCommandPrivate::PlayerFor(), toMap(), VideoDialog::UpdateItem(), and VideoDialog::VideoMenu().
const QString & VideoMetadata::GetSortSubtitle | ( | ) | const |
Definition at line 1357 of file videometadata.cpp.
Referenced by toMap().
void VideoMetadata::SetSubtitle | ( | const QString & | subtitle, |
const QString & | sortSubtitle = "" |
||
) |
Definition at line 1362 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetSubtitle().
const QString & VideoMetadata::GetTagline | ( | ) | const |
Definition at line 1367 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), and toMap().
void VideoMetadata::SetTagline | ( | const QString & | tagline | ) |
Definition at line 1372 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetTagline().
int VideoMetadata::GetYear | ( | ) | const |
Definition at line 1377 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), EditMetadataDialog::fillWidgets(), VideoFilterSettings::matches_filter(), VideoFilterSettings::meta_less_than(), VideoPlayerCommandPrivate::PlayerFor(), and toMap().
void VideoMetadata::SetYear | ( | int | year | ) |
Definition at line 1382 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetYear().
QDate VideoMetadata::GetReleaseDate | ( | ) | const |
Definition at line 1387 of file videometadata.cpp.
Referenced by toMap().
void VideoMetadata::SetReleaseDate | ( | QDate | releasedate | ) |
Definition at line 1392 of file videometadata.cpp.
const QString & VideoMetadata::GetInetRef | ( | ) | const |
Definition at line 1397 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), EditMetadataDialog::fillWidgets(), EditMetadataDialog::FindNetArt(), GuessLookupType(), MetadataFactory::Lookup(), VideoFilterSettings::matches_filter(), EditMetadataDialog::OnSearchListSelection(), VideoPlayerCommandPrivate::PlayerFor(), VideoDialog::StartVideoImageSet(), and toMap().
void VideoMetadata::SetInetRef | ( | const QString & | inetRef | ) |
Definition at line 1402 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetInetRef().
int VideoMetadata::GetCollectionRef | ( | ) | const |
Definition at line 1407 of file videometadata.cpp.
void VideoMetadata::SetCollectionRef | ( | int | collectionref | ) |
Definition at line 1412 of file videometadata.cpp.
const QString & VideoMetadata::GetHomepage | ( | ) | const |
Definition at line 1417 of file videometadata.cpp.
Referenced by VideoDialog::CreateInfoMenu(), EditMetadataDialog::fillWidgets(), VideoDialog::ShowHomepage(), and toMap().
void VideoMetadata::SetHomepage | ( | const QString & | homepage | ) |
Definition at line 1422 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetHomepage().
const QString & VideoMetadata::GetDirector | ( | ) | const |
Definition at line 1427 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), EditMetadataDialog::fillWidgets(), VideoPlayerCommandPrivate::PlayerFor(), and toMap().
void VideoMetadata::SetDirector | ( | const QString & | director | ) |
Definition at line 1432 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetDirector().
const QString & VideoMetadata::GetStudio | ( | ) | const |
Definition at line 1437 of file videometadata.cpp.
Referenced by toMap().
void VideoMetadata::SetStudio | ( | const QString & | studio | ) |
Definition at line 1442 of file videometadata.cpp.
const QString & VideoMetadata::GetPlot | ( | ) | const |
Definition at line 1447 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), PlotDialog::Create(), EditMetadataDialog::fillWidgets(), VideoFilterSettings::matches_filter(), VideoPlayerCommandPrivate::PlayerFor(), and toMap().
void VideoMetadata::SetPlot | ( | const QString & | plot | ) |
Definition at line 1452 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetPlot().
float VideoMetadata::GetUserRating | ( | ) | const |
Definition at line 1457 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), GetStateMap(), VideoFilterSettings::matches_filter(), VideoFilterSettings::meta_less_than(), and toMap().
void VideoMetadata::SetUserRating | ( | float | userRating | ) |
Definition at line 1462 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetUserRating().
const QString & VideoMetadata::GetRating | ( | ) | const |
Definition at line 1467 of file videometadata.cpp.
Referenced by VideoDialogPrivate::AutomaticParentalAdjustment(), EditMetadataDialog::fillWidgets(), and toMap().
void VideoMetadata::SetRating | ( | const QString & | rating | ) |
Definition at line 1472 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetRating().
std::chrono::minutes VideoMetadata::GetLength | ( | ) | const |
Definition at line 1477 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), EditMetadataDialog::fillWidgets(), VideoFilterSettings::matches_filter(), VideoFilterSettings::meta_less_than(), VideoPlayerCommandPrivate::PlayerFor(), and toMap().
void VideoMetadata::SetLength | ( | std::chrono::minutes | length | ) |
Definition at line 1482 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetLength().
int VideoMetadata::GetSeason | ( | ) | const |
Definition at line 1497 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), VideoDialog::createFetchDialog(), VideoDialog::dismissFetchDialog(), EditMetadataDialog::fillWidgets(), EditMetadataDialog::FindNetArt(), 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 1502 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetSeason().
int VideoMetadata::GetEpisode | ( | ) | const |
Definition at line 1507 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), VideoDialog::createFetchDialog(), VideoDialog::dismissFetchDialog(), EditMetadataDialog::fillWidgets(), EditMetadataDialog::FindNetArt(), 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 1512 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetEpisode().
QDate VideoMetadata::GetInsertdate | ( | ) | const |
Definition at line 1517 of file videometadata.cpp.
Referenced by VideoFilterSettings::matches_filter(), VideoFilterSettings::meta_less_than(), and toMap().
void VideoMetadata::SetInsertdate | ( | QDate | date | ) |
Definition at line 1522 of file videometadata.cpp.
unsigned int VideoMetadata::GetID | ( | ) | const |
Definition at line 1527 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), EditMetadataDialog::fillWidgets(), VideoDialog::GetItemByMetadata(), VideoFilterSettings::meta_less_than(), VideoDialog::OnRemoveVideo(), VideoPlayerCommandPrivate::PlayerFor(), and VideoScannerThread::updateDB().
void VideoMetadata::SetID | ( | int | id | ) |
Definition at line 1532 of file videometadata.cpp.
int VideoMetadata::GetChildID | ( | ) | const |
Definition at line 1537 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), and toMap().
void VideoMetadata::SetChildID | ( | int | childID | ) |
Definition at line 1542 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetChild().
bool VideoMetadata::GetBrowse | ( | ) | const |
Definition at line 1547 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), VideoFilterSettings::matches_filter(), and toMap().
void VideoMetadata::SetBrowse | ( | bool | browse | ) |
Definition at line 1552 of file videometadata.cpp.
bool VideoMetadata::GetWatched | ( | ) | const |
Definition at line 1557 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), GetStateMap(), VideoFilterSettings::matches_filter(), VideoDialog::ToggleWatched(), toMap(), and VideoDialog::VideoMenu().
void VideoMetadata::SetWatched | ( | bool | watched | ) |
Definition at line 1562 of file videometadata.cpp.
Referenced by VideoDialog::ToggleWatched().
bool VideoMetadata::GetProcessed | ( | ) | const |
Definition at line 1567 of file videometadata.cpp.
Referenced by VideoDialog::CreateManageMenu(), VideoDialog::ToggleProcess(), toMap(), and VideoDialog::VideoAutoSearch().
void VideoMetadata::SetProcessed | ( | bool | processed | ) |
Definition at line 1572 of file videometadata.cpp.
Referenced by VideoDialog::OnVideoImageSetDone(), and VideoDialog::ToggleProcess().
VideoContentType VideoMetadata::GetContentType | ( | ) | const |
Definition at line 1577 of file videometadata.cpp.
void VideoMetadata::SetContentType | ( | VideoContentType | contenttype | ) |
Definition at line 1582 of file videometadata.cpp.
const QString & VideoMetadata::GetPlayCommand | ( | ) | const |
Definition at line 1587 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), and VideoPlayerCommandPrivate::PlayerFor().
void VideoMetadata::SetPlayCommand | ( | const QString & | playCommand | ) |
Definition at line 1592 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetPlayer().
unsigned int VideoMetadata::GetPlayCount | ( | ) | const |
Definition at line 1487 of file videometadata.cpp.
Referenced by toMap().
void VideoMetadata::SetPlayCount | ( | int | count | ) |
Definition at line 1492 of file videometadata.cpp.
ParentalLevel::Level VideoMetadata::GetShowLevel | ( | ) | const |
Definition at line 1597 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), GetStateMap(), VideoFilterSettings::matches_filter(), and VideoDialog::OnParentalChange().
void VideoMetadata::SetShowLevel | ( | ParentalLevel::Level | showLevel | ) |
Definition at line 1602 of file videometadata.cpp.
Referenced by VideoDialogPrivate::AutomaticParentalAdjustment(), and VideoDialog::OnParentalChange().
const QString & VideoMetadata::GetHost | ( | ) | const |
Definition at line 1627 of file videometadata.cpp.
Referenced by AddMetadataToDir(), VideoPlayerCommandPrivate::AltPlayerFor(), VideoDialog::CreatePlayMenu(), EditMetadataDialog::fillWidgets(), EditMetadataDialog::FindBanner(), EditMetadataDialog::FindCoverArt(), EditMetadataDialog::FindFanart(), EditMetadataDialog::FindScreenshot(), EditMetadataDialog::FindTrailer(), VideoDialog::GetBanner(), VideoDialog::GetCoverImage(), VideoDialog::GetFanart(), VideoDialog::GetFirstImage(), VideoDialog::GetImageFromFolder(), 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 1632 of file videometadata.cpp.
Referenced by Video::AddVideo(), and VideoScannerThread::updateDB().
const QString & VideoMetadata::GetFilename | ( | ) | const |
Definition at line 1607 of file videometadata.cpp.
Referenced by AddMetadataToDir(), VideoPlayerCommandPrivate::AltPlayerFor(), VideoDialog::GetImageFromFolder(), 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 1612 of file videometadata.cpp.
Referenced by VideoFilterSettings::meta_less_than(), metadata_path_sort::sort(), and toMap().
void VideoMetadata::SetFilename | ( | const QString & | filename, |
const QString & | sortFilename = "" |
||
) |
Definition at line 1637 of file videometadata.cpp.
const QString & VideoMetadata::GetHash | ( | ) | const |
Definition at line 1617 of file videometadata.cpp.
Referenced by VideoDialog::createFetchDialog(), VideoDialog::dismissFetchDialog(), and VideoDialog::VideoMenu().
void VideoMetadata::SetHash | ( | const QString & | hash | ) |
Definition at line 1622 of file videometadata.cpp.
const QString & VideoMetadata::GetTrailer | ( | ) | const |
Definition at line 1642 of file videometadata.cpp.
Referenced by VideoDialog::CreatePlayMenu(), EditMetadataDialog::fillWidgets(), GetStateMap(), VideoDialog::playTrailer(), and VideoDialog::VideoMenu().
void VideoMetadata::SetTrailer | ( | const QString & | trailer | ) |
Definition at line 1647 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetTrailer().
const QString & VideoMetadata::GetCoverFile | ( | ) | const |
Definition at line 1652 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), VideoDialog::GetCoverImage(), VideoDialog::GetFirstImage(), VideoFilterSettings::matches_filter(), and VideoDialog::StartVideoImageSet().
void VideoMetadata::SetCoverFile | ( | const QString & | coverFile | ) |
Definition at line 1657 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetCoverArt(), and VideoDialog::StartVideoImageSet().
const QString & VideoMetadata::GetScreenshot | ( | ) | const |
Definition at line 1662 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), VideoDialog::GetFirstImage(), VideoDialog::GetScreenshot(), and VideoDialog::StartVideoImageSet().
void VideoMetadata::SetScreenshot | ( | const QString & | screenshot | ) |
Definition at line 1667 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetScreenshot(), and VideoDialog::StartVideoImageSet().
const QString & VideoMetadata::GetBanner | ( | ) | const |
Definition at line 1672 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), VideoDialog::GetBanner(), VideoDialog::GetFirstImage(), and VideoDialog::StartVideoImageSet().
void VideoMetadata::SetBanner | ( | const QString & | banner | ) |
Definition at line 1677 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetBanner(), and VideoDialog::StartVideoImageSet().
const QString & VideoMetadata::GetFanart | ( | ) | const |
Definition at line 1682 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), VideoDialog::GetFanart(), VideoDialog::GetFirstImage(), and VideoDialog::StartVideoImageSet().
void VideoMetadata::SetFanart | ( | const QString & | fanart | ) |
Definition at line 1687 of file videometadata.cpp.
Referenced by EditMetadataDialog::SetFanart(), and VideoDialog::StartVideoImageSet().
const QString & VideoMetadata::GetCategory | ( | ) | const |
Definition at line 1692 of file videometadata.cpp.
Referenced by toMap().
const VideoMetadata::genre_list & VideoMetadata::GetGenres | ( | ) | const |
Definition at line 1702 of file videometadata.cpp.
Referenced by GetDisplayGenres(), and VideoFilterSettings::matches_filter().
void VideoMetadata::SetGenres | ( | const genre_list & | genres | ) |
Definition at line 1707 of file videometadata.cpp.
const VideoMetadata::cast_list & VideoMetadata::GetCast | ( | ) | const |
Definition at line 1712 of file videometadata.cpp.
Referenced by VideoDialog::CreateInfoMenu(), GetDisplayCast(), and VideoFilterSettings::matches_filter().
void VideoMetadata::SetCast | ( | const cast_list & | cast | ) |
Definition at line 1717 of file videometadata.cpp.
const VideoMetadata::country_list & VideoMetadata::GetCountries | ( | ) | const |
Definition at line 1722 of file videometadata.cpp.
Referenced by GetDisplayCountries(), and VideoFilterSettings::matches_filter().
void VideoMetadata::SetCountries | ( | const country_list & | countries | ) |
Definition at line 1727 of file videometadata.cpp.
int VideoMetadata::GetCategoryID | ( | ) | const |
Definition at line 1732 of file videometadata.cpp.
Referenced by EditMetadataDialog::fillWidgets(), and VideoFilterSettings::matches_filter().
void VideoMetadata::SetCategoryID | ( | int | id | ) |
Definition at line 1737 of file videometadata.cpp.
Referenced by EditMetadataDialog::AddCategory(), and EditMetadataDialog::SetCategory().
void VideoMetadata::SaveToDatabase | ( | ) |
Definition at line 1742 of file videometadata.cpp.
Referenced by Video::AddVideo(), and VideoScannerThread::updateDB().
void VideoMetadata::UpdateDatabase | ( | ) |
Definition at line 1747 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 1752 of file videometadata.cpp.
bool VideoMetadata::FillDataFromFilename | ( | const VideoMetadataListManager & | cache | ) |
Definition at line 1774 of file videometadata.cpp.
bool VideoMetadata::DeleteFile | ( | ) |
Definition at line 1790 of file videometadata.cpp.
void VideoMetadata::Reset | ( | ) |
Resets to default metadata.
Definition at line 1795 of file videometadata.cpp.
Referenced by VideoDialog::ResetMetadata().
bool VideoMetadata::IsHostSet | ( | ) | const |
Definition at line 1800 of file videometadata.cpp.
Referenced by VideoPlayerCommandPrivate::AltPlayerFor(), VideoDialog::GetBanner(), VideoDialog::GetCoverImage(), VideoDialog::GetFanart(), VideoDialog::GetScreenshot(), VideoPlayerCommandPrivate::PlayerFor(), and VideoDialog::playTrailer().
|
private |
Definition at line 235 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(), 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().