MythTV  master
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
VideoMetadataImp Class Reference
Collaboration diagram for VideoMetadataImp:
Collaboration graph
[legend]

Public Types

using genre_list = VideoMetadata::genre_list
 
using country_list = VideoMetadata::country_list
 
using cast_list = VideoMetadata::cast_list
 

Public Member Functions

 VideoMetadataImp (QString filename, QString sortFilename, QString hash, QString trailer, QString coverfile, QString screenshot, QString banner, QString fanart, const QString &title, QString sortTitle, const QString &subtitle, QString sortSubtitle, QString tagline, int year, const QDate releasedate, QString inetref, int collectionref, QString homepage, QString director, QString studio, QString plot, float userrating, QString rating, int length, int playcount, int season, int episode, const QDate insertdate, int id, ParentalLevel::Level showlevel, int categoryID, int childID, bool browse, bool watched, QString playcommand, QString category, genre_list genres, country_list countries, cast_list cast, QString host="", bool processed=false, VideoContentType contenttype=kContentUnknown)
 
 VideoMetadataImp (MSqlQuery &query)
 
 VideoMetadataImp (const VideoMetadataImp &other)
 
VideoMetadataImpoperator= (const VideoMetadataImp &rhs)
 
void ensureSortFields (void)
 
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)
 
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)
 
const QString & GetRating () const
 
void SetRating (const QString &rating)
 
const QString & getPlayCommand () const
 
void SetPlayCommand (const QString &playCommand)
 
const QString & GetCategory () const
 
const genre_listgetGenres () const
 
void SetGenres (const genre_list &genres)
 
const country_listGetCountries () const
 
void SetCountries (const country_list &countries)
 
const cast_listGetCast () const
 
void SetCast (const cast_list &cast)
 
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="")
 
bool sortBefore (const VideoMetadataImp *rhs) const
 Returns true if the object should appear before the argument. More...
 
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)
 
int GetCategoryID () const
 
void SetCategoryID (int id)
 
int GetChildID () const
 
void SetChildID (int childID)
 
int getYear () const
 
void SetYear (int year)
 
QDate getReleaseDate () const
 
void SetReleaseDate (QDate releasedate)
 
std::chrono::minutes GetLength () const
 
void SetLength (std::chrono::minutes length)
 
unsigned int GetPlayCount () const
 
void SetPlayCount (int playcount)
 
int GetSeason () const
 
void SetSeason (int season)
 
int GetEpisode () const
 
void SetEpisode (int episode)
 
QDate GetInsertdate () const
 
void SetInsertdate (QDate date)
 
ParentalLevel::Level GetShowLevel () const
 
void SetShowLevel (ParentalLevel::Level showLevel)
 
bool GetBrowse () const
 
void SetBrowse (bool browse)
 
bool GetWatched () const
 
void SetWatched (bool watched)
 
unsigned int GetID () const
 
void SetID (int id)
 
float GetUserRating () const
 
void SetUserRating (float userRating)
 
bool GetProcessed () const
 
void SetProcessed (bool processed)
 
VideoContentType GetContentType () const
 
void SetContentType (VideoContentType contenttype)
 
void SaveToDatabase ()
 
void UpdateDatabase ()
 
bool DeleteFromDatabase ()
 
bool DeleteFile ()
 Deletes the file associated with a metadata entry. More...
 
void Reset ()
 
bool IsHostSet () const
 
void GetImageMap (InfoMap &imageMap) const
 

Private Member Functions

void fillCountries ()
 
void updateCountries ()
 
void fillGenres ()
 
void fillCast ()
 
void updateGenres ()
 
void updateCast ()
 
bool removeDir (const QString &dirName)
 
void fromDBRow (MSqlQuery &query)
 Sets metadata from a DB row. More...
 
void saveToDatabase ()
 

Private Attributes

QString m_title
 
QString m_sortTitle
 
QString m_subtitle
 
QString m_sortSubtitle
 
QString m_tagline
 
QString m_inetref
 
int m_collectionref {0}
 
QString m_homepage
 
QString m_director
 
QString m_studio
 
QString m_plot
 
QString m_rating
 
QString m_playcommand
 
QString m_category
 
genre_list m_genres
 
country_list m_countries
 
cast_list m_cast
 
QString m_filename
 
QString m_sortFilename
 
QString m_hash
 
QString m_trailer
 
QString m_coverfile
 
QString m_screenshot
 
