AppleOpenSource/WebKit2-7609.3.5.1.3/UIProcess/API/glib/WebKitDownload.cpp
/**
 * webkit_download_set_allow_overwrite:
 * @download: a #WebKitDownload
 * @allowed: the new value for the #WebKitDownload:allow-overwrite property
 *
 * Sets the #WebKitDownload:allow-overwrite property, which determines whether
 * the download may overwrite an existing file on disk, or if it will fail if
 * the destination already exists.
 *
 * Since: 2.6
 */
@download: a #WebKitDownload
@allowed: the new value for the #WebKitDownload:allow-overwrite property

Sets the #WebKitDownload:allow-overwrite property, which determines whether
the download may overwrite an existing file on disk, or if it will fail if
the destination already exists.


@download : a #WebKitDownload @allowed : the new value for the #WebKitDownload : allow - overwrite property Sets the #WebKitDownload : allow - overwrite property which determines whether the download may overwrite an existing file on disk or if it will fail if the destination already exists .
void webkit_download_set_allow_overwrite(WebKitDownload* download, gboolean allowed)
{
    g_return_if_fail(WEBKIT_IS_DOWNLOAD(download));
    if (allowed == download->priv->allowOverwrite)
        return;
    download->priv->allowOverwrite = allowed;
    g_object_notify(G_OBJECT(download), "allow-overwrite");
}
void webkit_download_set_allow_overwrite ( WebKitDownload * download , gboolean allowed ) { g_return_if_fail ( WEBKIT_IS_DOWNLOAD ( download ) ) ; if ( allowed == download -> priv -> allowOverwrite ) return ; download -> priv -> allowOverwrite = allowed ; g_object_notify ( G_OBJECT ( download ) , " " ) ; }
webkit_download_set_allow_overwrite:
 @download: a #WebKitDownload
 @allowed: the new value for the #WebKitDownload:allow-overwrite property
webkit_download_set_allow_overwrite : @download : a #WebKitDownload @allowed : the new value for the #WebKitDownload : allow - overwrite property