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 gio.DtlsClientConnectionT; 26 27 public import gio.DatagramBasedIF; 28 public import gio.SocketConnectable; 29 public import gio.SocketConnectableIF; 30 public import glib.ConstructionException; 31 public import glib.ErrorG; 32 public import glib.GException; 33 public import glib.ListG; 34 public import gobject.ObjectG; 35 public import gtkc.gio; 36 public import gtkc.giotypes; 37 38 39 /** */ 40 public template DtlsClientConnectionT(TStruct) 41 { 42 /** Get the main Gtk struct */ 43 public GDtlsClientConnection* getDtlsClientConnectionStruct() 44 { 45 return cast(GDtlsClientConnection*)getStruct(); 46 } 47 48 49 /** */ 50 public ListG getAcceptedCas() 51 { 52 auto p = g_dtls_client_connection_get_accepted_cas(getDtlsClientConnectionStruct()); 53 54 if(p is null) 55 { 56 return null; 57 } 58 59 return new ListG(cast(GList*) p); 60 } 61 62 /** */ 63 public SocketConnectableIF getServerIdentity() 64 { 65 auto p = g_dtls_client_connection_get_server_identity(getDtlsClientConnectionStruct()); 66 67 if(p is null) 68 { 69 return null; 70 } 71 72 return ObjectG.getDObject!(SocketConnectable, SocketConnectableIF)(cast(GSocketConnectable*) p); 73 } 74 75 /** */ 76 public GTlsCertificateFlags getValidationFlags() 77 { 78 return g_dtls_client_connection_get_validation_flags(getDtlsClientConnectionStruct()); 79 } 80 81 /** */ 82 public void setServerIdentity(SocketConnectableIF identity) 83 { 84 g_dtls_client_connection_set_server_identity(getDtlsClientConnectionStruct(), (identity is null) ? null : identity.getSocketConnectableStruct()); 85 } 86 87 /** */ 88 public void setValidationFlags(GTlsCertificateFlags flags) 89 { 90 g_dtls_client_connection_set_validation_flags(getDtlsClientConnectionStruct(), flags); 91 } 92 }