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  = GSocketConnectable.html
27  * outPack = gio
28  * outFile = SocketConnectableIF
29  * strct   = GSocketConnectable
30  * realStrct=
31  * ctorStrct=
32  * clss    = SocketConnectableT
33  * interf  = SocketConnectableIF
34  * class Code: No
35  * interface Code: No
36  * template for:
37  * extend  = 
38  * implements:
39  * prefixes:
40  * 	- g_socket_connectable_
41  * omit structs:
42  * omit prefixes:
43  * 	- g_socket_address_enumerator_
44  * omit code:
45  * omit signals:
46  * imports:
47  * 	- gio.SocketAddressEnumerator
48  * structWrap:
49  * 	- GSocketAddressEnumerator* -> SocketAddressEnumerator
50  * module aliases:
51  * local aliases:
52  * overrides:
53  */
54 
55 module gio.SocketConnectableIF;
56 
57 public  import gtkc.giotypes;
58 
59 private import gtkc.gio;
60 private import glib.ConstructionException;
61 private import gobject.ObjectG;
62 
63 private import gio.SocketAddressEnumerator;
64 
65 
66 
67 /**
68  * Objects that describe one or more potential socket endpoints
69  * implement GSocketConnectable. Callers can then use
70  * g_socket_connectable_enumerate() to get a GSocketAddressEnumerator
71  * to try out each socket address in turn until one succeeds, as shown
72  * in the sample code below.
73  *
74  * $(DDOC_COMMENT example)
75  */
76 public interface SocketConnectableIF
77 {
78 	
79 	
80 	/** Get the main Gtk struct */
81 	public GSocketConnectable* getSocketConnectableTStruct();
82 	
83 	/** the main Gtk struct as a void* */
84 	protected void* getStruct();
85 	
86 	
87 	/**
88 	 */
89 	
90 	/**
91 	 * Creates a GSocketAddressEnumerator for connectable.
92 	 * Since 2.22
93 	 * Returns: a new GSocketAddressEnumerator. [transfer full]
94 	 */
95 	public SocketAddressEnumerator enumerate();
96 	
97 	/**
98 	 * Creates a GSocketAddressEnumerator for connectable that will
99 	 * return GProxyAddresses for addresses that you must connect
100 	 * to via a proxy.
101 	 * If connectable does not implement
102 	 * g_socket_connectable_proxy_enumerate(), this will fall back to
103 	 * calling g_socket_connectable_enumerate().
104 	 * Since 2.26
105 	 * Returns: a new GSocketAddressEnumerator. [transfer full]
106 	 */
107 	public SocketAddressEnumerator proxyEnumerate();
108 }