//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.TQt;
import org.trinitydesktop.qt.QtSupport;

/**

 URLArgs is a set of arguments bundled into a structure,
 to allow specifying how a URL should be opened by openURL().
 In other words, this is like arguments to openURL(), but without
 have to change the signature of openURL() (since openURL is a
 generic KParts method).
 The parts (with a browser extension) who care about urlargs will
 use those arguments, others will ignore them.
 This can also be used the other way round, when a part asks
 for a URL to be opened (with openURLRequest or createNewWindow).
 		@short    URLArgs is a set of arguments bundled into a structure,  to allow specifying how a URL should be opened by openURL().

*/
public class URLArgs implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected URLArgs(Class dummy){}

	public URLArgs() {
		newURLArgs();
	}
	private native void newURLArgs();
	public URLArgs(URLArgs args) {
		newURLArgs(args);
	}
	private native void newURLArgs(URLArgs args);
	public URLArgs(boolean reload, int xOffset, int yOffset, String serviceType) {
		newURLArgs(reload,xOffset,yOffset,serviceType);
	}
	private native void newURLArgs(boolean reload, int xOffset, int yOffset, String serviceType);
	public URLArgs(boolean reload, int xOffset, int yOffset) {
		newURLArgs(reload,xOffset,yOffset);
	}
	private native void newURLArgs(boolean reload, int xOffset, int yOffset);
	/**
		 TDEHTML-specific field, header defining the type of the POST data.
		   		@short    TDEHTML-specific field, header defining the type of the POST data.
	*/
	public native void setContentType(String contentType);
	/**
		 TDEHTML-specific field, header defining the type of the POST data.
		   		@short    TDEHTML-specific field, header defining the type of the POST data.
	*/
	public native String contentType();
	/**
		 TDEHTML-specific field, whether to do a POST instead of a GET,
		 for the next openURL.
		   		@short    TDEHTML-specific field, whether to do a POST instead of a GET,  for the next openURL.
	*/
	public native void setDoPost(boolean enable);
	/**
		 TDEHTML-specific field, whether to do a POST instead of a GET,
		 for the next openURL.
		   		@short    TDEHTML-specific field, whether to do a POST instead of a GET,  for the next openURL.
	*/
	public native boolean doPost();
	/**
		 Whether to lock the history when opening the next URL.
		 This is used during e.g. a redirection, to avoid a new entry
		 in the history.
		   		@short    Whether to lock the history when opening the next URL.
	*/
	public native void setLockHistory(boolean lock);
	public native boolean lockHistory();
	/**
		 Whether the URL should be opened in a new tab instead in a new window.
		   		@short    Whether the URL should be opened in a new tab instead in a new window.
	*/
	public native void setNewTab(boolean newTab);
	public native boolean newTab();
	/**
		 Meta-data to associate with the next TDEIO operation
				@short    Meta-data to associate with the next TDEIO operation
		@see TransferJob
		@see #etc#
	*/
	// TQMap<TQString, TQString>& metaData(); >>>> NOT CONVERTED
	/**
				@return true if the request was a result of a META refresh/redirect request or
 HTTP redirect.

		@short
	*/
	public native boolean redirectedRequest();
	/**
		 Set the redirect flag to indicate URL is a result of either a META redirect
		 or HTTP redirect.
			@param redirected    		@short    Set the redirect flag to indicate URL is a result of either a META redirect  or HTTP redirect.
	*/
	public native void setRedirectedRequest(boolean redirected);
	/**
		 Set whether the URL specifies to be opened in a new window
				@short    Set whether the URL specifies to be opened in a new window
	*/
	public native void setForcesNewWindow(boolean forcesNewWindow);
	/**
		 Whether the URL specifies to be opened in a new window
				@short    Whether the URL specifies to be opened in a new window
	*/
	public native boolean forcesNewWindow();
}
