Foundry.WebIntent

g Foundry.Intent Foundry.Intent Foundry.WebIntent Foundry.WebIntent Foundry.Intent->Foundry.WebIntent GObject.Object GObject.Object GObject.Object->Foundry.Intent

Subclasses:

None

Methods

Inherited:

Foundry.Intent (9), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (uri)

dup_uri ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

uri

str

r/w/en

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Foundry.WebIntent(**kwargs)
Bases:

Foundry.Intent

Abstract:

No

Structure:

Foundry.WebIntentClass

Represents an intent to open a URI with a web browser.

Foundry.WebIntent provides functionality for opening URIs in web browsers. The URI is stored as a plain UTF-8 string and is up to the caller to ensure that the URI is valid.

classmethod new(uri)
Parameters:

uri (str) – a UTF-8 encoded URI string

Returns:

a new [class`Foundry`.WebIntent]

Return type:

Foundry.Intent

Creates a new [class`Foundry`.WebIntent] for opening a URI in a web browser.

The URI is stored as a plain UTF-8 string without any parsing or processing.

dup_uri()
Returns:

a newly allocated copy of the URI string, or None if no URI is set

Return type:

str or None

Gets a copy of the URI string.

Property Details

Foundry.WebIntent.props.uri
Name:

uri

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY