1 /* 2 * This file is part of gtkD. 3 * 4 * gtkD is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU Lesser General Public License 6 * as published by the Free Software Foundation; either version 3 7 * of the License, or (at your option) any later version, with 8 * some exceptions, please read the COPYING file. 9 * 10 * gtkD is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public License 16 * along with gtkD; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA 18 */ 19 20 // generated automatically - do not change 21 // find conversion definition on APILookup.txt 22 // implement new conversion functionalities on the wrap.utils pakage 23 24 25 module gst.mpegts.T2DeliverySystemDescriptor; 26 27 private import glib.PtrArray; 28 private import glib.c.functions; 29 private import gst.mpegts.c.functions; 30 public import gst.mpegts.c.types; 31 private import gtkd.Loader; 32 33 34 /** 35 * describe DVB-T2 transmissions according to EN 302 755 36 */ 37 public final class T2DeliverySystemDescriptor 38 { 39 /** the main Gtk struct */ 40 protected GstMpegtsT2DeliverySystemDescriptor* gstMpegtsT2DeliverySystemDescriptor; 41 protected bool ownedRef; 42 43 /** Get the main Gtk struct */ 44 public GstMpegtsT2DeliverySystemDescriptor* getT2DeliverySystemDescriptorStruct(bool transferOwnership = false) 45 { 46 if (transferOwnership) 47 ownedRef = false; 48 return gstMpegtsT2DeliverySystemDescriptor; 49 } 50 51 /** the main Gtk struct as a void* */ 52 protected void* getStruct() 53 { 54 return cast(void*)gstMpegtsT2DeliverySystemDescriptor; 55 } 56 57 /** 58 * Sets our main struct and passes it to the parent class. 59 */ 60 public this (GstMpegtsT2DeliverySystemDescriptor* gstMpegtsT2DeliverySystemDescriptor, bool ownedRef = false) 61 { 62 this.gstMpegtsT2DeliverySystemDescriptor = gstMpegtsT2DeliverySystemDescriptor; 63 this.ownedRef = ownedRef; 64 } 65 66 ~this () 67 { 68 if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) 69 gst_mpegts_t2_delivery_system_descriptor_free(gstMpegtsT2DeliverySystemDescriptor); 70 } 71 72 73 /** */ 74 public @property ubyte plpId() 75 { 76 return gstMpegtsT2DeliverySystemDescriptor.plpId; 77 } 78 79 /** Ditto */ 80 public @property void plpId(ubyte value) 81 { 82 gstMpegtsT2DeliverySystemDescriptor.plpId = value; 83 } 84 85 /** */ 86 public @property ushort t2SystemId() 87 { 88 return gstMpegtsT2DeliverySystemDescriptor.t2SystemId; 89 } 90 91 /** Ditto */ 92 public @property void t2SystemId(ushort value) 93 { 94 gstMpegtsT2DeliverySystemDescriptor.t2SystemId = value; 95 } 96 97 /** */ 98 public @property ubyte sisoMiso() 99 { 100 return gstMpegtsT2DeliverySystemDescriptor.sisoMiso; 101 } 102 103 /** Ditto */ 104 public @property void sisoMiso(ubyte value) 105 { 106 gstMpegtsT2DeliverySystemDescriptor.sisoMiso = value; 107 } 108 109 /** */ 110 public @property uint bandwidth() 111 { 112 return gstMpegtsT2DeliverySystemDescriptor.bandwidth; 113 } 114 115 /** Ditto */ 116 public @property void bandwidth(uint value) 117 { 118 gstMpegtsT2DeliverySystemDescriptor.bandwidth = value; 119 } 120 121 /** */ 122 public @property GstMpegtsTerrestrialGuardInterval guardInterval() 123 { 124 return gstMpegtsT2DeliverySystemDescriptor.guardInterval; 125 } 126 127 /** Ditto */ 128 public @property void guardInterval(GstMpegtsTerrestrialGuardInterval value) 129 { 130 gstMpegtsT2DeliverySystemDescriptor.guardInterval = value; 131 } 132 133 /** */ 134 public @property GstMpegtsTerrestrialTransmissionMode transmissionMode() 135 { 136 return gstMpegtsT2DeliverySystemDescriptor.transmissionMode; 137 } 138 139 /** Ditto */ 140 public @property void transmissionMode(GstMpegtsTerrestrialTransmissionMode value) 141 { 142 gstMpegtsT2DeliverySystemDescriptor.transmissionMode = value; 143 } 144 145 /** */ 146 public @property bool otherFrequency() 147 { 148 return gstMpegtsT2DeliverySystemDescriptor.otherFrequency != 0; 149 } 150 151 /** Ditto */ 152 public @property void otherFrequency(bool value) 153 { 154 gstMpegtsT2DeliverySystemDescriptor.otherFrequency = value; 155 } 156 157 /** */ 158 public @property bool tfs() 159 { 160 return gstMpegtsT2DeliverySystemDescriptor.tfs != 0; 161 } 162 163 /** Ditto */ 164 public @property void tfs(bool value) 165 { 166 gstMpegtsT2DeliverySystemDescriptor.tfs = value; 167 } 168 169 /** */ 170 public @property PtrArray cells() 171 { 172 return new PtrArray(gstMpegtsT2DeliverySystemDescriptor.cells, false); 173 } 174 175 /** Ditto */ 176 public @property void cells(PtrArray value) 177 { 178 gstMpegtsT2DeliverySystemDescriptor.cells = value.getPtrArrayStruct(); 179 } 180 181 /** */ 182 public static GType getType() 183 { 184 return gst_mpegts_t2_delivery_system_descriptor_get_type(); 185 } 186 187 /** */ 188 public void free() 189 { 190 gst_mpegts_t2_delivery_system_descriptor_free(gstMpegtsT2DeliverySystemDescriptor); 191 ownedRef = false; 192 } 193 }