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.AtscVCTSource; 26 27 private import glib.MemorySlice; 28 private import glib.PtrArray; 29 private import glib.Str; 30 private import glib.c.functions; 31 private import gst.mpegts.c.functions; 32 public import gst.mpegts.c.types; 33 private import gtkd.Loader; 34 35 36 /** 37 * Source from a @GstMpegtsAtscVCT, can be used both for TVCT and CVCT tables 38 */ 39 public final class AtscVCTSource 40 { 41 /** the main Gtk struct */ 42 protected GstMpegtsAtscVCTSource* gstMpegtsAtscVCTSource; 43 protected bool ownedRef; 44 45 /** Get the main Gtk struct */ 46 public GstMpegtsAtscVCTSource* getAtscVCTSourceStruct(bool transferOwnership = false) 47 { 48 if (transferOwnership) 49 ownedRef = false; 50 return gstMpegtsAtscVCTSource; 51 } 52 53 /** the main Gtk struct as a void* */ 54 protected void* getStruct() 55 { 56 return cast(void*)gstMpegtsAtscVCTSource; 57 } 58 59 /** 60 * Sets our main struct and passes it to the parent class. 61 */ 62 public this (GstMpegtsAtscVCTSource* gstMpegtsAtscVCTSource, bool ownedRef = false) 63 { 64 this.gstMpegtsAtscVCTSource = gstMpegtsAtscVCTSource; 65 this.ownedRef = ownedRef; 66 } 67 68 ~this () 69 { 70 if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) 71 sliceFree(gstMpegtsAtscVCTSource); 72 } 73 74 75 /** 76 * The short name of a source 77 */ 78 public @property string shortName() 79 { 80 return Str.toString(gstMpegtsAtscVCTSource.shortName); 81 } 82 83 /** Ditto */ 84 public @property void shortName(string value) 85 { 86 gstMpegtsAtscVCTSource.shortName = Str.toStringz(value); 87 } 88 89 /** 90 * The major channel number 91 */ 92 public @property ushort majorChannelNumber() 93 { 94 return gstMpegtsAtscVCTSource.majorChannelNumber; 95 } 96 97 /** Ditto */ 98 public @property void majorChannelNumber(ushort value) 99 { 100 gstMpegtsAtscVCTSource.majorChannelNumber = value; 101 } 102 103 /** 104 * The minor channel number 105 */ 106 public @property ushort minorChannelNumber() 107 { 108 return gstMpegtsAtscVCTSource.minorChannelNumber; 109 } 110 111 /** Ditto */ 112 public @property void minorChannelNumber(ushort value) 113 { 114 gstMpegtsAtscVCTSource.minorChannelNumber = value; 115 } 116 117 /** 118 * The modulation mode 119 */ 120 public @property ubyte modulationMode() 121 { 122 return gstMpegtsAtscVCTSource.modulationMode; 123 } 124 125 /** Ditto */ 126 public @property void modulationMode(ubyte value) 127 { 128 gstMpegtsAtscVCTSource.modulationMode = value; 129 } 130 131 /** 132 * The carrier frequency 133 */ 134 public @property uint carrierFrequency() 135 { 136 return gstMpegtsAtscVCTSource.carrierFrequency; 137 } 138 139 /** Ditto */ 140 public @property void carrierFrequency(uint value) 141 { 142 gstMpegtsAtscVCTSource.carrierFrequency = value; 143 } 144 145 /** 146 * The transport stream ID 147 */ 148 public @property ushort channelTSID() 149 { 150 return gstMpegtsAtscVCTSource.channelTSID; 151 } 152 153 /** Ditto */ 154 public @property void channelTSID(ushort value) 155 { 156 gstMpegtsAtscVCTSource.channelTSID = value; 157 } 158 159 /** 160 * The program number (see #GstMpegtsPatProgram) 161 */ 162 public @property ushort programNumber() 163 { 164 return gstMpegtsAtscVCTSource.programNumber; 165 } 166 167 /** Ditto */ 168 public @property void programNumber(ushort value) 169 { 170 gstMpegtsAtscVCTSource.programNumber = value; 171 } 172 173 /** 174 * The ETM location 175 */ 176 public @property ubyte ETMLocation() 177 { 178 return gstMpegtsAtscVCTSource.ETMLocation; 179 } 180 181 /** Ditto */ 182 public @property void ETMLocation(ubyte value) 183 { 184 gstMpegtsAtscVCTSource.ETMLocation = value; 185 } 186 187 /** 188 * is access controlled 189 */ 190 public @property bool accessControlled() 191 { 192 return gstMpegtsAtscVCTSource.accessControlled != 0; 193 } 194 195 /** Ditto */ 196 public @property void accessControlled(bool value) 197 { 198 gstMpegtsAtscVCTSource.accessControlled = value; 199 } 200 201 /** 202 * is hidden 203 */ 204 public @property bool hidden() 205 { 206 return gstMpegtsAtscVCTSource.hidden != 0; 207 } 208 209 /** Ditto */ 210 public @property void hidden(bool value) 211 { 212 gstMpegtsAtscVCTSource.hidden = value; 213 } 214 215 /** 216 * is path select, CVCT only 217 */ 218 public @property bool pathSelect() 219 { 220 return gstMpegtsAtscVCTSource.pathSelect != 0; 221 } 222 223 /** Ditto */ 224 public @property void pathSelect(bool value) 225 { 226 gstMpegtsAtscVCTSource.pathSelect = value; 227 } 228 229 /** 230 * is out of band, CVCT only 231 */ 232 public @property bool outOfBand() 233 { 234 return gstMpegtsAtscVCTSource.outOfBand != 0; 235 } 236 237 /** Ditto */ 238 public @property void outOfBand(bool value) 239 { 240 gstMpegtsAtscVCTSource.outOfBand = value; 241 } 242 243 /** 244 * is hide guide 245 */ 246 public @property bool hideGuide() 247 { 248 return gstMpegtsAtscVCTSource.hideGuide != 0; 249 } 250 251 /** Ditto */ 252 public @property void hideGuide(bool value) 253 { 254 gstMpegtsAtscVCTSource.hideGuide = value; 255 } 256 257 /** 258 * The service type 259 */ 260 public @property ubyte serviceType() 261 { 262 return gstMpegtsAtscVCTSource.serviceType; 263 } 264 265 /** Ditto */ 266 public @property void serviceType(ubyte value) 267 { 268 gstMpegtsAtscVCTSource.serviceType = value; 269 } 270 271 /** 272 * The source id 273 */ 274 public @property ushort sourceId() 275 { 276 return gstMpegtsAtscVCTSource.sourceId; 277 } 278 279 /** Ditto */ 280 public @property void sourceId(ushort value) 281 { 282 gstMpegtsAtscVCTSource.sourceId = value; 283 } 284 285 /** 286 * an array of #GstMpegtsDescriptor 287 */ 288 public @property PtrArray descriptors() 289 { 290 return new PtrArray(gstMpegtsAtscVCTSource.descriptors, false); 291 } 292 293 /** Ditto */ 294 public @property void descriptors(PtrArray value) 295 { 296 gstMpegtsAtscVCTSource.descriptors = value.getPtrArrayStruct(); 297 } 298 299 /** */ 300 public static GType getType() 301 { 302 return gst_mpegts_atsc_vct_source_get_type(); 303 } 304 }