CookieJar.connectChanged
gulong connectChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == soup.cookie.Cookie)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == soup.cookie.Cookie)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : soup.cookie_jar.CookieJar)))
&& Parameters!T.length < 4)Connect to Changed signal.
Emitted when jar changes.
If a cookie has been added, new_cookie will contain the newly-added cookie and old_cookie will be null. If a cookie has been deleted, old_cookie will contain the to-be-deleted cookie and new_cookie will be null. If a cookie has been changed, old_cookie will contain its old value, and new_cookie its new value.
Parameters
callback | signal callback delegate or function to connect void callback(soup.cookie.Cookie oldCookie, soup.cookie.Cookie newCookie, soup.cookie_jar.CookieJar cookieJar) oldCookie the old #SoupCookie value (optional) newCookie the new #SoupCookie value (optional) cookieJar the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID