1 // Generated by gmmproc 2.64.2 -- DO NOT MODIFY!
2
3
4 #include <glibmm.h>
5
6 #include <giomm/socketclient.h>
7 #include <giomm/private/socketclient_p.h>
8
9
10 /* Copyright (C) 2010 Jonathon Jongsma
11 *
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public
14 * License as published by the Free Software Foundation; either
15 * version 2.1 of the License, or (at your option) any later version.
16 *
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
24 */
25
26 #include <gio/gio.h>
27 #include <giomm/asyncresult.h>
28 #include "slot_async.h"
29
30 namespace Gio
31 {
32
33 void
connect_async(const Glib::RefPtr<SocketConnectable> & connectable,const Glib::RefPtr<Cancellable> & cancellable,const SlotAsyncReady & slot)34 SocketClient::connect_async(const Glib::RefPtr<SocketConnectable>& connectable,
35 const Glib::RefPtr<Cancellable>& cancellable, const SlotAsyncReady& slot)
36 {
37 // Create a copy of the slot.
38 // A pointer to it will be passed through the callback's data parameter
39 // and deleted in the callback.
40 auto slot_copy = new SlotAsyncReady(slot);
41
42 g_socket_client_connect_async(
43 gobj(), connectable->gobj(), Glib::unwrap(cancellable), &SignalProxy_async_callback, slot_copy);
44 }
45
46 void
connect_async(const Glib::RefPtr<SocketConnectable> & connectable,const SlotAsyncReady & slot)47 SocketClient::connect_async(
48 const Glib::RefPtr<SocketConnectable>& connectable, const SlotAsyncReady& slot)
49 {
50 // Create a copy of the slot.
51 // A pointer to it will be passed through the callback's data parameter
52 // and deleted in the callback.
53 auto slot_copy = new SlotAsyncReady(slot);
54
55 g_socket_client_connect_async(
56 gobj(), connectable->gobj(), nullptr, &SignalProxy_async_callback, slot_copy);
57 }
58
59 void
connect_to_host_async(const Glib::ustring & host_and_port,guint16 default_port,const Glib::RefPtr<Cancellable> & cancellable,const SlotAsyncReady & slot)60 SocketClient::connect_to_host_async(const Glib::ustring& host_and_port, guint16 default_port,
61 const Glib::RefPtr<Cancellable>& cancellable, const SlotAsyncReady& slot)
62 {
63 // Create a copy of the slot.
64 // A pointer to it will be passed through the callback's data parameter
65 // and deleted in the callback.
66 auto slot_copy = new SlotAsyncReady(slot);
67
68 g_socket_client_connect_to_host_async(gobj(), host_and_port.c_str(), default_port,
69 Glib::unwrap(cancellable), &SignalProxy_async_callback, slot_copy);
70 }
71
72 void
connect_to_host_async(const Glib::ustring & host_and_port,guint16 default_port,const SlotAsyncReady & slot)73 SocketClient::connect_to_host_async(
74 const Glib::ustring& host_and_port, guint16 default_port, const SlotAsyncReady& slot)
75 {
76 // Create a copy of the slot.
77 // A pointer to it will be passed through the callback's data parameter
78 // and deleted in the callback.
79 auto slot_copy = new SlotAsyncReady(slot);
80
81 g_socket_client_connect_to_host_async(
82 gobj(), host_and_port.c_str(), default_port, nullptr, &SignalProxy_async_callback, slot_copy);
83 }
84
85 void
connect_to_service_async(const Glib::ustring & domain,const Glib::ustring & service,const Glib::RefPtr<Cancellable> & cancellable,const SlotAsyncReady & slot)86 SocketClient::connect_to_service_async(const Glib::ustring& domain, const Glib::ustring& service,
87 const Glib::RefPtr<Cancellable>& cancellable, const SlotAsyncReady& slot)
88 {
89 // Create a copy of the slot.
90 // A pointer to it will be passed through the callback's data parameter
91 // and deleted in the callback.
92 auto slot_copy = new SlotAsyncReady(slot);
93
94 g_socket_client_connect_to_service_async(gobj(), domain.c_str(), service.c_str(),
95 Glib::unwrap(cancellable), &SignalProxy_async_callback, slot_copy);
96 }
97
98 void
connect_to_service_async(const Glib::ustring & domain,const Glib::ustring & service,const SlotAsyncReady & slot)99 SocketClient::connect_to_service_async(
100 const Glib::ustring& domain, const Glib::ustring& service, const SlotAsyncReady& slot)
101 {
102 // Create a copy of the slot.
103 // A pointer to it will be passed through the callback's data parameter
104 // and deleted in the callback.
105 auto slot_copy = new SlotAsyncReady(slot);
106
107 g_socket_client_connect_to_service_async(
108 gobj(), domain.c_str(), service.c_str(), nullptr, &SignalProxy_async_callback, slot_copy);
109 }
110
111 void
connect_to_uri_async(const Glib::ustring & uri,guint16 default_port,const Glib::RefPtr<Cancellable> & cancellable,const SlotAsyncReady & slot)112 SocketClient::connect_to_uri_async(const Glib::ustring& uri, guint16 default_port,
113 const Glib::RefPtr<Cancellable>& cancellable, const SlotAsyncReady& slot)
114 {
115 // Create a copy of the slot.
116 // A pointer to it will be passed through the callback's data parameter
117 // and deleted in the callback.
118 auto slot_copy = new SlotAsyncReady(slot);
119
120 g_socket_client_connect_to_uri_async(gobj(), uri.c_str(), default_port, Glib::unwrap(cancellable),
121 &SignalProxy_async_callback, slot_copy);
122 }
123
124 void
connect_to_uri_async(const Glib::ustring & uri,guint16 default_port,const SlotAsyncReady & slot)125 SocketClient::connect_to_uri_async(
126 const Glib::ustring& uri, guint16 default_port, const SlotAsyncReady& slot)
127 {
128 // Create a copy of the slot.
129 // A pointer to it will be passed through the callback's data parameter
130 // and deleted in the callback.
131 auto slot_copy = new SlotAsyncReady(slot);
132
133 g_socket_client_connect_to_uri_async(
134 gobj(), uri.c_str(), default_port, nullptr, &SignalProxy_async_callback, slot_copy);
135 }
136
137 } // namespace Gio
138
139 namespace
140 {
141
142
SocketClient_signal_event_callback(GSocketClient * self,GSocketClientEvent p0,GSocketConnectable * p1,GIOStream * p2,void * data)143 static void SocketClient_signal_event_callback(GSocketClient* self, GSocketClientEvent p0,GSocketConnectable* p1,GIOStream* p2,void* data)
144 {
145 using namespace Gio;
146 using SlotType = sigc::slot< void,SocketClientEvent,const Glib::RefPtr<SocketConnectable>&,const Glib::RefPtr<IOStream>& >;
147
148 auto obj = dynamic_cast<SocketClient*>(Glib::ObjectBase::_get_current_wrapper((GObject*) self));
149 // Do not try to call a signal on a disassociated wrapper.
150 if(obj)
151 {
152 try
153 {
154 if(const auto slot = Glib::SignalProxyNormal::data_to_slot(data))
155 (*static_cast<SlotType*>(slot))(((SocketClientEvent)(p0))
156 , Glib::wrap(p1, true)
157 , Glib::wrap(p2, true)
158 );
159 }
160 catch(...)
161 {
162 Glib::exception_handlers_invoke();
163 }
164 }
165 }
166
167 static const Glib::SignalProxyInfo SocketClient_signal_event_info =
168 {
169 "event",
170 (GCallback) &SocketClient_signal_event_callback,
171 (GCallback) &SocketClient_signal_event_callback
172 };
173
174
175 } // anonymous namespace
176
177 // static
value_type()178 GType Glib::Value<Gio::SocketClientEvent>::value_type()
179 {
180 return g_socket_client_event_get_type();
181 }
182
183
184 namespace Glib
185 {
186
wrap(GSocketClient * object,bool take_copy)187 Glib::RefPtr<Gio::SocketClient> wrap(GSocketClient* object, bool take_copy)
188 {
189 return Glib::RefPtr<Gio::SocketClient>( dynamic_cast<Gio::SocketClient*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
190 //We use dynamic_cast<> in case of multiple inheritance.
191 }
192
193 } /* namespace Glib */
194
195
196 namespace Gio
197 {
198
199
200 /* The *_Class implementation: */
201
init()202 const Glib::Class& SocketClient_Class::init()
203 {
204 if(!gtype_) // create the GType if necessary
205 {
206 // Glib::Class has to know the class init function to clone custom types.
207 class_init_func_ = &SocketClient_Class::class_init_function;
208
209 // This is actually just optimized away, apparently with no harm.
210 // Make sure that the parent type has been created.
211 //CppClassParent::CppObjectType::get_type();
212
213 // Create the wrapper type, with the same class/instance size as the base type.
214 register_derived_type(g_socket_client_get_type());
215
216 // Add derived versions of interfaces, if the C type implements any interfaces:
217
218 }
219
220 return *this;
221 }
222
223
class_init_function(void * g_class,void * class_data)224 void SocketClient_Class::class_init_function(void* g_class, void* class_data)
225 {
226 const auto klass = static_cast<BaseClassType*>(g_class);
227 CppClassParent::class_init_function(klass, class_data);
228
229
230 }
231
232
wrap_new(GObject * object)233 Glib::ObjectBase* SocketClient_Class::wrap_new(GObject* object)
234 {
235 return new SocketClient((GSocketClient*)object);
236 }
237
238
239 /* The implementation: */
240
gobj_copy()241 GSocketClient* SocketClient::gobj_copy()
242 {
243 reference();
244 return gobj();
245 }
246
SocketClient(const Glib::ConstructParams & construct_params)247 SocketClient::SocketClient(const Glib::ConstructParams& construct_params)
248 :
249 Glib::Object(construct_params)
250 {
251
252 }
253
SocketClient(GSocketClient * castitem)254 SocketClient::SocketClient(GSocketClient* castitem)
255 :
256 Glib::Object((GObject*)(castitem))
257 {}
258
259
SocketClient(SocketClient && src)260 SocketClient::SocketClient(SocketClient&& src) noexcept
261 : Glib::Object(std::move(src))
262 {}
263
operator =(SocketClient && src)264 SocketClient& SocketClient::operator=(SocketClient&& src) noexcept
265 {
266 Glib::Object::operator=(std::move(src));
267 return *this;
268 }
269
270
~SocketClient()271 SocketClient::~SocketClient() noexcept
272 {}
273
274
275 SocketClient::CppClassType SocketClient::socketclient_class_; // initialize static member
276
get_type()277 GType SocketClient::get_type()
278 {
279 return socketclient_class_.init().get_type();
280 }
281
282
get_base_type()283 GType SocketClient::get_base_type()
284 {
285 return g_socket_client_get_type();
286 }
287
288
SocketClient()289 SocketClient::SocketClient()
290 :
291 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
292 Glib::ObjectBase(nullptr),
293 Glib::Object(Glib::ConstructParams(socketclient_class_.init()))
294 {
295
296
297 }
298
create()299 Glib::RefPtr<SocketClient> SocketClient::create()
300 {
301 return Glib::RefPtr<SocketClient>( new SocketClient() );
302 }
303
get_family() const304 SocketFamily SocketClient::get_family() const
305 {
306 return ((SocketFamily)(g_socket_client_get_family(const_cast<GSocketClient*>(gobj()))));
307 }
308
set_family(SocketFamily family)309 void SocketClient::set_family(SocketFamily family)
310 {
311 g_socket_client_set_family(gobj(), ((GSocketFamily)(family)));
312 }
313
get_socket_type() const314 SocketType SocketClient::get_socket_type() const
315 {
316 return ((SocketType)(g_socket_client_get_socket_type(const_cast<GSocketClient*>(gobj()))));
317 }
318
set_socket_type(SocketType type)319 void SocketClient::set_socket_type(SocketType type)
320 {
321 g_socket_client_set_socket_type(gobj(), ((GSocketType)(type)));
322 }
323
get_protocol() const324 SocketProtocol SocketClient::get_protocol() const
325 {
326 return ((SocketProtocol)(g_socket_client_get_protocol(const_cast<GSocketClient*>(gobj()))));
327 }
328
set_protocol(SocketProtocol protocol)329 void SocketClient::set_protocol(SocketProtocol protocol)
330 {
331 g_socket_client_set_protocol(gobj(), ((GSocketProtocol)(protocol)));
332 }
333
get_local_address()334 Glib::RefPtr<SocketAddress> SocketClient::get_local_address()
335 {
336 return Glib::wrap(g_socket_client_get_local_address(gobj()));
337 }
338
get_local_address() const339 Glib::RefPtr<const SocketAddress> SocketClient::get_local_address() const
340 {
341 return const_cast<SocketClient*>(this)->get_local_address();
342 }
343
set_local_address(const Glib::RefPtr<SocketAddress> & address)344 void SocketClient::set_local_address(const Glib::RefPtr<SocketAddress>& address)
345 {
346 g_socket_client_set_local_address(gobj(), const_cast<GSocketAddress*>(Glib::unwrap(address)));
347 }
348
connect(const Glib::RefPtr<SocketConnectable> & connectable,const Glib::RefPtr<Cancellable> & cancellable)349 Glib::RefPtr<SocketConnection> SocketClient::connect(const Glib::RefPtr<SocketConnectable>& connectable, const Glib::RefPtr<Cancellable>& cancellable)
350 {
351 GError* gerror = nullptr;
352 Glib::RefPtr<SocketConnection> retvalue = Glib::wrap(g_socket_client_connect(gobj(), const_cast<GSocketConnectable*>(Glib::unwrap(connectable)), const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror)));
353 if(gerror)
354 ::Glib::Error::throw_exception(gerror);
355 return retvalue;
356 }
357
connect(const Glib::RefPtr<SocketConnectable> & connectable)358 Glib::RefPtr<SocketConnection> SocketClient::connect(const Glib::RefPtr<SocketConnectable>& connectable)
359 {
360 GError* gerror = nullptr;
361 Glib::RefPtr<SocketConnection> retvalue = Glib::wrap(g_socket_client_connect(gobj(), const_cast<GSocketConnectable*>(Glib::unwrap(connectable)), nullptr, &(gerror)));
362 if(gerror)
363 ::Glib::Error::throw_exception(gerror);
364 return retvalue;
365 }
366
connect_to_host(const Glib::ustring & host_and_port,guint16 default_port,const Glib::RefPtr<Cancellable> & cancellable)367 Glib::RefPtr<SocketConnection> SocketClient::connect_to_host(const Glib::ustring& host_and_port, guint16 default_port, const Glib::RefPtr<Cancellable>& cancellable)
368 {
369 GError* gerror = nullptr;
370 Glib::RefPtr<SocketConnection> retvalue = Glib::wrap(g_socket_client_connect_to_host(gobj(), host_and_port.c_str(), default_port, const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror)));
371 if(gerror)
372 ::Glib::Error::throw_exception(gerror);
373 return retvalue;
374 }
375
connect_to_host(const Glib::ustring & host_and_port,guint16 default_port)376 Glib::RefPtr<SocketConnection> SocketClient::connect_to_host(const Glib::ustring& host_and_port, guint16 default_port)
377 {
378 GError* gerror = nullptr;
379 Glib::RefPtr<SocketConnection> retvalue = Glib::wrap(g_socket_client_connect_to_host(gobj(), host_and_port.c_str(), default_port, nullptr, &(gerror)));
380 if(gerror)
381 ::Glib::Error::throw_exception(gerror);
382 return retvalue;
383 }
384
connect_to_service(const Glib::ustring & domain,const Glib::ustring & service,const Glib::RefPtr<Cancellable> & cancellable)385 Glib::RefPtr<SocketConnection> SocketClient::connect_to_service(const Glib::ustring& domain, const Glib::ustring& service, const Glib::RefPtr<Cancellable>& cancellable)
386 {
387 GError* gerror = nullptr;
388 Glib::RefPtr<SocketConnection> retvalue = Glib::wrap(g_socket_client_connect_to_service(gobj(), domain.c_str(), service.c_str(), const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror)));
389 if(gerror)
390 ::Glib::Error::throw_exception(gerror);
391 return retvalue;
392 }
393
connect_to_service(const Glib::ustring & domain,const Glib::ustring & service)394 Glib::RefPtr<SocketConnection> SocketClient::connect_to_service(const Glib::ustring& domain, const Glib::ustring& service)
395 {
396 GError* gerror = nullptr;
397 Glib::RefPtr<SocketConnection> retvalue = Glib::wrap(g_socket_client_connect_to_service(gobj(), domain.c_str(), service.c_str(), nullptr, &(gerror)));
398 if(gerror)
399 ::Glib::Error::throw_exception(gerror);
400 return retvalue;
401 }
402
connect_to_uri(const Glib::ustring & uri,guint16 default_port,const Glib::RefPtr<Cancellable> & cancellable)403 Glib::RefPtr<SocketConnection> SocketClient::connect_to_uri(const Glib::ustring& uri, guint16 default_port, const Glib::RefPtr<Cancellable>& cancellable)
404 {
405 GError* gerror = nullptr;
406 Glib::RefPtr<SocketConnection> retvalue = Glib::wrap(g_socket_client_connect_to_uri(gobj(), uri.c_str(), default_port, const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror)));
407 if(gerror)
408 ::Glib::Error::throw_exception(gerror);
409 return retvalue;
410 }
411
connect_to_uri(const Glib::ustring & uri,guint16 default_port)412 Glib::RefPtr<SocketConnection> SocketClient::connect_to_uri(const Glib::ustring& uri, guint16 default_port)
413 {
414 GError* gerror = nullptr;
415 Glib::RefPtr<SocketConnection> retvalue = Glib::wrap(g_socket_client_connect_to_uri(gobj(), uri.c_str(), default_port, nullptr, &(gerror)));
416 if(gerror)
417 ::Glib::Error::throw_exception(gerror);
418 return retvalue;
419 }
420
connect_finish(const Glib::RefPtr<AsyncResult> & result)421 Glib::RefPtr<SocketConnection> SocketClient::connect_finish(const Glib::RefPtr<AsyncResult>& result)
422 {
423 GError* gerror = nullptr;
424 Glib::RefPtr<SocketConnection> retvalue = Glib::wrap(g_socket_client_connect_finish(gobj(), Glib::unwrap(result), &(gerror)));
425 if(gerror)
426 ::Glib::Error::throw_exception(gerror);
427 return retvalue;
428 }
429
connect_to_host_finish(const Glib::RefPtr<AsyncResult> & result)430 Glib::RefPtr<SocketConnection> SocketClient::connect_to_host_finish(const Glib::RefPtr<AsyncResult>& result)
431 {
432 GError* gerror = nullptr;
433 Glib::RefPtr<SocketConnection> retvalue = Glib::wrap(g_socket_client_connect_to_host_finish(gobj(), Glib::unwrap(result), &(gerror)));
434 if(gerror)
435 ::Glib::Error::throw_exception(gerror);
436 return retvalue;
437 }
438
connect_to_service_finish(const Glib::RefPtr<AsyncResult> & result)439 Glib::RefPtr<SocketConnection> SocketClient::connect_to_service_finish(const Glib::RefPtr<AsyncResult>& result)
440 {
441 GError* gerror = nullptr;
442 Glib::RefPtr<SocketConnection> retvalue = Glib::wrap(g_socket_client_connect_to_service_finish(gobj(), Glib::unwrap(result), &(gerror)));
443 if(gerror)
444 ::Glib::Error::throw_exception(gerror);
445 return retvalue;
446 }
447
connect_to_uri_finish(const Glib::RefPtr<AsyncResult> & result)448 Glib::RefPtr<SocketConnection> SocketClient::connect_to_uri_finish(const Glib::RefPtr<AsyncResult>& result)
449 {
450 GError* gerror = nullptr;
451 Glib::RefPtr<SocketConnection> retvalue = Glib::wrap(g_socket_client_connect_to_uri_finish(gobj(), Glib::unwrap(result), &(gerror)));
452 if(gerror)
453 ::Glib::Error::throw_exception(gerror);
454 return retvalue;
455 }
456
get_enable_proxy() const457 bool SocketClient::get_enable_proxy() const
458 {
459 return g_socket_client_get_enable_proxy(const_cast<GSocketClient*>(gobj()));
460 }
461
set_enable_proxy(bool enable)462 void SocketClient::set_enable_proxy(bool enable)
463 {
464 g_socket_client_set_enable_proxy(gobj(), static_cast<int>(enable));
465 }
466
get_tls() const467 bool SocketClient::get_tls() const
468 {
469 return g_socket_client_get_tls(const_cast<GSocketClient*>(gobj()));
470 }
471
set_tls(bool tls)472 void SocketClient::set_tls(bool tls)
473 {
474 g_socket_client_set_tls(gobj(), static_cast<int>(tls));
475 }
476
get_tls_validation_flags() const477 TlsCertificateFlags SocketClient::get_tls_validation_flags() const
478 {
479 return ((TlsCertificateFlags)(g_socket_client_get_tls_validation_flags(const_cast<GSocketClient*>(gobj()))));
480 }
481
set_tls_validation_flags(TlsCertificateFlags flags)482 void SocketClient::set_tls_validation_flags(TlsCertificateFlags flags)
483 {
484 g_socket_client_set_tls_validation_flags(gobj(), ((GTlsCertificateFlags)(flags)));
485 }
486
get_proxy_resolver()487 Glib::RefPtr<ProxyResolver> SocketClient::get_proxy_resolver()
488 {
489 Glib::RefPtr<ProxyResolver> retvalue = Glib::wrap(g_socket_client_get_proxy_resolver(gobj()));
490 if(retvalue)
491 retvalue->reference(); //The function does not do a ref for us.
492 return retvalue;
493 }
494
get_proxy_resolver() const495 Glib::RefPtr<const ProxyResolver> SocketClient::get_proxy_resolver() const
496 {
497 return const_cast<SocketClient*>(this)->get_proxy_resolver();
498 }
499
set_proxy_resolver(const Glib::RefPtr<ProxyResolver> & proxy_resolver)500 void SocketClient::set_proxy_resolver(const Glib::RefPtr<ProxyResolver>& proxy_resolver)
501 {
502 g_socket_client_set_proxy_resolver(gobj(), const_cast<GProxyResolver*>(Glib::unwrap(proxy_resolver)));
503 }
504
get_timeout() const505 guint SocketClient::get_timeout() const
506 {
507 return g_socket_client_get_timeout(const_cast<GSocketClient*>(gobj()));
508 }
509
set_timeout(guint timeout)510 void SocketClient::set_timeout(guint timeout)
511 {
512 g_socket_client_set_timeout(gobj(), timeout);
513 }
514
add_application_proxy(const Glib::ustring & protocol)515 void SocketClient::add_application_proxy(const Glib::ustring& protocol)
516 {
517 g_socket_client_add_application_proxy(gobj(), protocol.c_str());
518 }
519
520
signal_event()521 Glib::SignalProxy< void,SocketClientEvent,const Glib::RefPtr<SocketConnectable>&,const Glib::RefPtr<IOStream>& > SocketClient::signal_event()
522 {
523 return Glib::SignalProxy< void,SocketClientEvent,const Glib::RefPtr<SocketConnectable>&,const Glib::RefPtr<IOStream>& >(this, &SocketClient_signal_event_info);
524 }
525
526
property_family()527 Glib::PropertyProxy< SocketFamily > SocketClient::property_family()
528 {
529 return Glib::PropertyProxy< SocketFamily >(this, "family");
530 }
531
property_family() const532 Glib::PropertyProxy_ReadOnly< SocketFamily > SocketClient::property_family() const
533 {
534 return Glib::PropertyProxy_ReadOnly< SocketFamily >(this, "family");
535 }
536
property_local_address()537 Glib::PropertyProxy< Glib::RefPtr<SocketAddress> > SocketClient::property_local_address()
538 {
539 return Glib::PropertyProxy< Glib::RefPtr<SocketAddress> >(this, "local-address");
540 }
541
property_local_address() const542 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<SocketAddress> > SocketClient::property_local_address() const
543 {
544 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<SocketAddress> >(this, "local-address");
545 }
546
property_protocol()547 Glib::PropertyProxy< SocketProtocol > SocketClient::property_protocol()
548 {
549 return Glib::PropertyProxy< SocketProtocol >(this, "protocol");
550 }
551
property_protocol() const552 Glib::PropertyProxy_ReadOnly< SocketProtocol > SocketClient::property_protocol() const
553 {
554 return Glib::PropertyProxy_ReadOnly< SocketProtocol >(this, "protocol");
555 }
556
property_type()557 Glib::PropertyProxy< SocketType > SocketClient::property_type()
558 {
559 return Glib::PropertyProxy< SocketType >(this, "type");
560 }
561
property_type() const562 Glib::PropertyProxy_ReadOnly< SocketType > SocketClient::property_type() const
563 {
564 return Glib::PropertyProxy_ReadOnly< SocketType >(this, "type");
565 }
566
property_timeout()567 Glib::PropertyProxy< guint > SocketClient::property_timeout()
568 {
569 return Glib::PropertyProxy< guint >(this, "timeout");
570 }
571
property_timeout() const572 Glib::PropertyProxy_ReadOnly< guint > SocketClient::property_timeout() const
573 {
574 return Glib::PropertyProxy_ReadOnly< guint >(this, "timeout");
575 }
576
property_enable_proxy()577 Glib::PropertyProxy< bool > SocketClient::property_enable_proxy()
578 {
579 return Glib::PropertyProxy< bool >(this, "enable-proxy");
580 }
581
property_enable_proxy() const582 Glib::PropertyProxy_ReadOnly< bool > SocketClient::property_enable_proxy() const
583 {
584 return Glib::PropertyProxy_ReadOnly< bool >(this, "enable-proxy");
585 }
586
property_tls()587 Glib::PropertyProxy< bool > SocketClient::property_tls()
588 {
589 return Glib::PropertyProxy< bool >(this, "tls");
590 }
591
property_tls() const592 Glib::PropertyProxy_ReadOnly< bool > SocketClient::property_tls() const
593 {
594 return Glib::PropertyProxy_ReadOnly< bool >(this, "tls");
595 }
596
property_tls_validation_flags()597 Glib::PropertyProxy< TlsCertificateFlags > SocketClient::property_tls_validation_flags()
598 {
599 return Glib::PropertyProxy< TlsCertificateFlags >(this, "tls-validation-flags");
600 }
601
property_tls_validation_flags() const602 Glib::PropertyProxy_ReadOnly< TlsCertificateFlags > SocketClient::property_tls_validation_flags() const
603 {
604 return Glib::PropertyProxy_ReadOnly< TlsCertificateFlags >(this, "tls-validation-flags");
605 }
606
property_proxy_resolver()607 Glib::PropertyProxy< Glib::RefPtr<ProxyResolver> > SocketClient::property_proxy_resolver()
608 {
609 return Glib::PropertyProxy< Glib::RefPtr<ProxyResolver> >(this, "proxy-resolver");
610 }
611
property_proxy_resolver() const612 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<ProxyResolver> > SocketClient::property_proxy_resolver() const
613 {
614 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<ProxyResolver> >(this, "proxy-resolver");
615 }
616
617
618 } // namespace Gio
619
620
621