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.DataBroadcastDescriptor; 26 27 private import glib.MemorySlice; 28 private import glib.Str; 29 private import gst.mpegts.c.functions; 30 public import gst.mpegts.c.types; 31 private import gtkd.Loader; 32 33 34 /** */ 35 public final class DataBroadcastDescriptor 36 { 37 /** the main Gtk struct */ 38 protected GstMpegtsDataBroadcastDescriptor* gstMpegtsDataBroadcastDescriptor; 39 protected bool ownedRef; 40 41 /** Get the main Gtk struct */ 42 public GstMpegtsDataBroadcastDescriptor* getDataBroadcastDescriptorStruct(bool transferOwnership = false) 43 { 44 if (transferOwnership) 45 ownedRef = false; 46 return gstMpegtsDataBroadcastDescriptor; 47 } 48 49 /** the main Gtk struct as a void* */ 50 protected void* getStruct() 51 { 52 return cast(void*)gstMpegtsDataBroadcastDescriptor; 53 } 54 55 /** 56 * Sets our main struct and passes it to the parent class. 57 */ 58 public this (GstMpegtsDataBroadcastDescriptor* gstMpegtsDataBroadcastDescriptor, bool ownedRef = false) 59 { 60 this.gstMpegtsDataBroadcastDescriptor = gstMpegtsDataBroadcastDescriptor; 61 this.ownedRef = ownedRef; 62 } 63 64 ~this () 65 { 66 if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef ) 67 gst_mpegts_dvb_data_broadcast_descriptor_free(gstMpegtsDataBroadcastDescriptor); 68 } 69 70 71 /** 72 * the data broadcast id 73 */ 74 public @property ushort dataBroadcastId() 75 { 76 return gstMpegtsDataBroadcastDescriptor.dataBroadcastId; 77 } 78 79 /** Ditto */ 80 public @property void dataBroadcastId(ushort value) 81 { 82 gstMpegtsDataBroadcastDescriptor.dataBroadcastId = value; 83 } 84 85 /** 86 * the component tag 87 */ 88 public @property ubyte componentTag() 89 { 90 return gstMpegtsDataBroadcastDescriptor.componentTag; 91 } 92 93 /** Ditto */ 94 public @property void componentTag(ubyte value) 95 { 96 gstMpegtsDataBroadcastDescriptor.componentTag = value; 97 } 98 99 100 /** 101 * the selector byte field 102 */ 103 public @property ubyte[] selectorBytes() 104 { 105 return gstMpegtsDataBroadcastDescriptor.selectorBytes[0..gstMpegtsDataBroadcastDescriptor.length]; 106 } 107 108 /** Ditto */ 109 public @property void selectorBytes(ubyte[] value) 110 { 111 gstMpegtsDataBroadcastDescriptor.selectorBytes = value.ptr; 112 gstMpegtsDataBroadcastDescriptor.length = cast(ubyte)value.length; 113 } 114 115 /** 116 * language of @text 117 */ 118 public @property string languageCode() 119 { 120 return Str.toString(gstMpegtsDataBroadcastDescriptor.languageCode); 121 } 122 123 /** Ditto */ 124 public @property void languageCode(string value) 125 { 126 gstMpegtsDataBroadcastDescriptor.languageCode = Str.toStringz(value); 127 } 128 129 /** 130 * description of data broadcast 131 */ 132 public @property string text() 133 { 134 return Str.toString(gstMpegtsDataBroadcastDescriptor.text); 135 } 136 137 /** Ditto */ 138 public @property void text(string value) 139 { 140 gstMpegtsDataBroadcastDescriptor.text = Str.toStringz(value); 141 } 142 143 /** */ 144 public static GType getType() 145 { 146 return gst_mpegts_dvb_data_broadcast_descriptor_get_type(); 147 } 148 149 /** */ 150 public void free() 151 { 152 gst_mpegts_dvb_data_broadcast_descriptor_free(gstMpegtsDataBroadcastDescriptor); 153 ownedRef = false; 154 } 155 }