QString m_banner
 
QString m_fanart
 
QString m_host
 
int m_categoryID {0}
 
int m_childID {-1}
 
int m_year {VIDEO_YEAR_DEFAULT}
 
QDate m_releasedate
 
std::chrono::minutes m_length {0min}
 
int m_playcount {0}
 
int m_season {0}
 
int m_episode {0}
 
QDate m_insertdate
 
ParentalLevel::Level m_showlevel {ParentalLevel::plNone}
 
bool m_browse {true}
 
bool m_watched {false}
 
unsigned int m_id {0}
 
float m_userrating {0.0}
 
bool m_processed {false}
 
VideoContentType m_contenttype {kContentUnknown}
 
QString m_prefix
 

Detailed Description

Definition at line 24 of file videometadata.cpp.

Member Typedef Documentation

◆ genre_list

Definition at line 27 of file videometadata.cpp.

◆ country_list

Definition at line 28 of file videometadata.cpp.

◆ cast_list

Definition at line 29 of file videometadata.cpp.

Constructor & Destructor Documentation

◆ VideoMetadataImp() [1/3]

VideoMetadataImp::VideoMetadataImp ( QString  filename,
QString  sortFilename,
QString  hash,
QString  trailer,
QString  coverfile,
QString  screenshot,
QString  banner,
QString  fanart,
const QString &  title,
QString  sortTitle,
const QString &  subtitle,
QString  sortSubtitle,
QString  tagline,
int  year,
const QDate  releasedate,
QString  inetref,
int  collectionref,
QString  homepage,
QString  director,
QString  studio,
QString  plot,
float  userrating,
QString  rating,
int  length,
int  playcount,
int  season,
int  episode,
const QDate  insertdate,
int  id,
ParentalLevel::Level  showlevel,
int  categoryID,
int  childID,
bool  browse,
bool  watched,
QString  playcommand,
QString  category,
genre_list  genres,
country_list  countries,
cast_list  cast,
QString  host = "",
bool  processed = false,
VideoContentType  contenttype = kContentUnknown 
)
inline

Definition at line 32 of file videometadata.cpp.

◆ VideoMetadataImp() [2/3]

VideoMetadataImp::VideoMetadataImp ( MSqlQuery query)
inlineexplicit

Definition at line 86 of file videometadata.cpp.

◆ VideoMetadataImp() [3/3]

VideoMetadataImp::VideoMetadataImp ( const VideoMetadataImp other)
inline

Definition at line 92 of file videometadata.cpp.

Member Function Documentation

◆ operator=()

VideoMetadataImp& VideoMetadataImp::operator= ( const VideoMetadataImp rhs)
inline

Definition at line 97 of file videometadata.cpp.

◆ ensureSortFields()

void VideoMetadataImp::ensureSortFields ( void  )
inline

◆ GetPrefix()

const QString& VideoMetadataImp::GetPrefix ( ) const
inline

Definition at line 166 of file videometadata.cpp.

Referenced by VideoMetadata::GetPrefix().

◆ SetPrefix()

void VideoMetadataImp::SetPrefix ( const QString &  prefix)
inline

Definition at line 167 of file videometadata.cpp.

Referenced by VideoMetadata::SetPrefix().

◆ getTitle()

const QString& VideoMetadataImp::getTitle ( ) const
inline

Definition at line 169 of file videometadata.cpp.

Referenced by VideoMetadata::GetTitle().

◆ getSortTitle()

const QString& VideoMetadataImp::getSortTitle ( ) const
inline

Definition at line 170 of file videometadata.cpp.

Referenced by VideoMetadata::GetSortTitle().

◆ SetTitle()

void VideoMetadataImp::SetTitle ( const QString &  title,
const QString &  sortTitle = "" 
)
inline

Definition at line 171 of file videometadata.cpp.

Referenced by VideoMetadata::SetTitle().

◆ getSubtitle()

const QString& VideoMetadataImp::getSubtitle ( ) const
inline

Definition at line 178 of file videometadata.cpp.

Referenced by VideoMetadata::GetSubtitle().

◆ getSortSubtitle()

const QString& VideoMetadataImp::getSortSubtitle ( ) const
inline

Definition at line 179 of file videometadata.cpp.

Referenced by VideoMetadata::GetSortSubtitle().

◆ SetSubtitle()

void VideoMetadataImp::SetSubtitle ( const QString &  subtitle,
const QString &  sortSubtitle = "" 
)
inline

