KParts::URLArgs Struct Reference
URLArgs is a set of arguments bundled into a structure, to allow specifying how a URL should be opened by openURL(). More...
#include <browserextension.h>
Public Member Functions | |
URLArgs (const URLArgs &args) | |
URLArgs & | operator= (const URLArgs &args) |
URLArgs (bool reload, int xOffset, int yOffset, const QString &serviceType=QString::null) | |
void | setContentType (const QString &contentType) |
QString | contentType () const |
void | setDoPost (bool enable) |
bool | doPost () const |
void | setLockHistory (bool lock) |
bool | lockHistory () const |
void | setNewTab (bool newTab) |
bool | newTab () const |
QMap< QString, QString > & | metaData () |
bool | redirectedRequest () const |
void | setRedirectedRequest (bool redirected) |
Public Attributes | |
QStringList | docState |
bool | reload |
int | xOffset |
int | yOffset |
QString | serviceType |
QByteArray | postData |
QString | frameName |
bool | trustedSource |
URLArgsPrivate * | d |
Detailed Description
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).
Definition at line 57 of file browserextension.h.
Member Function Documentation
|
KHTML-specific field, header defining the type of the POST data.
Definition at line 137 of file browserextension.cpp. References contentType(). |
|
KHTML-specific field, header defining the type of the POST data.
Definition at line 156 of file browserextension.cpp. Referenced by setContentType(). |
|
KHTML-specific field, whether to do a POST instead of a GET, for the next openURL.
Definition at line 168 of file browserextension.cpp. |
|
KHTML-specific field, whether to do a POST instead of a GET, for the next openURL.
Definition at line 175 of file browserextension.cpp. |
|
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. Definition at line 180 of file browserextension.cpp. |
|
Whether the URL should be opened in a new tab instead in a new window.
Definition at line 192 of file browserextension.cpp. |
|
Meta-data to associate with the next KIO operation.
Definition at line 161 of file browserextension.cpp. |
|
Definition at line 151 of file browserextension.cpp. |
|
Set the redirect flag to indicate URL is a result of either a META redirect or HTTP redirect.
Definition at line 144 of file browserextension.cpp. |
Member Data Documentation
|
This buffer can be used by the part to save and restore its contents. See KHTMLPart for instance. Definition at line 70 of file browserextension.h. |
|
Definition at line 75 of file browserextension.h. |
|
This is saved into the history and restored when going back in the history. Definition at line 81 of file browserextension.h. Referenced by KParts::BrowserExtension::restoreState(). |
|
Definition at line 85 of file browserextension.h. Referenced by KParts::BrowserExtension::restoreState(). |
|
The servicetype (usually mimetype) to use when opening the next URL.
Definition at line 89 of file browserextension.h. |
|
KHTML-specific field, contents of the HTTP POST data.
Definition at line 94 of file browserextension.h. |
|
The frame in which to open the URL. KHTML/Konqueror-specific. Definition at line 139 of file browserextension.h. |
|
If true, the part who asks for a URL to be opened can be 'trusted' to execute applications. For instance, the directory views can be 'trusted' whereas HTML pages are not trusted in that respect. Definition at line 146 of file browserextension.h. |
The documentation for this struct was generated from the following files: