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.PtrArray;
28 private import glib.Str;
29 private import glib.c.functions;
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 			g_free(gstMpegtsAtscVCTSource);
71 	}
72 
73 
74 	/** */
75 	public @property string shortName()
76 	{
77 		return Str.toString(gstMpegtsAtscVCTSource.shortName);
78 	}
79 
80 	/** Ditto */
81 	public @property void shortName(string value)
82 	{
83 		gstMpegtsAtscVCTSource.shortName = Str.toStringz(value);
84 	}
85 
86 	/** */
87 	public @property ushort majorChannelNumber()
88 	{
89 		return gstMpegtsAtscVCTSource.majorChannelNumber;
90 	}
91 
92 	/** Ditto */
93 	public @property void majorChannelNumber(ushort value)
94 	{
95 		gstMpegtsAtscVCTSource.majorChannelNumber = value;
96 	}
97 
98 	/** */
99 	public @property ushort minorChannelNumber()
100 	{
101 		return gstMpegtsAtscVCTSource.minorChannelNumber;
102 	}
103 
104 	/** Ditto */
105 	public @property void minorChannelNumber(ushort value)
106 	{
107 		gstMpegtsAtscVCTSource.minorChannelNumber = value;
108 	}
109 
110 	/** */
111 	public @property ubyte modulationMode()
112 	{
113 		return gstMpegtsAtscVCTSource.modulationMode;
114 	}
115 
116 	/** Ditto */
117 	public @property void modulationMode(ubyte value)
118 	{
119 		gstMpegtsAtscVCTSource.modulationMode = value;
120 	}
121 
122 	/** */
123 	public @property uint carrierFrequency()
124 	{
125 		return gstMpegtsAtscVCTSource.carrierFrequency;
126 	}
127 
128 	/** Ditto */
129 	public @property void carrierFrequency(uint value)
130 	{
131 		gstMpegtsAtscVCTSource.carrierFrequency = value;
132 	}
133 
134 	/** */
135 	public @property ushort channelTSID()
136 	{
137 		return gstMpegtsAtscVCTSource.channelTSID;
138 	}
139 
140 	/** Ditto */
141 	public @property void channelTSID(ushort value)
142 	{
143 		gstMpegtsAtscVCTSource.channelTSID = value;
144 	}
145 
146 	/** */
147 	public @property ushort programNumber()
148 	{
149 		return gstMpegtsAtscVCTSource.programNumber;
150 	}
151 
152 	/** Ditto */
153 	public @property void programNumber(ushort value)
154 	{
155 		gstMpegtsAtscVCTSource.programNumber = value;
156 	}
157 
158 	/** */
159 	public @property ubyte ETMLocation()
160 	{
161 		return gstMpegtsAtscVCTSource.ETMLocation;
162 	}
163 
164 	/** Ditto */
165 	public @property void ETMLocation(ubyte value)
166 	{
167 		gstMpegtsAtscVCTSource.ETMLocation = value;
168 	}
169 
170 	/** */
171 	public @property bool accessControlled()
172 	{
173 		return gstMpegtsAtscVCTSource.accessControlled != 0;
174 	}
175 
176 	/** Ditto */
177 	public @property void accessControlled(bool value)
178 	{
179 		gstMpegtsAtscVCTSource.accessControlled = value;
180 	}
181 
182 	/** */
183 	public @property bool hidden()
184 	{
185 		return gstMpegtsAtscVCTSource.hidden != 0;
186 	}
187 
188 	/** Ditto */
189 	public @property void hidden(bool value)
190 	{
191 		gstMpegtsAtscVCTSource.hidden = value;
192 	}
193 
194 	/** */
195 	public @property bool pathSelect()
196 	{
197 		return gstMpegtsAtscVCTSource.pathSelect != 0;
198 	}
199 
200 	/** Ditto */
201 	public @property void pathSelect(bool value)
202 	{
203 		gstMpegtsAtscVCTSource.pathSelect = value;
204 	}
205 
206 	/** */
207 	public @property bool outOfBand()
208 	{
209 		return gstMpegtsAtscVCTSource.outOfBand != 0;
210 	}
211 
212 	/** Ditto */
213 	public @property void outOfBand(bool value)
214 	{
215 		gstMpegtsAtscVCTSource.outOfBand = value;
216 	}
217 
218 	/** */
219 	public @property bool hideGuide()
220 	{
221 		return gstMpegtsAtscVCTSource.hideGuide != 0;
222 	}
223 
224 	/** Ditto */
225 	public @property void hideGuide(bool value)
226 	{
227 		gstMpegtsAtscVCTSource.hideGuide = value;
228 	}
229 
230 	/** */
231 	public @property ubyte serviceType()
232 	{
233 		return gstMpegtsAtscVCTSource.serviceType;
234 	}
235 
236 	/** Ditto */
237 	public @property void serviceType(ubyte value)
238 	{
239 		gstMpegtsAtscVCTSource.serviceType = value;
240 	}
241 
242 	/** */
243 	public @property ushort sourceId()
244 	{
245 		return gstMpegtsAtscVCTSource.sourceId;
246 	}
247 
248 	/** Ditto */
249 	public @property void sourceId(ushort value)
250 	{
251 		gstMpegtsAtscVCTSource.sourceId = value;
252 	}
253 
254 	/**
255 	 * descriptors
256 	 */
257 	public @property PtrArray descriptors()
258 	{
259 		return new PtrArray(gstMpegtsAtscVCTSource.descriptors, false);
260 	}
261 
262 	/** Ditto */
263 	public @property void descriptors(PtrArray value)
264 	{
265 		gstMpegtsAtscVCTSource.descriptors = value.getPtrArrayStruct();
266 	}
267 
268 	/** */
269 	public static GType getType()
270 	{
271 		return gst_mpegts_atsc_vct_source_get_type();
272 	}
273 }