Definition at line 180 of file videometadata.cpp.

Referenced by VideoMetadata::SetSubtitle().

◆ GetTagline()

const QString& VideoMetadataImp::GetTagline ( ) const
inline

Definition at line 186 of file videometadata.cpp.

Referenced by VideoMetadata::GetTagline().

◆ SetTagline()

void VideoMetadataImp::SetTagline ( const QString &  tagline)
inline

Definition at line 187 of file videometadata.cpp.

Referenced by VideoMetadata::SetTagline().

◆ GetInetRef()

const QString& VideoMetadataImp::GetInetRef ( ) const
inline

Definition at line 189 of file videometadata.cpp.

Referenced by VideoMetadata::GetInetRef().

◆ SetInetRef()

void VideoMetadataImp::SetInetRef ( const QString &  inetRef)
inline

Definition at line 190 of file videometadata.cpp.

Referenced by VideoMetadata::SetInetRef().

◆ GetCollectionRef()

int VideoMetadataImp::GetCollectionRef ( ) const
inline

Definition at line 192 of file videometadata.cpp.

Referenced by VideoMetadata::GetCollectionRef().

◆ SetCollectionRef()

void VideoMetadataImp::SetCollectionRef ( int  collectionref)
inline

Definition at line 193 of file videometadata.cpp.

Referenced by VideoMetadata::SetCollectionRef().

◆ GetHomepage()

const QString& VideoMetadataImp::GetHomepage ( ) const
inline

Definition at line 195 of file videometadata.cpp.

Referenced by VideoMetadata::GetHomepage().

◆ SetHomepage()

void VideoMetadataImp::SetHomepage ( const QString &  homepage)
inline

Definition at line 196 of file videometadata.cpp.

Referenced by VideoMetadata::SetHomepage().

◆ getDirector()

const QString& VideoMetadataImp::getDirector ( ) const
inline

Definition at line 198 of file videometadata.cpp.

Referenced by VideoMetadata::GetDirector().

◆ SetDirector()

void VideoMetadataImp::SetDirector ( const QString &  director)
inline

Definition at line 199 of file videometadata.cpp.

Referenced by VideoMetadata::SetDirector().

◆ getStudio()

const QString& VideoMetadataImp::getStudio ( ) const
inline

Definition at line 201 of file videometadata.cpp.

Referenced by VideoMetadata::GetStudio().

◆ SetStudio()

void VideoMetadataImp::SetStudio ( const QString &  studio)
inline

Definition at line 202 of file videometadata.cpp.

Referenced by VideoMetadata::SetStudio().

◆ getPlot()

const QString& VideoMetadataImp::getPlot ( ) const
inline

Definition at line 204 of file videometadata.cpp.

Referenced by VideoMetadata::GetPlot().

◆ SetPlot()

void VideoMetadataImp::SetPlot ( const QString &  plot)
inline

Definition at line 205 of file videometadata.cpp.

Referenced by VideoMetadata::SetPlot().

◆ GetRating()

const QString& VideoMetadataImp::GetRating ( ) const
inline

Definition at line 207 of file videometadata.cpp.

Referenced by VideoMetadata::GetRating().

◆ SetRating()

void VideoMetadataImp::SetRating ( const QString &  rating)
inline

Definition at line 208 of file videometadata.cpp.

Referenced by VideoMetadata::SetRating().

◆ getPlayCommand()

const QString& VideoMetadataImp::getPlayCommand ( ) const
inline

Definition at line 210 of file videometadata.cpp.

Referenced by VideoMetadata::GetPlayCommand().

◆ SetPlayCommand()

void VideoMetadataImp::SetPlayCommand ( const QString &  playCommand)
inline

Definition at line 211 of file videometadata.cpp.

Referenced by VideoMetadata::SetPlayCommand().

◆ GetCategory()

const QString& VideoMetadataImp::GetCategory ( ) const
inline

Definition at line 216 of file videometadata.cpp.

Referenced by VideoMetadata::GetCategory().

◆ getGenres()

const genre_list& VideoMetadataImp::getGenres ( ) const
inline

Definition at line 219 of file videometadata.cpp.

Referenced by VideoMetadata::GetGenres().

◆ SetGenres()

void VideoMetadataImp::SetGenres ( const genre_list genres)
inline

Definition at line 220 of file videometadata.cpp.

Referenced by VideoMetadata::SetGenres().

◆ GetCountries()

const country_list& VideoMetadataImp::GetCountries ( ) const
inline

Definition at line 222 of file videometadata.cpp.

Referenced by VideoMetadata::GetCountries().

◆ SetCountries()

void VideoMetadataImp::SetCountries ( const country_list countries)
inline

Definition at line 223 of file videometadata.cpp.

Referenced by VideoMetadata::SetCountries().

◆ GetCast()

const cast_list& VideoMetadataImp::GetCast ( ) const
inline

Definition at line 228 of file videometadata.cpp.

Referenced by VideoMetadata::GetCast().

◆ SetCast()

void VideoMetadataImp::SetCast ( const cast_list cast)
inline

Definition at line 229 of file videometadata.cpp.

Referenced by VideoMetadata::SetCast().

◆ GetHost()

const QString& VideoMetadataImp::GetHost ( ) const
inline

Definition at line 231 of file videometadata.cpp.

Referenced by VideoMetadata::GetHost(), and GetImageMap().

◆ SetHost()

void VideoMetadataImp::SetHost ( const QString &  host)
inline

Definition at line 232 of file videometadata.cpp.

Referenced by VideoMetadata::SetHost().

◆ getFilename()

const QString& VideoMetadataImp::getFilename ( ) const
inline

◆ getSortFilename()

const QString& VideoMetadataImp::getSortFilename ( ) const
inline

Definition at line 235 of file videometadata.cpp.

Referenced by VideoMetadata::GetSortFilename().

◆ SetFilename()

void VideoMetadataImp::SetFilename ( const QString &  filename,
const QString &  sortFilename = "" 
)
inline

Definition at line 236 of file videometadata.cpp.

Referenced by VideoMetadata::SetFilename().

◆ sortBefore()

bool VideoMetadataImp::sortBefore ( const VideoMetadataImp rhs) const

Returns true if the object should appear before the argument.

Definition at line 397 of file videometadata.cpp.

Referenced by VideoMetadata::sortBefore().

◆ GetHash()

const QString& VideoMetadataImp::GetHash ( ) const
inline

Definition at line 245 of file videometadata.cpp.

Referenced by VideoMetadata::GetHash().

◆ SetHash()

void VideoMetadataImp::SetHash ( const QString &  hash)
inline

Definition at line 246 of file videometadata.cpp.

Referenced by VideoMetadata::SetHash().

◆ GetTrailer()

const QString& VideoMetadataImp::GetTrailer ( ) const
inline

Definition at line 248 of file videometadata.cpp.

Referenced by VideoMetadata::GetTrailer().

◆ SetTrailer()

void VideoMetadataImp::SetTrailer ( const QString &  trailer)
inline

Definition at line 249 of file videometadata.cpp.

Referenced by VideoMetadata::SetTrailer().

◆ GetCoverFile()

const QString& VideoMetadataImp::GetCoverFile ( ) const
inline

Definition at line 251 of file videometadata.cpp.

Referenced by VideoMetadata::GetCoverFile(), and GetImageMap().

◆ SetCoverFile()

void VideoMetadataImp::SetCoverFile ( const QString &  coverFile)
inline

Definition at line 252 of file videometadata.cpp.

Referenced by VideoMetadata::SetCoverFile().

◆ GetScreenshot()

const QString& VideoMetadataImp::GetScreenshot ( ) const
inline

Definition at line 254 of file videometadata.cpp.

Referenced by GetImageMap(), and VideoMetadata::GetScreenshot().

◆ SetScreenshot()

void VideoMetadataImp::SetScreenshot ( const QString &  screenshot)
inline

Definition at line 255 of file videometadata.cpp.

Referenced by VideoMetadata::SetScreenshot().

◆ GetBanner()

const QString& VideoMetadataImp::GetBanner ( ) const
inline

Definition at line 257 of file videometadata.cpp.

Referenced by VideoMetadata::GetBanner(), and GetImageMap().

◆ SetBanner()

void VideoMetadataImp::SetBanner ( const QString &  banner)
inline

Definition at line 258 of file videometadata.cpp.

Referenced by VideoMetadata::SetBanner().

◆ GetFanart()

const QString& VideoMetadataImp::GetFanart ( ) const
inline

Definition at line 260 of file videometadata.cpp.

Referenced by VideoMetadata::GetFanart(), and GetImageMap().

◆ SetFanart()

void VideoMetadataImp::SetFanart ( const QString &  fanart)
inline

Definition at line 261 of file videometadata.cpp.

Referenced by VideoMetadata::SetFanart().

◆ GetCategoryID()

int VideoMetadataImp::GetCategoryID ( ) const
inline

Definition at line 263 of file videometadata.cpp.

Referenced by VideoMetadata::GetCategoryID().

◆ SetCategoryID()

void VideoMetadataImp::SetCategoryID ( int  id)

Definition at line 795 of file videometadata.cpp.

Referenced by VideoMetadata::SetCategoryID().

◆ GetChildID()

int VideoMetadataImp::GetChildID ( ) const
inline

Definition at line 269 of file videometadata.cpp.

Referenced by VideoMetadata::GetChildID().

◆ SetChildID()

void VideoMetadataImp::SetChildID ( int  childID)
inline

Definition at line 270 of file videometadata.cpp.

Referenced by VideoMetadata::SetChildID().

◆ getYear()

int VideoMetadataImp::getYear ( ) const
inline

Definition at line 272 of file videometadata.cpp.

Referenced by VideoMetadata::GetYear().

◆ SetYear()

void VideoMetadataImp::SetYear ( int  year)
inline

Definition at line 273 of file videometadata.cpp.

Referenced by VideoMetadata::SetYear().

◆ getReleaseDate()

QDate VideoMetadataImp::getReleaseDate ( ) const
inline

Definition at line 275 of file videometadata.cpp.

Referenced by VideoMetadata::GetReleaseDate().

◆ SetReleaseDate()

void VideoMetadataImp::SetReleaseDate ( QDate  releasedate)
inline

Definition at line 276 of file videometadata.cpp.

Referenced by VideoMetadata::SetReleaseDate().

◆ GetLength()

std::chrono::minutes VideoMetadataImp::GetLength ( ) const
inline

Definition at line 278 of file videometadata.cpp.

Referenced by VideoMetadata::GetLength().

◆ SetLength()

void VideoMetadataImp::SetLength ( std::chrono::minutes  length)
inline

Definition at line 279 of file videometadata.cpp.

Referenced by VideoMetadata::SetLength().

◆ GetPlayCount()

unsigned int VideoMetadataImp::GetPlayCount ( ) const
inline

Definition at line 281 of file videometadata.cpp.

Referenced by VideoMetadata::GetPlayCount().

◆ SetPlayCount()

void VideoMetadataImp::SetPlayCount ( int  playcount)
inline

Definition at line 282 of file videometadata.cpp.

Referenced by VideoMetadata::SetPlayCount().

◆ GetSeason()

int VideoMetadataImp::GetSeason ( ) const
inline

Definition at line 284 of file videometadata.cpp.

Referenced by GetImageMap(), and VideoMetadata::GetSeason().

◆ SetSeason()

void VideoMetadataImp::SetSeason ( int  season)
inline

Definition at line 285 of file videometadata.cpp.

Referenced by VideoMetadata::SetSeason().

◆ GetEpisode()

int VideoMetadataImp::GetEpisode ( ) const
inline

Definition at line 287 of file videometadata.cpp.

Referenced by VideoMetadata::GetEpisode(), and GetImageMap().

◆ SetEpisode()

void VideoMetadataImp::SetEpisode ( int  episode)
inline

Definition at line 288 of file videometadata.cpp.

Referenced by VideoMetadata::SetEpisode().

◆ GetInsertdate()

QDate VideoMetadataImp::GetInsertdate ( ) const
inline

Definition at line 290 of file videometadata.cpp.

Referenced by VideoMetadata::GetInsertdate().

◆ SetInsertdate()

void VideoMetadataImp::SetInsertdate ( QDate  date)
inline

Definition at line 291 of file videometadata.cpp.

Referenced by VideoMetadata::SetInsertdate().

◆ GetShowLevel()

ParentalLevel::Level VideoMetadataImp::GetShowLevel ( ) const
inline

Definition at line 293 of file videometadata.cpp.

Referenced by VideoMetadata::GetShowLevel().

◆ SetShowLevel()

void VideoMetadataImp::SetShowLevel ( ParentalLevel::Level  showLevel)
inline

Definition at line 294 of file videometadata.cpp.

Referenced by VideoMetadata::SetShowLevel().

◆ GetBrowse()

bool VideoMetadataImp::GetBrowse ( ) const
inline

Definition at line 299 of file videometadata.cpp.

