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