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.DtlsConnectionIF;
26 
27 private import gio.AsyncResultIF;
28 private import gio.Cancellable;
29 private import gio.TlsCertificate;
30 private import gio.TlsDatabase;
31 private import gio.TlsInteraction;
32 private import glib.ErrorG;
33 private import glib.GException;
34 private import gobject.ObjectG;
35 private import gobject.Signals;
36 public  import gtkc.gdktypes;
37 private import gtkc.gio;
38 public  import gtkc.giotypes;
39 
40 
41 /** */
42 public interface DtlsConnectionIF{
43 	/** Get the main Gtk struct */
44 	public GDtlsConnection* getDtlsConnectionStruct();
45 
46 	/** the main Gtk struct as a void* */
47 	protected void* getStruct();
48 
49 
50 	/** */
51 	public bool close(Cancellable cancellable);
52 
53 	/** */
54 	public void closeAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData);
55 
56 	/** */
57 	public bool closeFinish(AsyncResultIF result);
58 
59 	/** */
60 	public bool emitAcceptCertificate(TlsCertificate peerCert, GTlsCertificateFlags errors);
61 
62 	/** */
63 	public TlsCertificate getCertificate();
64 
65 	/** */
66 	public TlsDatabase getDatabase();
67 
68 	/** */
69 	public TlsInteraction getInteraction();
70 
71 	/** */
72 	public TlsCertificate getPeerCertificate();
73 
74 	/** */
75 	public GTlsCertificateFlags getPeerCertificateErrors();
76 
77 	/** */
78 	public GTlsRehandshakeMode getRehandshakeMode();
79 
80 	/** */
81 	public bool getRequireCloseNotify();
82 
83 	/** */
84 	public bool handshake(Cancellable cancellable);
85 
86 	/** */
87 	public void handshakeAsync(int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData);
88 
89 	/** */
90 	public bool handshakeFinish(AsyncResultIF result);
91 
92 	/** */
93 	public void setCertificate(TlsCertificate certificate);
94 
95 	/** */
96 	public void setDatabase(TlsDatabase database);
97 
98 	/** */
99 	public void setInteraction(TlsInteraction interaction);
100 
101 	/** */
102 	public void setRehandshakeMode(GTlsRehandshakeMode mode);
103 
104 	/** */
105 	public void setRequireCloseNotify(bool requireCloseNotify);
106 
107 	/** */
108 	public bool shutdown(bool shutdownRead, bool shutdownWrite, Cancellable cancellable);
109 
110 	/** */
111 	public void shutdownAsync(bool shutdownRead, bool shutdownWrite, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData);
112 
113 	/** */
114 	public bool shutdownFinish(AsyncResultIF result);
115 	@property bool delegate(TlsCertificate, GTlsCertificateFlags, DtlsConnectionIF)[] onAcceptCertificateListeners();
116 	/** */
117 	void addOnAcceptCertificate(bool delegate(TlsCertificate, GTlsCertificateFlags, DtlsConnectionIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
118 
119 }