Referenced by VideoMetadata::GetBrowse().

◆ SetBrowse()

void VideoMetadataImp::SetBrowse ( bool  browse)
inline

Definition at line 300 of file videometadata.cpp.

Referenced by VideoMetadata::SetBrowse().

◆ GetWatched()

bool VideoMetadataImp::GetWatched ( ) const
inline

Definition at line 302 of file videometadata.cpp.

Referenced by VideoMetadata::GetWatched().

◆ SetWatched()

void VideoMetadataImp::SetWatched ( bool  watched)
inline

Definition at line 303 of file videometadata.cpp.

Referenced by VideoMetadata::SetWatched().

◆ GetID()

unsigned int VideoMetadataImp::GetID ( ) const
inline

Definition at line 305 of file videometadata.cpp.

Referenced by VideoMetadata::GetID().

◆ SetID()

void VideoMetadataImp::SetID ( int  id)
inline

Definition at line 306 of file videometadata.cpp.

Referenced by VideoMetadata::SetID().

◆ GetUserRating()

float VideoMetadataImp::GetUserRating ( ) const
inline

Definition at line 308 of file videometadata.cpp.

Referenced by VideoMetadata::GetUserRating().

◆ SetUserRating()

void VideoMetadataImp::SetUserRating ( float  userRating)
inline

Definition at line 309 of file videometadata.cpp.

Referenced by VideoMetadata::SetUserRating().

◆ GetProcessed()

bool VideoMetadataImp::GetProcessed ( ) const
inline

Definition at line 311 of file videometadata.cpp.

Referenced by VideoMetadata::GetProcessed().

◆ SetProcessed()

void VideoMetadataImp::SetProcessed ( bool  processed)
inline

Definition at line 312 of file videometadata.cpp.

Referenced by VideoMetadata::SetProcessed().

◆ GetContentType()

VideoContentType VideoMetadataImp::GetContentType ( ) const
inline

Definition at line 314 of file videometadata.cpp.

Referenced by VideoMetadata::GetContentType().

◆ SetContentType()

void VideoMetadataImp::SetContentType ( VideoContentType  contenttype)
inline

Definition at line 315 of file videometadata.cpp.

Referenced by VideoMetadata::SetContentType().

◆ SaveToDatabase()

void VideoMetadataImp::SaveToDatabase ( )

Definition at line 761 of file videometadata.cpp.

Referenced by VideoMetadata::SaveToDatabase().

◆ UpdateDatabase()

void VideoMetadataImp::UpdateDatabase ( )

Definition at line 766 of file videometadata.cpp.

Referenced by VideoMetadata::UpdateDatabase().

◆ DeleteFromDatabase()

bool VideoMetadataImp::DeleteFromDatabase ( )

Definition at line 771 of file videometadata.cpp.

Referenced by VideoMetadata::DeleteFromDatabase().

◆ DeleteFile()

bool VideoMetadataImp::DeleteFile ( )

Deletes the file associated with a metadata entry.

Definition at line 437 of file videometadata.cpp.

Referenced by VideoMetadata::DeleteFile().

◆ Reset()

void VideoMetadataImp::Reset ( )

Definition at line 468 of file videometadata.cpp.

Referenced by VideoMetadata::Reset().

◆ IsHostSet()

bool VideoMetadataImp::IsHostSet ( ) const

Definition at line 487 of file videometadata.cpp.

Referenced by GetImageMap(), and VideoMetadata::IsHostSet().

◆ GetImageMap()

void VideoMetadataImp::GetImageMap ( InfoMap imageMap) const

Definition at line 883 of file videometadata.cpp.

Referenced by VideoMetadata::GetImageMap(), and saveToDatabase().

◆ fillCountries()

void VideoMetadataImp::fillCountries ( )
private

Definition at line 510 of file videometadata.cpp.

Referenced by fromDBRow().

◆ updateCountries()

void VideoMetadataImp::updateCountries ( )
private

Definition at line 841 of file videometadata.cpp.

Referenced by saveToDatabase().

◆ fillGenres()

void VideoMetadataImp::fillGenres ( )
private

Definition at line 492 of file videometadata.cpp.

Referenced by fromDBRow().

◆ fillCast()

void VideoMetadataImp::fillCast ( )
private

Definition at line 528 of file videometadata.cpp.

Referenced by fromDBRow().

◆ updateGenres()

void VideoMetadataImp::updateGenres ( )
private

