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.SCTESpliceEvent;
26 
27 private import glib.ConstructionException;
28 private import glib.MemorySlice;
29 private import gobject.ObjectG;
30 private import gst.mpegts.c.functions;
31 public  import gst.mpegts.c.types;
32 private import gtkd.Loader;
33 
34 
35 /** */
36 public final class SCTESpliceEvent
37 {
38 	/** the main Gtk struct */
39 	protected GstMpegtsSCTESpliceEvent* gstMpegtsSCTESpliceEvent;
40 	protected bool ownedRef;
41 
42 	/** Get the main Gtk struct */
43 	public GstMpegtsSCTESpliceEvent* getSCTESpliceEventStruct(bool transferOwnership = false)
44 	{
45 		if (transferOwnership)
46 			ownedRef = false;
47 		return gstMpegtsSCTESpliceEvent;
48 	}
49 
50 	/** the main Gtk struct as a void* */
51 	protected void* getStruct()
52 	{
53 		return cast(void*)gstMpegtsSCTESpliceEvent;
54 	}
55 
56 	/**
57 	 * Sets our main struct and passes it to the parent class.
58 	 */
59 	public this (GstMpegtsSCTESpliceEvent* gstMpegtsSCTESpliceEvent, bool ownedRef = false)
60 	{
61 		this.gstMpegtsSCTESpliceEvent = gstMpegtsSCTESpliceEvent;
62 		this.ownedRef = ownedRef;
63 	}
64 
65 	~this ()
66 	{
67 		if ( Linker.isLoaded(LIBRARY_GSTMPEGTS) && ownedRef )
68 			sliceFree(gstMpegtsSCTESpliceEvent);
69 	}
70 
71 
72 	/** */
73 	public @property bool insertEvent()
74 	{
75 		return gstMpegtsSCTESpliceEvent.insertEvent != 0;
76 	}
77 
78 	/** Ditto */
79 	public @property void insertEvent(bool value)
80 	{
81 		gstMpegtsSCTESpliceEvent.insertEvent = value;
82 	}
83 
84 	/** */
85 	public @property uint spliceEventId()
86 	{
87 		return gstMpegtsSCTESpliceEvent.spliceEventId;
88 	}
89 
90 	/** Ditto */
91 	public @property void spliceEventId(uint value)
92 	{
93 		gstMpegtsSCTESpliceEvent.spliceEventId = value;
94 	}
95 
96 	/** */
97 	public @property bool spliceEventCancelIndicator()
98 	{
99 		return gstMpegtsSCTESpliceEvent.spliceEventCancelIndicator != 0;
100 	}
101 
102 	/** Ditto */
103 	public @property void spliceEventCancelIndicator(bool value)
104 	{
105 		gstMpegtsSCTESpliceEvent.spliceEventCancelIndicator = value;
106 	}
107 
108 	/** */
109 	public @property bool outOfNetworkIndicator()
110 	{
111 		return gstMpegtsSCTESpliceEvent.outOfNetworkIndicator != 0;
112 	}
113 
114 	/** Ditto */
115 	public @property void outOfNetworkIndicator(bool value)
116 	{
117 		gstMpegtsSCTESpliceEvent.outOfNetworkIndicator = value;
118 	}
119 
120 	/** */
121 	public @property bool programSpliceFlag()
122 	{
123 		return gstMpegtsSCTESpliceEvent.programSpliceFlag != 0;
124 	}
125 
126 	/** Ditto */
127 	public @property void programSpliceFlag(bool value)
128 	{
129 		gstMpegtsSCTESpliceEvent.programSpliceFlag = value;
130 	}
131 
132 	/** */
133 	public @property bool durationFlag()
134 	{
135 		return gstMpegtsSCTESpliceEvent.durationFlag != 0;
136 	}
137 
138 	/** Ditto */
139 	public @property void durationFlag(bool value)
140 	{
141 		gstMpegtsSCTESpliceEvent.durationFlag = value;
142 	}
143 
144 	/** */
145 	public @property bool spliceImmediateFlag()
146 	{
147 		return gstMpegtsSCTESpliceEvent.spliceImmediateFlag != 0;
148 	}
149 
150 	/** Ditto */
151 	public @property void spliceImmediateFlag(bool value)
152 	{
153 		gstMpegtsSCTESpliceEvent.spliceImmediateFlag = value;
154 	}
155 
156 	/** */
157 	public @property bool programSpliceTimeSpecified()
158 	{
159 		return gstMpegtsSCTESpliceEvent.programSpliceTimeSpecified != 0;
160 	}
161 
162 	/** Ditto */
163 	public @property void programSpliceTimeSpecified(bool value)
164 	{
165 		gstMpegtsSCTESpliceEvent.programSpliceTimeSpecified = value;
166 	}
167 
168 	/** */
169 	public @property ulong programSpliceTime()
170 	{
171 		return gstMpegtsSCTESpliceEvent.programSpliceTime;
172 	}
173 
174 	/** Ditto */
175 	public @property void programSpliceTime(ulong value)
176 	{
177 		gstMpegtsSCTESpliceEvent.programSpliceTime = value;
178 	}
179 
180 	/** */
181 	public @property bool breakDurationAutoReturn()
182 	{
183 		return gstMpegtsSCTESpliceEvent.breakDurationAutoReturn != 0;
184 	}
185 
186 	/** Ditto */
187 	public @property void breakDurationAutoReturn(bool value)
188 	{
189 		gstMpegtsSCTESpliceEvent.breakDurationAutoReturn = value;
190 	}
191 
192 	/** */
193 	public @property ulong breakDuration()
194 	{
195 		return gstMpegtsSCTESpliceEvent.breakDuration;
196 	}
197 
198 	/** Ditto */
199 	public @property void breakDuration(ulong value)
200 	{
201 		gstMpegtsSCTESpliceEvent.breakDuration = value;
202 	}
203 
204 	/** */
205 	public @property ushort uniqueProgramId()
206 	{
207 		return gstMpegtsSCTESpliceEvent.uniqueProgramId;
208 	}
209 
210 	/** Ditto */
211 	public @property void uniqueProgramId(ushort value)
212 	{
213 		gstMpegtsSCTESpliceEvent.uniqueProgramId = value;
214 	}
215 
216 	/** */
217 	public @property ubyte availNum()
218 	{
219 		return gstMpegtsSCTESpliceEvent.availNum;
220 	}
221 
222 	/** Ditto */
223 	public @property void availNum(ubyte value)
224 	{
225 		gstMpegtsSCTESpliceEvent.availNum = value;
226 	}
227 
228 	/** */
229 	public @property ubyte availsExpected()
230 	{
231 		return gstMpegtsSCTESpliceEvent.availsExpected;
232 	}
233 
234 	/** Ditto */
235 	public @property void availsExpected(ubyte value)
236 	{
237 		gstMpegtsSCTESpliceEvent.availsExpected = value;
238 	}
239 
240 	/** */
241 	public static GType getType()
242 	{
243 		return gst_mpegts_scte_splice_event_get_type();
244 	}
245 
246 	/**
247 	 * Allocates and initializes a #GstMpegtsSCTESpliceEvent.
248 	 *
249 	 * Returns: A newly allocated #GstMpegtsSCTESpliceEvent
250 	 *
251 	 * Throws: ConstructionException GTK+ fails to create the object.
252 	 */
253 	public this()
254 	{
255 		auto __p = gst_mpegts_scte_splice_event_new();
256 
257 		if(__p is null)
258 		{
259 			throw new ConstructionException("null returned by new");
260 		}
261 
262 		this(cast(GstMpegtsSCTESpliceEvent*) __p);
263 	}
264 }