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.TerrestrialDeliverySystemDescriptor;
26 
27 private import glib.MemorySlice;
28 private import gst.mpegts.c.functions;
29 public  import gst.mpegts.c.types;
30 private import gtkd.Loader;
31 
32 
33 /**
34  * Terrestrial Delivery System Descriptor (EN 300 468 v.1.13.1)
35  */
36 public final class TerrestrialDeliverySystemDescriptor
37 {
38 	/** the main Gtk struct */
39 	protected GstMpegtsTerrestrialDeliverySystemDescriptor* gstMpegtsTerrestrialDeliverySystemDescriptor;
40 	protected bool ownedRef;
41 
42 	/** Get the main Gtk struct */
43 	public GstMpegtsTerrestrialDeliverySystemDescriptor* getTerrestrialDeliverySystemDescriptorStruct(bool transferOwnership = false)
44 	{
45 		if (transferOwnership)
46 			ownedRef = false;
47 		return gstMpegtsTerrestrialDeliverySystemDescriptor;
48 	}
49 
50 	/** the main Gtk struct as a void* */
51 	protected void* getStruct()
52 	{
53 		return cast(void*)gstMpegtsTerrestrialDeliverySystemDescriptor;
54 	}
55 
56 	/**
57 	 * Sets our main struct and passes it to the parent class.
58 	 */
59 	public this (GstMpegtsTerrestrialDeliverySystemDescriptor* gstMpegtsTerrestrialDeliverySystemDescriptor, bool ownedRef = false)
60 	{
61 		this.gstMpegtsTerrestrialDeliverySystemDescriptor = gstMpegtsTerrestrialDeliverySystemDescriptor;
62 		this.ownedRef = ownedRef;
63 	}
64 
65 	~this ()
66 	{
67 		if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef )
68 			sliceFree(gstMpegtsTerrestrialDeliverySystemDescriptor);
69 	}
70 
71 
72 	/**
73 	 * the frequency in Hz (Hertz)
74 	 */
75 	public @property uint frequency()
76 	{
77 		return gstMpegtsTerrestrialDeliverySystemDescriptor.frequency;
78 	}
79 
80 	/** Ditto */
81 	public @property void frequency(uint value)
82 	{
83 		gstMpegtsTerrestrialDeliverySystemDescriptor.frequency = value;
84 	}
85 
86 	/**
87 	 * the bandwidth in Hz (Hertz)
88 	 */
89 	public @property uint bandwidth()
90 	{
91 		return gstMpegtsTerrestrialDeliverySystemDescriptor.bandwidth;
92 	}
93 
94 	/** Ditto */
95 	public @property void bandwidth(uint value)
96 	{
97 		gstMpegtsTerrestrialDeliverySystemDescriptor.bandwidth = value;
98 	}
99 
100 	/**
101 	 * %TRUE High Priority %FALSE Low Priority
102 	 */
103 	public @property bool priority()
104 	{
105 		return gstMpegtsTerrestrialDeliverySystemDescriptor.priority != 0;
106 	}
107 
108 	/** Ditto */
109 	public @property void priority(bool value)
110 	{
111 		gstMpegtsTerrestrialDeliverySystemDescriptor.priority = value;
112 	}
113 
114 	/**
115 	 * %TRUE no time slicing %FALSE time slicing
116 	 */
117 	public @property bool timeSlicing()
118 	{
119 		return gstMpegtsTerrestrialDeliverySystemDescriptor.timeSlicing != 0;
120 	}
121 
122 	/** Ditto */
123 	public @property void timeSlicing(bool value)
124 	{
125 		gstMpegtsTerrestrialDeliverySystemDescriptor.timeSlicing = value;
126 	}
127 
128 	/**
129 	 * %TRUE no mpe-fec is used %FALSE mpe-fec is use
130 	 */
131 	public @property bool mpeFec()
132 	{
133 		return gstMpegtsTerrestrialDeliverySystemDescriptor.mpeFec != 0;
134 	}
135 
136 	/** Ditto */
137 	public @property void mpeFec(bool value)
138 	{
139 		gstMpegtsTerrestrialDeliverySystemDescriptor.mpeFec = value;
140 	}
141 
142 	/**
143 	 * the constallation
144 	 */
145 	public @property GstMpegtsModulationType constellation()
146 	{
147 		return gstMpegtsTerrestrialDeliverySystemDescriptor.constellation;
148 	}
149 
150 	/** Ditto */
151 	public @property void constellation(GstMpegtsModulationType value)
152 	{
153 		gstMpegtsTerrestrialDeliverySystemDescriptor.constellation = value;
154 	}
155 
156 	/**
157 	 * the hierarchy
158 	 */
159 	public @property GstMpegtsTerrestrialHierarchy hierarchy()
160 	{
161 		return gstMpegtsTerrestrialDeliverySystemDescriptor.hierarchy;
162 	}
163 
164 	/** Ditto */
165 	public @property void hierarchy(GstMpegtsTerrestrialHierarchy value)
166 	{
167 		gstMpegtsTerrestrialDeliverySystemDescriptor.hierarchy = value;
168 	}
169 
170 	/** */
171 	public @property GstMpegtsDVBCodeRate codeRateHp()
172 	{
173 		return gstMpegtsTerrestrialDeliverySystemDescriptor.codeRateHp;
174 	}
175 
176 	/** Ditto */
177 	public @property void codeRateHp(GstMpegtsDVBCodeRate value)
178 	{
179 		gstMpegtsTerrestrialDeliverySystemDescriptor.codeRateHp = value;
180 	}
181 
182 	/** */
183 	public @property GstMpegtsDVBCodeRate codeRateLp()
184 	{
185 		return gstMpegtsTerrestrialDeliverySystemDescriptor.codeRateLp;
186 	}
187 
188 	/** Ditto */
189 	public @property void codeRateLp(GstMpegtsDVBCodeRate value)
190 	{
191 		gstMpegtsTerrestrialDeliverySystemDescriptor.codeRateLp = value;
192 	}
193 
194 	/** */
195 	public @property GstMpegtsTerrestrialGuardInterval guardInterval()
196 	{
197 		return gstMpegtsTerrestrialDeliverySystemDescriptor.guardInterval;
198 	}
199 
200 	/** Ditto */
201 	public @property void guardInterval(GstMpegtsTerrestrialGuardInterval value)
202 	{
203 		gstMpegtsTerrestrialDeliverySystemDescriptor.guardInterval = value;
204 	}
205 
206 	/** */
207 	public @property GstMpegtsTerrestrialTransmissionMode transmissionMode()
208 	{
209 		return gstMpegtsTerrestrialDeliverySystemDescriptor.transmissionMode;
210 	}
211 
212 	/** Ditto */
213 	public @property void transmissionMode(GstMpegtsTerrestrialTransmissionMode value)
214 	{
215 		gstMpegtsTerrestrialDeliverySystemDescriptor.transmissionMode = value;
216 	}
217 
218 	/**
219 	 * %TRUE more frequency are use, else not
220 	 */
221 	public @property bool otherFrequency()
222 	{
223 		return gstMpegtsTerrestrialDeliverySystemDescriptor.otherFrequency != 0;
224 	}
225 
226 	/** Ditto */
227 	public @property void otherFrequency(bool value)
228 	{
229 		gstMpegtsTerrestrialDeliverySystemDescriptor.otherFrequency = value;
230 	}
231 
232 	/** */
233 	public static GType getType()
234 	{
235 		return gst_mpegts_terrestrial_delivery_system_descriptor_get_type();
236 	}
237 }