root/trunk/src/gio/FilterOutputStream.d

Revision 937, 4.0 kB (checked in by Mike Wey, 3 months ago)

Mention the exceptions to the LGPL in the source files.

Line 
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  * Conversion parameters:
26  * inFile  = GFilterOutputStream.html
27  * outPack = gio
28  * outFile = FilterOutputStream
29  * strct   = GFilterOutputStream
30  * realStrct=
31  * ctorStrct=
32  * clss    = FilterOutputStream
33  * interf  =
34  * class Code: No
35  * interface Code: No
36  * template for:
37  * extend  =
38  * implements:
39  * prefixes:
40  *  - g_filter_output_stream_
41  * omit structs:
42  * omit prefixes:
43  * omit code:
44  * omit signals:
45  * imports:
46  *  - gio.OutputStream
47  * structWrap:
48  *  - GOutputStream* -> OutputStream
49  * module aliases:
50  * local aliases:
51  * overrides:
52  */
53
54 module gio.FilterOutputStream;
55
56 public  import gtkc.giotypes;
57
58 private import gtkc.gio;
59 private import glib.ConstructionException;
60
61
62 private import gio.OutputStream;
63
64
65
66 private import gio.OutputStream;
67
68 /**
69  * Description
70  * Base class for output stream implementations that perform some
71  * kind of filtering operation on a base stream. Typical examples
72  * of filtering operations are character set conversion, compression
73  * and byte order flipping.
74  */
75 public class FilterOutputStream : OutputStream
76 {
77    
78     /** the main Gtk struct */
79     protected GFilterOutputStream* gFilterOutputStream;
80    
81    
82     public GFilterOutputStream* getFilterOutputStreamStruct()
83     {
84         return gFilterOutputStream;
85     }
86    
87    
88     /** the main Gtk struct as a void* */
89     protected override void* getStruct()
90     {
91         return cast(void*)gFilterOutputStream;
92     }
93    
94     /**
95      * Sets our main struct and passes it to the parent class
96      */
97     public this (GFilterOutputStream* gFilterOutputStream)
98     {
99         if(gFilterOutputStream is null)
100         {
101             this = null;
102             return;
103         }
104         //Check if there already is a D object for this gtk struct
105         void* ptr = getDObject(cast(GObject*)gFilterOutputStream);
106         if( ptr !is null )
107         {
108             this = cast(FilterOutputStream)ptr;
109             return;
110         }
111         super(cast(GOutputStream*)gFilterOutputStream);
112         this.gFilterOutputStream = gFilterOutputStream;
113     }
114    
115     protected override void setStruct(GObject* obj)
116     {
117         super.setStruct(obj);
118         gFilterOutputStream = cast(GFilterOutputStream*)obj;
119     }
120    
121     /**
122      */
123    
124     /**
125      * Gets the base stream for the filter stream.
126      * Returns: a GOutputStream. [transfer none]
127      */
128     public OutputStream getBaseStream()
129     {
130         // GOutputStream * g_filter_output_stream_get_base_stream  (GFilterOutputStream *stream);
131         auto p = g_filter_output_stream_get_base_stream(gFilterOutputStream);
132         if(p is null)
133         {
134             return null;
135         }
136         return new OutputStream(cast(GOutputStream*) p);
137     }
138    
139     /**
140      * Returns whether the base stream will be closed when stream is
141      * closed.
142      * Returns: TRUE if the base stream will be closed.
143      */
144     public int getCloseBaseStream()
145     {
146         // gboolean g_filter_output_stream_get_close_base_stream  (GFilterOutputStream *stream);
147         return g_filter_output_stream_get_close_base_stream(gFilterOutputStream);
148     }
149    
150     /**
151      * Sets whether the base stream will be closed when stream is closed.
152      * Params:
153      * closeBase = TRUE to close the base stream.
154      */
155     public void setCloseBaseStream(int closeBase)
156     {
157         // void g_filter_output_stream_set_close_base_stream  (GFilterOutputStream *stream,  gboolean close_base);
158         g_filter_output_stream_set_close_base_stream(gFilterOutputStream, closeBase);
159     }
160 }
Note: See TracBrowser for help on using the browser.