struct URLArgs

# struct URLArgs | URLArgs is a set of arguments bundled into a structure, to allow specifying how a URL should be opened by openURL(). More...
Full name | `KParts::URLArgs`
Definition | `#include <browserextension.h>`
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- URLArgs ()
- URLArgs ( const URLArgs &args )
- URLArgs & operator= ( const URLArgs &args)
- URLArgs ( bool reload, int xOffset, int yOffset, const QString &serviceType = QString::null )
- virtual ~URLArgs ()
- 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 Members

- 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).

URLArgs () | ### URLArgs

URLArgs ( const URLArgs &args ) | ### URLArgs

URLArgs & operator= ( const URLArgs &args) | ### operator=

URLArgs ( bool reload, int xOffset, int yOffset, const QString &serviceType = QString::null ) | ### URLArgs

~URLArgs () | ### ~URLArgs

[virtual]

QStringList docState | ### docState

bool reload | ### reload

int xOffset | ### xOffset

int yOffset | ### yOffset

QString serviceType | ### serviceType

QByteArray postData | ### postData

void setContentType ( const QString & contentType ) | ### setContentType

KHTML-specific field, header defining the type of the POST data.

QString contentType () | ### contentType

[const]

KHTML-specific field, header defining the type of the POST data.

void setDoPost ( bool enable ) | ### setDoPost

KHTML-specific field, whether to do a POST instead of a GET, for the next openURL.

bool doPost () | ### doPost

[const]

KHTML-specific field, whether to do a POST instead of a GET, for the next openURL.

void setLockHistory ( bool lock ) | ### setLockHistory

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.

bool lockHistory () | ### lockHistory

[const]

void setNewTab ( bool newTab ) | ### setNewTab

Whether the URL should be opened in a new tab instead in a new window.

bool newTab () | ### newTab

[const]

QMap<QString, QString> & metaData () | ### metaData

Meta-data to associate with the next KIO operation

See also: TransferJob, etc.

QString frameName | ### frameName

bool trustedSource | ### trustedSource

bool redirectedRequest () | ### redirectedRequest

[const]

void setRedirectedRequest (bool redirected) | ### setRedirectedRequest

URLArgsPrivate * d | ### d

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:37:24 2003, using kdoc 2.0a54.