MythTV  master
serviceUtil.h
Go to the documentation of this file.
1 // Program Name: serviceUtil.h
3 // Created : Mar. 7, 2011
4 //
5 // Copyright (c) 2011 David Blain <dblain@mythtv.org>
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 2 of the License, or
10 // (at your option) any later version.
11 //
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, see <http://www.gnu.org/licenses/>.
23 //
25 
26 #ifndef _SERVICEUTIL_H_
27 #define _SERVICEUTIL_H_
28 
30 #include "datacontracts/recRule.h"
35 #include "datacontracts/input.h"
37 #include "datacontracts/cutList.h"
39 
40 #include "programinfo.h"
41 #include "recordingrule.h"
43 #include "channelgroup.h"
44 #include "inputinfo.h"
45 #include "channelinfo.h"
46 #include "recordinginfo.h"
47 #include "musicmetadata.h"
48 
49 const QStringList KnownServices = { "Capture", "Channel", "Content", \
50  "Dvr", "Guide", "Music", \
51  "Myth", "Video" };
52 
53 void FillProgramInfo( DTC::Program *pProgram,
54  ProgramInfo *pInfo,
55  bool bIncChannel = true,
56  bool bDetails = true,
57  bool bIncCast = true);
58 
59 bool FillChannelInfo( DTC::ChannelInfo *pChannel,
60  uint nChanID,
61  bool bDetails = true );
62 
63 bool FillChannelInfo( DTC::ChannelInfo *pChannel,
64  const ChannelInfo &channelInfo,
65  bool bDetails = true );
66 
67 void FillChannelGroup( DTC::ChannelGroup *pGroup, const ChannelGroupItem& pGroupItem);
68 
69 void FillRecRuleInfo( DTC::RecRule *pRecRule,
70  RecordingRule *pRule );
71 
72 void FillArtworkInfoList( DTC::ArtworkInfoList *pArtworkInfoList,
73  const QString &sInetref,
74  uint nSeason );
75 
76 void FillGenreList( DTC::GenreList *pGenreList, int videoID);
77 
79  DTC::VideoMetadataInfo *pVideoMetadataInfo,
81  bool bDetails);
82 
83 void FillMusicMetadataInfo (DTC::MusicMetadataInfo *pVideoMetadataInfo,
84  MusicMetadata *pMetadata, bool bDetails);
85 
86 void FillInputInfo( DTC::Input *input, const InputInfo& inputInfo);
87 
88 void FillCastMemberList( DTC::CastMemberList *pCastMemberList,
89  ProgramInfo *pInfo);
90 
91 void FillCutList( DTC::CutList* pCutList, RecordingInfo* rInfo, int marktype);
92 
93 void FillCommBreak( DTC::CutList* pCutList, RecordingInfo* rInfo, int marktype);
94 
95 void FillSeek(DTC::CutList* pCutList, RecordingInfo* rInfo, MarkTypes marktype);
96 
97 
98 #endif
Holds information on a TV Program one might wish to record.
Definition: recordinginfo.h:34
unsigned int uint
Definition: compat.h:140
void FillRecRuleInfo(DTC::RecRule *pRecRule, RecordingRule *pRule)
void FillVideoMetadataInfo(DTC::VideoMetadataInfo *pVideoMetadataInfo, const VideoMetadataListManager::VideoMetadataPtr &pMetadata, bool bDetails)
void FillProgramInfo(DTC::Program *pProgram, ProgramInfo *pInfo, bool bIncChannel=true, bool bDetails=true, bool bIncCast=true)
Definition: serviceUtil.cpp:44
MarkTypes
Definition: programtypes.h:48
Holds information on recordings and videos.
Definition: programinfo.h:66
void FillCutList(DTC::CutList *pCutList, RecordingInfo *rInfo, int marktype)
void FillArtworkInfoList(DTC::ArtworkInfoList *pArtworkInfoList, const QString &sInetref, uint nSeason)
bool FillChannelInfo(DTC::ChannelInfo *pChannel, uint nChanID, bool bDetails=true)
Internal representation of a recording rule, mirrors the record table.
Definition: recordingrule.h:32
void FillCastMemberList(DTC::CastMemberList *pCastMemberList, ProgramInfo *pInfo)
void FillCommBreak(DTC::CutList *pCutList, RecordingInfo *rInfo, int marktype)
void FillSeek(DTC::CutList *pCutList, RecordingInfo *rInfo, MarkTypes marktype)
void FillMusicMetadataInfo(DTC::MusicMetadataInfo *pVideoMetadataInfo, MusicMetadata *pMetadata, bool bDetails)
void FillGenreList(DTC::GenreList *pGenreList, int videoID)
void FillInputInfo(DTC::Input *input, const InputInfo &inputInfo)
const QStringList KnownServices
Definition: serviceUtil.h:49
void FillChannelGroup(DTC::ChannelGroup *pGroup, const ChannelGroupItem &pGroupItem)