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 64 private import gio.SocketAddressEnumerator; 65 66 67 68 69 /** 70 * Description 71 * Objects that describe one or more potential socket endpoints 72 * implement GSocketConnectable. Callers can then use 73 * g_socket_connectable_enumerate() to get a GSocketAddressEnumerator 74 * to try out each socket address in turn until one succeeds, as shown 75 * in the sample code below. 76 * $(DDOC_COMMENT example) 77 */ 78 public interface SocketConnectableIF 79 { 80 81 82 public GSocketConnectable* getSocketConnectableTStruct(); 83 84 /** the main Gtk struct as a void* */ 85 protected void* getStruct(); 86 87 88 /** 89 */ 90 91 /** 92 * Creates a GSocketAddressEnumerator for connectable. 93 * Since 2.22 94 * Returns: a new GSocketAddressEnumerator. [transfer full] 95 */ 96 public SocketAddressEnumerator enumerate(); 97 98 /** 99 * Creates a GSocketAddressEnumerator for connectable that will 100 * return GProxyAddresses for addresses that you must connect 101 * to via a proxy. 102 * If connectable does not implement 103 * g_socket_connectable_proxy_enumerate(), this will fall back to 104 * calling g_socket_connectable_enumerate(). 105 * Since 2.26 106 * Returns: a new GSocketAddressEnumerator. [transfer full] 107 */ 108 public SocketAddressEnumerator proxyEnumerate(); 109 }