MythTV  master
Functions
videoutils.h File Reference
#include "parentalcontrols.h"
#include "mythmetaexp.h"
#include "metadatacommon.h"
#include <storagegroup.h>
#include <mythcorecontext.h>
Include dependency graph for videoutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
void CheckedSet (T *uiItem, const QString &value)
 
template<>
META_PUBLIC void CheckedSet (MythUIStateType *uiItem, const QString &state)
 
META_PUBLIC void CheckedSet (MythUIType *container, const QString &itemName, const QString &value)
 
META_PUBLIC void CheckedSet (MythUIImage *uiItem, const QString &filename)
 
META_PUBLIC QStringList GetVideoDirsByHost (QString host)
 
META_PUBLIC QStringList GetVideoDirs ()
 
META_PUBLIC bool IsDefaultCoverFile (const QString &coverfile)
 
META_PUBLIC bool IsDefaultScreenshot (const QString &screenshot)
 
META_PUBLIC bool IsDefaultBanner (const QString &banner)
 
META_PUBLIC bool IsDefaultFanart (const QString &fanart)
 
META_PUBLIC QString GetDisplayUserRating (float userrating)
 
META_PUBLIC QString GetDisplayLength (int length)
 
META_PUBLIC QString GetDisplayBrowse (bool browse)
 
META_PUBLIC QString GetDisplayWatched (bool watched)
 
META_PUBLIC QString GetDisplayProcessed (bool processed)
 
META_PUBLIC QString GetDisplayYear (int year)
 
META_PUBLIC QString GetDisplayRating (const QString &rating)
 
META_PUBLIC QString GetDisplayGenres (const VideoMetadata &item)
 
META_PUBLIC QString GetDisplayCountries (const VideoMetadata &item)
 
META_PUBLIC QStringList GetDisplayCast (const VideoMetadata &item)
 
META_PUBLIC QString TrailerToState (const QString &trailerFile)
 
META_PUBLIC QString ParentalLevelToState (const ParentalLevel &level)
 
META_PUBLIC QString WatchedToState (bool watched)
 
META_PUBLIC VideoContentType ContentTypeFromString (const QString &type)
 
META_PUBLIC QString ContentTypeToString (VideoContentType type)
 
QString generate_file_url (const QString &storage_group, const QString &host, const QString &path)
 

Function Documentation

◆ CheckedSet() [1/4]

template<typename T >
void CheckedSet ( T *  uiItem,
const QString &  value 
)
inline

Definition at line 9 of file videoutils.h.

◆ CheckedSet() [2/4]

template<>
META_PUBLIC void CheckedSet ( MythUIStateType uiItem,
const QString &  state 
)

◆ CheckedSet() [3/4]

META_PUBLIC void CheckedSet ( MythUIType container,
const QString &  itemName,
const QString &  value 
)

Definition at line 53 of file videoutils.cpp.

◆ CheckedSet() [4/4]

META_PUBLIC void CheckedSet ( MythUIImage uiItem,
const QString &  filename 
)

Definition at line 70 of file videoutils.cpp.

◆ GetVideoDirsByHost()

META_PUBLIC QStringList GetVideoDirsByHost ( QString  host)

◆ GetVideoDirs()

META_PUBLIC QStringList GetVideoDirs ( )

◆ IsDefaultCoverFile()

META_PUBLIC bool IsDefaultCoverFile ( const QString &  coverfile)

◆ IsDefaultScreenshot()

META_PUBLIC bool IsDefaultScreenshot ( const QString &  screenshot)

Definition at line 136 of file videoutils.cpp.

Referenced by VideoDialog::GetScreenshot().

◆ IsDefaultBanner()

META_PUBLIC bool IsDefaultBanner ( const QString &  banner)

Definition at line 141 of file videoutils.cpp.

Referenced by VideoDialog::GetBanner().

◆ IsDefaultFanart()

META_PUBLIC bool IsDefaultFanart ( const QString &  fanart)

Definition at line 146 of file videoutils.cpp.

Referenced by VideoDialog::GetFanart().

◆ GetDisplayUserRating()

META_PUBLIC QString GetDisplayUserRating ( float  userrating)

Definition at line 151 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayLength()

META_PUBLIC QString GetDisplayLength ( int  length)

Definition at line 156 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayBrowse()

META_PUBLIC QString GetDisplayBrowse ( bool  browse)

Definition at line 164 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayWatched()

META_PUBLIC QString GetDisplayWatched ( bool  watched)

Definition at line 178 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayProcessed()

META_PUBLIC QString GetDisplayProcessed ( bool  processed)

Definition at line 192 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayYear()

META_PUBLIC QString GetDisplayYear ( int  year)

Definition at line 206 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayRating()

META_PUBLIC QString GetDisplayRating ( const QString &  rating)

Definition at line 211 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayGenres()

META_PUBLIC QString GetDisplayGenres ( const VideoMetadata item)

Definition at line 218 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayCountries()

META_PUBLIC QString GetDisplayCountries ( const VideoMetadata item)

Definition at line 225 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayCast()

META_PUBLIC QStringList GetDisplayCast ( const VideoMetadata item)

Definition at line 232 of file videoutils.cpp.

Referenced by CastDialog::Create(), and VideoMetadata::toMap().

◆ TrailerToState()

META_PUBLIC QString TrailerToState ( const QString &  trailerFile)

Definition at line 263 of file videoutils.cpp.

Referenced by VideoMetadata::GetStateMap().

◆ ParentalLevelToState()

META_PUBLIC QString ParentalLevelToState ( const ParentalLevel level)

Definition at line 239 of file videoutils.cpp.

Referenced by VideoMetadata::GetStateMap(), and VideoDialog::refreshData().

◆ WatchedToState()

META_PUBLIC QString WatchedToState ( bool  watched)

Definition at line 273 of file videoutils.cpp.

Referenced by VideoMetadata::GetStateMap(), and VideoDialog::ToggleWatched().

◆ ContentTypeFromString()

META_PUBLIC VideoContentType ContentTypeFromString ( const QString &  type)

Definition at line 283 of file videoutils.cpp.

Referenced by VideoMetadataImp::fromDBRow().

◆ ContentTypeToString()

META_PUBLIC QString ContentTypeToString ( VideoContentType  type)

Definition at line 301 of file videoutils.cpp.

Referenced by FillVideoMetadataInfo(), and VideoMetadataImp::saveToDatabase().

◆ generate_file_url()

QString generate_file_url ( const QString &  storage_group,
const QString &  host,
const QString &  path 
)
inline