Definition at line 820 of file videometadata.cpp.

Referenced by saveToDatabase().

◆ updateCast()

void VideoMetadataImp::updateCast ( )
private

Definition at line 862 of file videometadata.cpp.

Referenced by saveToDatabase().

◆ removeDir()

bool VideoMetadataImp::removeDir ( const QString &  dirName)
private

Definition at line 408 of file videometadata.cpp.

Referenced by DeleteFile().

◆ fromDBRow()

void VideoMetadataImp::fromDBRow ( MSqlQuery query)
private

Sets metadata from a DB row.

Query string in VideoMetadataListManager::loadAllFromDatabase

Definition at line 550 of file videometadata.cpp.

Referenced by VideoMetadataImp().

◆ saveToDatabase()

void VideoMetadataImp::saveToDatabase ( )
private

Definition at line 607 of file videometadata.cpp.

Referenced by SaveToDatabase(), and UpdateDatabase().

Member Data Documentation

◆ m_title

QString VideoMetadataImp::m_title
private

◆ m_sortTitle

QString VideoMetadataImp::m_sortTitle
private

Definition at line 344 of file videometadata.cpp.

Referenced by ensureSortFields(), getSortTitle(), operator=(), SetTitle(), and sortBefore().

◆ m_subtitle

QString VideoMetadataImp::m_subtitle
private

◆ m_sortSubtitle

QString VideoMetadataImp::m_sortSubtitle
private

Definition at line 346 of file videometadata.cpp.

Referenced by ensureSortFields(), getSortSubtitle(), operator=(), and SetSubtitle().

◆ m_tagline

QString VideoMetadataImp::m_tagline
private

Definition at line 347 of file videometadata.cpp.

Referenced by fromDBRow(), GetTagline(), operator=(), saveToDatabase(), and SetTagline().

◆ m_inetref

QString VideoMetadataImp::m_inetref
private

Definition at line 348 of file videometadata.cpp.

Referenced by fromDBRow(), GetInetRef(), operator=(), saveToDatabase(), and SetInetRef().

◆ m_collectionref

int VideoMetadataImp::m_collectionref {0}
private

◆ m_homepage

QString VideoMetadataImp::m_homepage
private

Definition at line 350 of file videometadata.cpp.

Referenced by fromDBRow(), GetHomepage(), operator=(), saveToDatabase(), and SetHomepage().

◆ m_director

QString VideoMetadataImp::m_director
private

Definition at line 351 of file videometadata.cpp.

Referenced by fromDBRow(), getDirector(), operator=(), saveToDatabase(), and SetDirector().

◆ m_studio

QString VideoMetadataImp::m_studio
private

Definition at line 352 of file videometadata.cpp.

Referenced by fromDBRow(), getStudio(), operator=(), saveToDatabase(), and SetStudio().

◆ m_plot

QString VideoMetadataImp::m_plot
private

Definition at line 353 of file videometadata.cpp.

Referenced by fromDBRow(), getPlot(), operator=(), saveToDatabase(), and SetPlot().

◆ m_rating

QString VideoMetadataImp::m_rating
private

Definition at line 354 of file videometadata.cpp.

Referenced by fromDBRow(), GetRating(), operator=(), saveToDatabase(), and SetRating().

◆ m_playcommand

QString VideoMetadataImp::m_playcommand
private

◆ m_category

QString VideoMetadataImp::m_category
private

Definition at line 356 of file videometadata.cpp.

Referenced by fromDBRow(), GetCategory(), operator=(), SetCategoryID(), and VideoMetadataImp().

◆ m_genres

genre_list VideoMetadataImp::m_genres
private

Definition at line 357 of file videometadata.cpp.

Referenced by fillGenres(), getGenres(), operator=(), SetGenres(), and updateGenres().

◆ m_countries

country_list VideoMetadataImp::m_countries
private

◆ m_cast

cast_list VideoMetadataImp::m_cast
private

Definition at line 359 of file videometadata.cpp.

Referenced by fillCast(), GetCast(), operator=(), SetCast(), and updateCast().

◆ m_filename

QString VideoMetadataImp::m_filename
private

◆ m_sortFilename

QString VideoMetadataImp::m_sortFilename
private

◆ m_hash

QString VideoMetadataImp::m_hash
private

Definition at line 362 of file videometadata.cpp.

Referenced by fromDBRow(), GetHash(), operator=(), saveToDatabase(), and SetHash().

◆ m_trailer

