1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;
import org.kde.qt.Qt;
import org.kde.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();
}
|