MythTV  master
Functions
videoutils.cpp File Reference
#include "videoutils.h"
#include <QDir>
#include <QCoreApplication>
#include "mythdirs.h"
#include "mythsystemlegacy.h"
#include "storagegroup.h"
#include "mythcontext.h"
#include "mythmainwindow.h"
#include "mythdialogbox.h"
#include "mythuistatetype.h"
#include "mythuiimage.h"
#include "mythuitext.h"
#include "globals.h"
#include "videometadatalistmanager.h"
Include dependency graph for videoutils.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

◆ CheckedSet() [1/3]

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

◆ CheckedSet() [2/3]

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

Definition at line 53 of file videoutils.cpp.

◆ CheckedSet() [3/3]

void CheckedSet ( MythUIImage uiItem,
const QString &  filename 
)

Definition at line 70 of file videoutils.cpp.

◆ GetVideoDirsByHost()

QStringList GetVideoDirsByHost ( const QString &  host)

◆ GetVideoDirs()

QStringList GetVideoDirs ( )

◆ IsDefaultCoverFile()

bool IsDefaultCoverFile ( const QString &  coverfile)

◆ IsDefaultScreenshot()

bool IsDefaultScreenshot ( const QString &  screenshot)

Definition at line 136 of file videoutils.cpp.

Referenced by VideoDialog::GetScreenshot().

◆ IsDefaultBanner()

bool IsDefaultBanner ( const QString &  banner)

Definition at line 141 of file videoutils.cpp.

Referenced by VideoDialog::GetBanner().

◆ IsDefaultFanart()

bool IsDefaultFanart ( const QString &  fanart)

Definition at line 146 of file videoutils.cpp.

Referenced by VideoDialog::GetFanart().

◆ GetDisplayUserRating()

QString GetDisplayUserRating ( float  userrating)

Definition at line 151 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayLength()

QString GetDisplayLength ( int  length)

Definition at line 156 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayBrowse()

QString GetDisplayBrowse ( bool  browse)

Definition at line 164 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayWatched()

QString GetDisplayWatched ( bool  watched)

Definition at line 178 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayProcessed()

QString GetDisplayProcessed ( bool  processed)

Definition at line 192 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayYear()

QString GetDisplayYear ( int  year)

Definition at line 206 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayRating()

QString GetDisplayRating ( const QString &  rating)

Definition at line 211 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayGenres()

QString GetDisplayGenres ( const VideoMetadata item)

Definition at line 218 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayCountries()

QString GetDisplayCountries ( const VideoMetadata item)

Definition at line 225 of file videoutils.cpp.

Referenced by VideoMetadata::toMap().

◆ GetDisplayCast()

QStringList GetDisplayCast ( const VideoMetadata item)

Definition at line 232 of file videoutils.cpp.

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

◆ ParentalLevelToState()

QString ParentalLevelToState ( const ParentalLevel level)

Definition at line 239 of file videoutils.cpp.

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

◆ TrailerToState()

QString TrailerToState ( const QString &  trailerFile)

Definition at line 263 of file videoutils.cpp.

Referenced by VideoMetadata::GetStateMap().

◆ WatchedToState()

QString WatchedToState ( bool  watched)

Definition at line 273 of file videoutils.cpp.

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

◆ ContentTypeFromString()

VideoContentType ContentTypeFromString ( const QString &  type)

Definition at line 283 of file videoutils.cpp.

Referenced by VideoMetadataImp::fromDBRow().

◆ ContentTypeToString()

QString ContentTypeToString ( VideoContentType  type)

Definition at line 301 of file videoutils.cpp.

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