MythTV  master
Functions | Variables
serviceUtil.h File Reference
#include "libmythbase/programinfo.h"
#include "libmythmetadata/musicmetadata.h"
#include "libmythmetadata/videometadatalistmanager.h"
#include "libmythservicecontracts/datacontracts/artworkInfoList.h"
#include "libmythservicecontracts/datacontracts/castMemberList.h"
#include "libmythservicecontracts/datacontracts/channelGroup.h"
#include "libmythservicecontracts/datacontracts/cutList.h"
#include "libmythservicecontracts/datacontracts/genreList.h"
#include "libmythservicecontracts/datacontracts/input.h"
#include "libmythservicecontracts/datacontracts/musicMetadataInfo.h"
#include "libmythservicecontracts/datacontracts/programAndChannel.h"
#include "libmythservicecontracts/datacontracts/recRule.h"
#include "libmythservicecontracts/datacontracts/videoMetadataInfo.h"
#include "libmythtv/channelgroup.h"
#include "libmythtv/channelinfo.h"
#include "libmythtv/inputinfo.h"
#include "libmythtv/programdata.h"
#include "libmythtv/recordinginfo.h"
#include "libmythtv/recordingrule.h"
Include dependency graph for serviceUtil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
static void ADD_SQL (QString &settings_var, MSqlBindings &bindvar, const QString &col, const QString &api_param, const T &val)
 
void FillProgramInfo (DTC::Program *pProgram, ProgramInfo *pInfo, bool bIncChannel=true, bool bDetails=true, bool bIncCast=true)
 
bool FillChannelInfo (DTC::ChannelInfo *pChannel, uint nChanID, bool bDetails=true)
 
bool FillChannelInfo (DTC::ChannelInfo *pChannel, const ChannelInfo &channelInfo, bool bDetails=true)
 
void FillChannelGroup (DTC::ChannelGroup *pGroup, const ChannelGroupItem &pGroupItem)
 
void FillRecRuleInfo (DTC::RecRule *pRecRule, RecordingRule *pRule)
 
void FillArtworkInfoList (DTC::ArtworkInfoList *pArtworkInfoList, const QString &sInetref, uint nSeason)
 
void FillGenreList (DTC::GenreList *pGenreList, int videoID)
 
void FillVideoMetadataInfo (DTC::VideoMetadataInfo *pVideoMetadataInfo, const VideoMetadataListManager::VideoMetadataPtr &pMetadata, bool bDetails)
 
void FillMusicMetadataInfo (DTC::MusicMetadataInfo *pVideoMetadataInfo, MusicMetadata *pMetadata, bool bDetails)
 
void FillInputInfo (DTC::Input *input, const InputInfo &inputInfo)
 
void FillCastMemberList (DTC::CastMemberList *pCastMemberList, ProgramInfo *pInfo)
 
void FillCutList (DTC::CutList *pCutList, RecordingInfo *rInfo, int marktype)
 
void FillCommBreak (DTC::CutList *pCutList, RecordingInfo *rInfo, int marktype)
 
void FillSeek (DTC::CutList *pCutList, RecordingInfo *rInfo, MarkTypes marktype)
 
int CreateRecordingGroup (const QString &groupName)
 
DBCreditsjsonCastToCredits (const QJsonObject &cast)
 

Variables

const QStringList KnownServices
 

Function Documentation

◆ ADD_SQL()

template<typename T >
static void ADD_SQL ( QString &  settings_var,
MSqlBindings bindvar,
const QString &  col,
const QString &  api_param,
const T &  val 
)
inlinestatic

Definition at line 52 of file serviceUtil.h.

Referenced by Channel::UpdateVideoSource(), and V2Channel::UpdateVideoSource().

◆ FillProgramInfo()

void FillProgramInfo ( DTC::Program pProgram,
ProgramInfo pInfo,
bool  bIncChannel = true,
bool  bDetails = true,
bool  bIncCast = true 
)

◆ FillChannelInfo() [1/2]

bool FillChannelInfo ( DTC::ChannelInfo pChannel,
uint  nChanID,
bool  bDetails = true 
)

