MythTV  master
Functions
v2serviceUtil.cpp File Reference
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <QDir>
#include <QFileInfoList>
#include <QJsonArray>
#include <QJsonObject>
#include "libmythbase/compat.h"
#include "libmythbase/mythscheduler.h"
#include "libmythbase/programinfo.h"
#include "libmythbase/programtypes.h"
#include "libmythbase/recordingtypes.h"
#include "libmythmetadata/videoutils.h"
#include "libmythtv/cardutil.h"
#include "libmythtv/channelgroup.h"
#include "libmythtv/channelinfo.h"
#include "libmythtv/channelutil.h"
#include "libmythtv/recorders/firewiredevice.h"
#include "libmythtv/recordinginfo.h"
#include "libmythtv/tv_rec.h"
#include "backendcontext.h"
#include "encoderlink.h"
#include "scheduler.h"
#include "v2encoder.h"
#include "v2frontend.h"
#include "v2serviceUtil.h"
Include dependency graph for v2serviceUtil.cpp:

Go to the source code of this file.

Functions

void V2FillProgramInfo (V2Program *pProgram, ProgramInfo *pInfo, bool bIncChannel, bool bDetails, bool bIncCast, bool bIncArtwork, bool bIncRecording)
 
bool V2FillChannelInfo (V2ChannelInfo *pChannel, uint nChanID, bool bDetails)
 
bool V2FillChannelInfo (V2ChannelInfo *pChannel, const ChannelInfo &channelInfo, bool bDetails)
 
void V2FillChannelGroup (V2ChannelGroup *pGroup, const ChannelGroupItem &pGroupItem)
 
void V2FillRecRuleInfo (V2RecRule *pRecRule, RecordingRule *pRule)
 
void V2FillArtworkInfoList (V2ArtworkInfoList *pArtworkInfoList, const QString &sInetref, uint nSeason)
 
void V2FillGenreList (V2GenreList *pGenreList, int videoID)
 
void V2FillVideoMetadataInfo (V2VideoMetadataInfo *pVideoMetadataInfo, const VideoMetadataListManager::VideoMetadataPtr &pMetadata, bool bDetails)
 
void V2FillMusicMetadataInfo (V2MusicMetadataInfo *pVideoMetadataInfo, MusicMetadata *pMetadata, bool bDetails)
 
void V2FillInputInfo (V2Input *input, const InputInfo &inputInfo)
 
void V2FillCastMemberList (V2CastMemberList *pCastMemberList, ProgramInfo *pInfo)
 
void V2FillCutList (V2CutList *pCutList, ProgramInfo *rInfo, int marktype)
 
void V2FillCommBreak (V2CutList *pCutList, ProgramInfo *rInfo, int marktype)
 
void V2FillSeek (V2CutList *pCutList, RecordingInfo *rInfo, MarkTypes marktype)
 
void FillEncoderList (QVariantList &list, QObject *parent)
 
int FillUpcomingList (QVariantList &list, QObject *parent, int &nStartIndex, int &nCount, bool bShowAll, int nRecordId, int nRecStatus, const QString &Sort)
 
void FillFrontendList (QVariantList &list, QObject *parent, bool OnLine)
 
int V2CreateRecordingGroup (const QString &groupName)
 
DBCreditsV2jsonCastToCredits (const QJsonObject &cast)
 
V2CaptureDeviceListgetV4l2List (const QRegularExpression &driver, const QString &cardType)
 
uint fillSelectionsFromDir (const QDir &dir, uint minor_min, uint minor_max, const QString &card, const QRegularExpression &driver, bool allow_duplicates, V2CaptureDeviceList *pList, const QString &cardType)
 
V2CaptureDeviceListgetFirewireList (const QString &cardType)
 

Function Documentation

◆ V2FillProgramInfo()

void V2FillProgramInfo ( V2Program pProgram,
ProgramInfo pInfo,
bool  bIncChannel,
bool  bDetails,
bool  bIncCast,
bool  bIncArtwork,
bool  bIncRecording 
)

◆ V2FillChannelInfo() [1/2]

bool V2FillChannelInfo ( V2ChannelInfo pChannel,
uint  nChanID,
bool  bDetails 
)

◆ V2FillChannelInfo() [2/2]

bool V2FillChannelInfo ( V2ChannelInfo pChannel,
const ChannelInfo channelInfo,
bool  bDetails 
)

Definition at line 180 of file v2serviceUtil.cpp.

◆ V2FillChannelGroup()

void V2FillChannelGroup ( V2ChannelGroup pGroup,
const ChannelGroupItem pGroupItem 
)

Definition at line 247 of file v2serviceUtil.cpp.

Referenced by V2Guide::GetChannelGroupList().

◆ V2FillRecRuleInfo()

