CPPMyth
Library to interoperate with MythTV server
Loading...
Searching...
No Matches
mythdto.cpp
1/*
2 * Copyright (C) 2014 Jean-Luc Barriere
3 *
4 * This Program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2, or (at your option)
7 * any later version.
8 *
9 * This Program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; see the file COPYING. If not, write to
16 * the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
17 * MA 02110-1301 USA
18 * http://www.gnu.org/copyleft/gpl.html
19 *
20 */
21
22#include "mythdto.h"
23#include "mythdto75.h" // Base protocol version 75
24#include "mythdto76.h" // Add protocol version 76
25#include "mythdto82.h" // Add protocol version 82
26#include "mythdto85.h" // Add protocol version 85
27
29{
30 (void)ranking;
31 return &MythDTO75::VersionBindArray2_0;
32}
33
35{
36 (void)proto;
37 return &MythDTO75::ListBindArray;
38}
39
41{
42 if (proto >= 75)
43 return &MythDTO75::ChannelBindArray;
44 return nullptr;
45}
46
48{
49 if (proto >= 82)
50 return &MythDTO82::RecordingBindArray;
51 if (proto >= 75)
52 return &MythDTO75::RecordingBindArray;
53 return nullptr;
54}
55
57{
58 if (proto >= 75)
59 return &MythDTO75::ArtworkBindArray;
60 return nullptr;
61}
62
64{
65 if (proto >= 75)
66 return &MythDTO75::ProgramBindArray;
67 return nullptr;
68}
69
71{
72 if (proto >= 75)
73 return &MythDTO75::CaptureCardBindArray;
74 return nullptr;
75}
76
78{
79 if (proto >= 75)
80 return &MythDTO75::VideoSourceBindArray;
81 return nullptr;
82}
83
85{
86 if (proto >= 76)
87 return &MythDTO76::RecordScheduleBindArray;
88 if (proto >= 75)
89 return &MythDTO75::RecordScheduleBindArray;
90 return nullptr;
91}
92
94{
95 if (proto >= 85)
96 return &MythDTO85::CuttingBindArray;
97 return nullptr;
98}
const bindings_t * getChannelBindArray(unsigned proto)
Returns bindings for Myth::Channel.
Definition mythdto.cpp:40
const bindings_t * getVideoSourceBindArray(unsigned proto)
Returns bindings for Myth::VideoSource.
Definition mythdto.cpp:77
const bindings_t * getRecordScheduleBindArray(unsigned proto)
Returns bindings for Myth::RecordSchedule.
Definition mythdto.cpp:84
const bindings_t * getCaptureCardBindArray(unsigned proto)
Returns bindings for Myth::CaptureCard.
Definition mythdto.cpp:70
const bindings_t * getRecordingBindArray(unsigned proto)
Returns bindings for Myth::Recording.
Definition mythdto.cpp:47
const bindings_t * getCuttingBindArray(unsigned proto)
Returns bindings for Myth::Mark.
Definition mythdto.cpp:93
const bindings_t * getListBindArray(unsigned proto)
Returns bindings for Myth::List.
Definition mythdto.cpp:34
const bindings_t * getVersionBindArray(unsigned ranking)
Returns bindings for Myth::Version.
Definition mythdto.cpp:28
const bindings_t * getArtworkBindArray(unsigned proto)
Returns bindings for Myth::Artwork.
Definition mythdto.cpp:56
const bindings_t * getProgramBindArray(unsigned proto)
Returns bindings for Myth::Program.
Definition mythdto.cpp:63
Brings together all attribute bindings of an object.
Definition mythdto.h:67