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 gstreamer.TracerFactory;
26 
27 private import glib.ListG;
28 private import gstreamer.PluginFeature;
29 private import gstreamer.c.functions;
30 public  import gstreamer.c.types;
31 public  import gstreamerc.gstreamertypes;
32 
33 
34 /**
35  * Use gst_tracer_factory_get_list() to get a list of tracer factories known to
36  * GStreamer.
37  *
38  * Since: 1.8
39  */
40 public class TracerFactory : PluginFeature
41 {
42 	/** the main Gtk struct */
43 	protected GstTracerFactory* gstTracerFactory;
44 
45 	/** Get the main Gtk struct */
46 	public GstTracerFactory* getTracerFactoryStruct(bool transferOwnership = false)
47 	{
48 		if (transferOwnership)
49 			ownedRef = false;
50 		return gstTracerFactory;
51 	}
52 
53 	/** the main Gtk struct as a void* */
54 	protected override void* getStruct()
55 	{
56 		return cast(void*)gstTracerFactory;
57 	}
58 
59 	/**
60 	 * Sets our main struct and passes it to the parent class.
61 	 */
62 	public this (GstTracerFactory* gstTracerFactory, bool ownedRef = false)
63 	{
64 		this.gstTracerFactory = gstTracerFactory;
65 		super(cast(GstPluginFeature*)gstTracerFactory, ownedRef);
66 	}
67 
68 
69 	/** */
70 	public static GType getType()
71 	{
72 		return gst_tracer_factory_get_type();
73 	}
74 
75 	/**
76 	 * Gets the list of all registered tracer factories. You must free the
77 	 * list using gst_plugin_feature_list_free().
78 	 *
79 	 * The returned factories are sorted by factory name.
80 	 *
81 	 * Free-function: gst_plugin_feature_list_free
82 	 *
83 	 * Returns: the list of all
84 	 *     registered #GstTracerFactory.
85 	 *
86 	 * Since: 1.8
87 	 */
88 	public static ListG getList()
89 	{
90 		auto p = gst_tracer_factory_get_list();
91 
92 		if(p is null)
93 		{
94 			return null;
95 		}
96 
97 		return new ListG(cast(GList*) p, true);
98 	}
99 
100 	/**
101 	 * Get the #GType for elements managed by this factory. The type can
102 	 * only be retrieved if the element factory is loaded, which can be
103 	 * assured with gst_plugin_feature_load().
104 	 *
105 	 * Returns: the #GType for tracers managed by this factory or 0 if
106 	 *     the factory is not loaded.
107 	 */
108 	public GType getTracerType()
109 	{
110 		return gst_tracer_factory_get_tracer_type(gstTracerFactory);
111 	}
112 }