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 change21 // find conversion definition on APILookup.txt22 // implement new conversion functionalities on the wrap.utils pakage23 24 /*
25 * Conversion parameters:
26 * inFile = GFilterInputStream.html
27 * outPack = gio
28 * outFile = FilterInputStream
29 * strct = GFilterInputStream
30 * realStrct=
31 * ctorStrct=
32 * clss = FilterInputStream
33 * interf =
34 * class Code: No
35 * interface Code: No
36 * template for:
37 * extend =
38 * implements:
39 * prefixes:
40 * - g_filter_input_stream_
41 * omit structs:
42 * omit prefixes:
43 * omit code:
44 * omit signals:
45 * imports:
46 * - gio.InputStream
47 * structWrap:
48 * - GInputStream* -> InputStream
49 * module aliases:
50 * local aliases:
51 * overrides:
52 */53 54 modulegio.FilterInputStream;
55 56 publicimportgtkc.giotypes;
57 58 privateimportgtkc.gio;
59 privateimportglib.ConstructionException;
60 privateimportgobject.ObjectG;
61 62 63 privateimportgio.InputStream;
64 65 66 67 privateimportgio.InputStream;
68 69 /**
70 * Description
71 * Base class for input stream implementations that perform some
72 * kind of filtering operation on a base stream. Typical examples
73 * of filtering operations are character set conversion, compression
74 * and byte order flipping.
75 */76 publicclassFilterInputStream : InputStream77 {
78 79 /** the main Gtk struct */80 protectedGFilterInputStream* gFilterInputStream;
81 82 83 publicGFilterInputStream* getFilterInputStreamStruct()
84 {
85 returngFilterInputStream;
86 }
87 88 89 /** the main Gtk struct as a void* */90 protectedoverridevoid* getStruct()
91 {
92 returncast(void*)gFilterInputStream;
93 }
94 95 /**
96 * Sets our main struct and passes it to the parent class
97 */98 publicthis (GFilterInputStream* gFilterInputStream)
99 {
100 super(cast(GInputStream*)gFilterInputStream);
101 this.gFilterInputStream = gFilterInputStream;
102 }
103 104 protectedoverridevoidsetStruct(GObject* obj)
105 {
106 super.setStruct(obj);
107 gFilterInputStream = cast(GFilterInputStream*)obj;
108 }
109 110 /**
111 */112 113 /**
114 * Gets the base stream for the filter stream.
115 * Returns: a GInputStream. [transfer none]
116 */117 publicInputStreamgetBaseStream()
118 {
119 // GInputStream * g_filter_input_stream_get_base_stream (GFilterInputStream *stream);120 autop = g_filter_input_stream_get_base_stream(gFilterInputStream);
121 122 if(pisnull)
123 {
124 returnnull;
125 }
126 127 returnObjectG.getDObject!(InputStream)(cast(GInputStream*) p);
128 }
129 130 /**
131 * Returns whether the base stream will be closed when stream is
132 * closed.
133 * Returns: TRUE if the base stream will be closed.
134 */135 publicintgetCloseBaseStream()
136 {
137 // gboolean g_filter_input_stream_get_close_base_stream (GFilterInputStream *stream);138 returng_filter_input_stream_get_close_base_stream(gFilterInputStream);
139 }
140 141 /**
142 * Sets whether the base stream will be closed when stream is closed.
143 * Params:
144 * closeBase = TRUE to close the base stream.
145 */146 publicvoidsetCloseBaseStream(intcloseBase)
147 {
148 // void g_filter_input_stream_set_close_base_stream (GFilterInputStream *stream, gboolean close_base);149 g_filter_input_stream_set_close_base_stream(gFilterInputStream, closeBase);
150 }
151 }