1 module soup.AuthNegotiate; 2 3 private import soup.Auth; 4 private import soup.c.functions; 5 public import soup.c.types; 6 7 8 /** */ 9 public class AuthNegotiate : Auth 10 { 11 /** the main Gtk struct */ 12 protected SoupAuthNegotiate* soupAuthNegotiate; 13 14 /** Get the main Gtk struct */ 15 public SoupAuthNegotiate* getAuthNegotiateStruct(bool transferOwnership = false) 16 { 17 if (transferOwnership) 18 ownedRef = false; 19 return soupAuthNegotiate; 20 } 21 22 /** the main Gtk struct as a void* */ 23 protected override void* getStruct() 24 { 25 return cast(void*)soupAuthNegotiate; 26 } 27 28 /** 29 * Sets our main struct and passes it to the parent class. 30 */ 31 public this (SoupAuthNegotiate* soupAuthNegotiate, bool ownedRef = false) 32 { 33 this.soupAuthNegotiate = soupAuthNegotiate; 34 super(cast(SoupAuth*)soupAuthNegotiate, ownedRef); 35 } 36 37 38 /** */ 39 public static GType getType() 40 { 41 return soup_auth_negotiate_get_type(); 42 } 43 44 /** 45 * Indicates whether libsoup was built with GSSAPI support. If this is 46 * %FALSE, %SOUP_TYPE_AUTH_NEGOTIATE will still be defined and can 47 * still be added to a #SoupSession, but libsoup will never attempt to 48 * actually use this auth type. 49 * 50 * Since: 2.54 51 */ 52 public static bool supported() 53 { 54 return soup_auth_negotiate_supported() != 0; 55 } 56 }