# class OpenUrlArguments

###

Module | kparts
Namespace | KParts
Class | OpenUrlArguments
Inherits |

OpenUrlArguments is the set of arguments that specify how a URL should be opened by KParts.ReadOnlyPart.openUrl().

For instance reload() indicates that the url should be loaded from the network even if it matches the current url of the part.

All setter methods in this class are for the class that calls openUrl (usually the hosting application), all the getter methods are for the part.

### methods

- OpenUrlArguments ( )

  returns ctor

- OpenUrlArguments (other)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  other | KParts.OpenUrlArguments |

- actionRequestedByUser ( )

  returns bool
  KDE 4.1.0 and later only

  True if the user requested that the URL be opened. False if the URL should be opened due to an external event, like javascript popups or automatic redirections. This is true by default @since 4.1

- metaData ( )

  returns QMap<QString,QString>

  Meta-data to associate with the KIO operation that will be used to open the URL. This method can be used to add or retrieve metadata.

  See also KIO.TransferJob etc.

- metaData ( )

  returns QMap<QString,QString>
  Not implemented

- mimeType ( )

  returns QString

  The mimetype to use when opening the url, when known by the calling application.

- reload ( )

  returns bool

  Returns true to indicate that the part should reload the URL, i.e. the cache shouldn't be used (forced reload).

- setActionRequestedByUser (userRequested)

  returns Nothing
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  userRequested | bool |

- setMimeType (mime)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  mime | QString |

- setReload (b)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  b | bool |

  Indicates that the url should be loaded from the network even if it matches the current url of the part.

- setXOffset (x)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  x | int |

- setYOffset (y)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  y | int |

- xOffset ( )

  returns int

  xOffset is the horizontal scrolling of the part's widget (in case it's a scrollview). This is saved into the history and restored when going back in the history.

- yOffset ( )

  returns int

  yOffset is the horizontal scrolling of the part's widget (in case it's a scrollview). This is saved into the history and restored when going back in the history.