void V2FillRecRuleInfo ( V2RecRule pRecRule,
RecordingRule pRule 
)

Definition at line 261 of file v2serviceUtil.cpp.

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

◆ V2FillArtworkInfoList()

void V2FillArtworkInfoList ( V2ArtworkInfoList pArtworkInfoList,
const QString &  sInetref,
uint  nSeason 
)

Definition at line 319 of file v2serviceUtil.cpp.

Referenced by V2Content::GetProgramArtworkList(), and V2FillProgramInfo().

◆ V2FillGenreList()

void V2FillGenreList ( V2GenreList pGenreList,
int  videoID 
)

Definition at line 362 of file v2serviceUtil.cpp.

Referenced by V2FillVideoMetadataInfo().

◆ V2FillVideoMetadataInfo()

void V2FillVideoMetadataInfo ( V2VideoMetadataInfo pVideoMetadataInfo,
const VideoMetadataListManager::VideoMetadataPtr pMetadata,
bool  bDetails 
)

◆ V2FillMusicMetadataInfo()

void V2FillMusicMetadataInfo ( V2MusicMetadataInfo pVideoMetadataInfo,
MusicMetadata pMetadata,
bool  bDetails 
)

Definition at line 488 of file v2serviceUtil.cpp.

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

◆ V2FillInputInfo()

void V2FillInputInfo ( V2Input input,
const InputInfo inputInfo 
)

Definition at line 513 of file v2serviceUtil.cpp.

Referenced by FillEncoderList(), and V2Dvr::GetInputList().

◆ V2FillCastMemberList()

void V2FillCastMemberList ( V2CastMemberList pCastMemberList,
ProgramInfo pInfo 
)

Definition at line 528 of file v2serviceUtil.cpp.

Referenced by V2FillProgramInfo().

◆ V2FillCutList()

void V2FillCutList ( V2CutList pCutList,
ProgramInfo rInfo,
int  marktype 
)

Definition at line 602 of file v2serviceUtil.cpp.

Referenced by V2Dvr::GetRecordedCutList(), and V2Video::GetVideoCutList().

◆ V2FillCommBreak()

void V2FillCommBreak ( V2CutList pCutList,
ProgramInfo rInfo,
int  marktype 
)

Definition at line 644 of file v2serviceUtil.cpp.

Referenced by V2Dvr::GetRecordedCommBreak(), and V2Video::GetVideoCommBreak().

◆ V2FillSeek()

void V2FillSeek ( V2CutList pCutList,
RecordingInfo rInfo,
MarkTypes  marktype 
)

Definition at line 690 of file v2serviceUtil.cpp.

Referenced by V2Dvr::GetRecordedSeek().

◆ FillEncoderList()

void FillEncoderList ( QVariantList &  list,
QObject *  parent 
)

Definition at line 708 of file v2serviceUtil.cpp.

Referenced by V2Status::GetBackendStatus(), and V2Dvr::GetEncoderList().

◆ FillUpcomingList()

int FillUpcomingList ( QVariantList &  list,
QObject *  parent,
int &  nStartIndex,
int &  nCount,
bool  bShowAll,
int  nRecordId,
int  nRecStatus,
const QString &  Sort 
)

◆ FillFrontendList()

void FillFrontendList ( QVariantList &  list,
QObject *  parent,
bool  OnLine 
)

Definition at line 880 of file v2serviceUtil.cpp.

Referenced by V2Status::GetBackendStatus(), and V2Myth::GetFrontends().

◆ V2CreateRecordingGroup()

int V2CreateRecordingGroup ( const QString &  groupName)

Definition at line 902 of file v2serviceUtil.cpp.

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

◆ V2jsonCastToCredits()

DBCredits* V2jsonCastToCredits ( const QJsonObject &  cast)

Definition at line 922 of file v2serviceUtil.cpp.

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

◆ getV4l2List()

V2CaptureDeviceList* getV4l2List ( const QRegularExpression &  driver,
const QString &  cardType 
)

Definition at line 942 of file v2serviceUtil.cpp.

Referenced by V2Capture::GetCaptureDeviceList().

◆ fillSelectionsFromDir()

uint fillSelectionsFromDir ( const QDir &  dir,
uint  minor_min,
uint  minor_max,
const QString &  card,
const QRegularExpression &  driver,
bool  allow_duplicates,
V2CaptureDeviceList pList,
const QString &  cardType 
)

Definition at line 973 of file v2serviceUtil.cpp.

Referenced by getV4l2List().

◆ getFirewireList()

V2CaptureDeviceList* getFirewireList ( const QString &  cardType)

Definition at line 1044 of file v2serviceUtil.cpp.

Referenced by V2Capture::GetCaptureDeviceList().