◆ FillChannelInfo() [2/2]

bool FillChannelInfo ( DTC::ChannelInfo pChannel,
const ChannelInfo channelInfo,
bool  bDetails = true 
)

Definition at line 192 of file serviceUtil.cpp.

◆ FillChannelGroup()

void FillChannelGroup ( DTC::ChannelGroup pGroup,
const ChannelGroupItem pGroupItem 
)

Definition at line 263 of file serviceUtil.cpp.

Referenced by Guide::GetChannelGroupList().

◆ FillRecRuleInfo()

void FillRecRuleInfo ( DTC::RecRule pRecRule,
RecordingRule pRule 
)

Definition at line 277 of file serviceUtil.cpp.

Referenced by Dvr::GetRecordSchedule(), and Dvr::GetRecordScheduleList().

◆ FillArtworkInfoList()

void FillArtworkInfoList ( DTC::ArtworkInfoList pArtworkInfoList,
const QString &  sInetref,
uint  nSeason 
)

Definition at line 338 of file serviceUtil.cpp.

Referenced by FillProgramInfo(), and Content::GetProgramArtworkList().

◆ FillGenreList()

void FillGenreList ( DTC::GenreList pGenreList,
int  videoID 
)

Definition at line 385 of file serviceUtil.cpp.

Referenced by FillVideoMetadataInfo().

◆ FillVideoMetadataInfo()

void FillVideoMetadataInfo ( DTC::VideoMetadataInfo pVideoMetadataInfo,
const VideoMetadataListManager::VideoMetadataPtr pMetadata,
bool  bDetails 
)

◆ FillMusicMetadataInfo()

void FillMusicMetadataInfo ( DTC::MusicMetadataInfo pVideoMetadataInfo,
MusicMetadata pMetadata,
bool  bDetails 
)

Definition at line 515 of file serviceUtil.cpp.

Referenced by Music::GetTrack(), and Music::GetTrackList().

◆ FillInputInfo()

void FillInputInfo ( DTC::Input input,
const InputInfo inputInfo 
)

Definition at line 544 of file serviceUtil.cpp.

Referenced by Dvr::GetEncoderList(), and Dvr::GetInputList().

◆ FillCastMemberList()

void FillCastMemberList ( DTC::CastMemberList pCastMemberList,
ProgramInfo pInfo 
)

Definition at line 561 of file serviceUtil.cpp.

Referenced by FillProgramInfo().

◆ FillCutList()

void FillCutList ( DTC::CutList pCutList,
RecordingInfo rInfo,
int  marktype 
)

Definition at line 640 of file serviceUtil.cpp.

Referenced by Dvr::GetRecordedCutList().

◆ FillCommBreak()

void FillCommBreak ( DTC::CutList pCutList,
RecordingInfo rInfo,
int  marktype 
)

Definition at line 686 of file serviceUtil.cpp.

Referenced by Dvr::GetRecordedCommBreak().

◆ FillSeek()

void FillSeek ( DTC::CutList pCutList,
RecordingInfo rInfo,
MarkTypes  marktype 
)

Definition at line 732 of file serviceUtil.cpp.

Referenced by Dvr::GetRecordedSeek().

◆ CreateRecordingGroup()

int CreateRecordingGroup ( const QString &  groupName)

Definition at line 750 of file serviceUtil.cpp.

Referenced by Dvr::AddRecordSchedule(), and Dvr::UpdateRecordSchedule().

◆ jsonCastToCredits()

DBCredits* jsonCastToCredits ( const QJsonObject &  cast)

Definition at line 770 of file serviceUtil.cpp.

Referenced by Dvr::AddRecordedCredits(), and Dvr::AddRecordedProgram().

Variable Documentation

◆ KnownServices

const QStringList KnownServices
Initial value:
= { "Capture", "Channel", "Content",
"Dvr", "Guide", "Music",
"Myth", "Video" }

Definition at line 59 of file serviceUtil.h.

Referenced by Myth::ManageUrlProtection().