QString VideoMetadataImp::m_trailer
private

Definition at line 363 of file videometadata.cpp.

Referenced by fromDBRow(), GetTrailer(), operator=(), saveToDatabase(), and SetTrailer().

◆ m_coverfile

QString VideoMetadataImp::m_coverfile
private

Definition at line 364 of file videometadata.cpp.

Referenced by fromDBRow(), GetCoverFile(), operator=(), saveToDatabase(), and SetCoverFile().

◆ m_screenshot

QString VideoMetadataImp::m_screenshot
private

Definition at line 365 of file videometadata.cpp.

Referenced by fromDBRow(), GetScreenshot(), operator=(), saveToDatabase(), and SetScreenshot().

◆ m_banner

QString VideoMetadataImp::m_banner
private

Definition at line 366 of file videometadata.cpp.

Referenced by fromDBRow(), GetBanner(), operator=(), saveToDatabase(), and SetBanner().

◆ m_fanart

QString VideoMetadataImp::m_fanart
private

Definition at line 367 of file videometadata.cpp.

Referenced by fromDBRow(), GetFanart(), operator=(), saveToDatabase(), and SetFanart().

◆ m_host

QString VideoMetadataImp::m_host
private

◆ m_categoryID

int VideoMetadataImp::m_categoryID {0}
private

◆ m_childID

int VideoMetadataImp::m_childID {-1}
private

Definition at line 371 of file videometadata.cpp.

Referenced by fromDBRow(), GetChildID(), operator=(), saveToDatabase(), and SetChildID().

◆ m_year

int VideoMetadataImp::m_year {VIDEO_YEAR_DEFAULT}
private

Definition at line 372 of file videometadata.cpp.

Referenced by fromDBRow(), getYear(), operator=(), saveToDatabase(), and SetYear().

◆ m_releasedate

QDate VideoMetadataImp::m_releasedate
private

◆ m_length

std::chrono::minutes VideoMetadataImp::m_length {0min}
private

Definition at line 374 of file videometadata.cpp.

Referenced by fromDBRow(), GetLength(), operator=(), saveToDatabase(), and SetLength().

◆ m_playcount

int VideoMetadataImp::m_playcount {0}
private

Definition at line 375 of file videometadata.cpp.

Referenced by fromDBRow(), GetPlayCount(), operator=(), saveToDatabase(), and SetPlayCount().

◆ m_season

int VideoMetadataImp::m_season {0}
private

◆ m_episode

int VideoMetadataImp::m_episode {0}
private

◆ m_insertdate

QDate VideoMetadataImp::m_insertdate
private

Definition at line 378 of file videometadata.cpp.

Referenced by fromDBRow(), GetInsertdate(), operator=(), and SetInsertdate().

◆ m_showlevel

ParentalLevel::Level VideoMetadataImp::m_showlevel {ParentalLevel::plNone}
private

Definition at line 379 of file videometadata.cpp.

Referenced by fromDBRow(), GetShowLevel(), operator=(), saveToDatabase(), and SetShowLevel().

◆ m_browse

bool VideoMetadataImp::m_browse {true}
private

Definition at line 380 of file videometadata.cpp.

Referenced by fromDBRow(), GetBrowse(), operator=(), saveToDatabase(), and SetBrowse().

◆ m_watched

bool VideoMetadataImp::m_watched {false}
private

Definition at line 381 of file videometadata.cpp.

Referenced by fromDBRow(), GetWatched(), operator=(), saveToDatabase(), and SetWatched().

◆ m_id

unsigned int VideoMetadataImp::m_id {0}
private

◆ m_userrating

float VideoMetadataImp::m_userrating {0.0}
private

Definition at line 383 of file videometadata.cpp.

Referenced by fromDBRow(), GetUserRating(), operator=(), saveToDatabase(), and SetUserRating().

◆ m_processed

bool VideoMetadataImp::m_processed {false}
private

Definition at line 384 of file videometadata.cpp.

Referenced by fromDBRow(), GetProcessed(), operator=(), saveToDatabase(), and SetProcessed().

◆ m_contenttype

VideoContentType VideoMetadataImp::m_contenttype {kContentUnknown}
private

◆ m_prefix

QString VideoMetadataImp::m_prefix
private

Definition at line 388 of file videometadata.cpp.

Referenced by GetPrefix(), operator=(), Reset(), and SetPrefix().


The documentation for this class was generated from the following file: