qtwebchannel

package
v0.0.0-...-1f663c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2020 License: LGPL-3.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteQQmlWebChannel

func DeleteQQmlWebChannel(this *QQmlWebChannel)

func DeleteQWebChannel

func DeleteQWebChannel(this *QWebChannel)

func DeleteQWebChannelAbstractTransport

func DeleteQWebChannelAbstractTransport(this *QWebChannelAbstractTransport)

func KeepMe

func KeepMe()

Types

type QQmlWebChannel

type QQmlWebChannel struct {
	*QWebChannel
}

func NewQQmlWebChannel

func NewQQmlWebChannel(parent qtcore.QObject_ITF) *QQmlWebChannel

func NewQQmlWebChannelFromPointer

func NewQQmlWebChannelFromPointer(cthis unsafe.Pointer) *QQmlWebChannel

func NewQQmlWebChannelp

func NewQQmlWebChannelp() *QQmlWebChannel

func (*QQmlWebChannel) ConnectTo

func (this *QQmlWebChannel) ConnectTo(transport qtcore.QObject_ITF)

func (*QQmlWebChannel) DisconnectFrom

func (this *QQmlWebChannel) DisconnectFrom(transport qtcore.QObject_ITF)

func (*QQmlWebChannel) GetCthis

func (this *QQmlWebChannel) GetCthis() unsafe.Pointer

func (*QQmlWebChannel) MetaObject

func (this *QQmlWebChannel) MetaObject() *qtcore.QMetaObject

func (*QQmlWebChannel) NewForInherit

func (*QQmlWebChannel) NewForInherit(parent qtcore.QObject_ITF) *QQmlWebChannel

func (*QQmlWebChannel) NewForInheritp

func (*QQmlWebChannel) NewForInheritp() *QQmlWebChannel

func (*QQmlWebChannel) NewFromPointer

func (*QQmlWebChannel) NewFromPointer(cthis unsafe.Pointer) *QQmlWebChannel

func (*QQmlWebChannel) QQmlWebChannel_PTR

func (ptr *QQmlWebChannel) QQmlWebChannel_PTR() *QQmlWebChannel

func (*QQmlWebChannel) SetCthis

func (this *QQmlWebChannel) SetCthis(cthis unsafe.Pointer)

type QQmlWebChannel_ITF

type QQmlWebChannel_ITF interface {
	QWebChannel_ITF
	QQmlWebChannel_PTR() *QQmlWebChannel
}

type QWebChannel

type QWebChannel struct {
	*qtcore.QObject
}

func NewQWebChannel

func NewQWebChannel(parent qtcore.QObject_ITF) *QWebChannel

func NewQWebChannelFromPointer

func NewQWebChannelFromPointer(cthis unsafe.Pointer) *QWebChannel

func NewQWebChannelp

func NewQWebChannelp() *QWebChannel

func (*QWebChannel) BlockUpdates

func (this *QWebChannel) BlockUpdates() bool

func (*QWebChannel) BlockUpdatesChanged

func (this *QWebChannel) BlockUpdatesChanged(block bool)

func (*QWebChannel) ConnectTo

func (this *QWebChannel) ConnectTo(transport QWebChannelAbstractTransport_ITF)

Connects the QWebChannel to the given transport object.

The transport object then handles the communication between the C++ application and a remote HTML client.

See also QWebChannelAbstractTransport and QWebChannel::disconnectFrom().

func (*QWebChannel) DeregisterObject

func (this *QWebChannel) DeregisterObject(object qtcore.QObject_ITF)

Deregisters the given object from the QWebChannel.

Remote clients will receive a destroyed signal for the given object.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

See also QWebChannel::registerObjects(), QWebChannel::registerObject(), and QWebChannel::registeredObjects().

func (*QWebChannel) DisconnectFrom

func (this *QWebChannel) DisconnectFrom(transport QWebChannelAbstractTransport_ITF)

Disconnects the QWebChannel from the transport object.

See also QWebChannel::connectTo().

func (*QWebChannel) GetCthis

func (this *QWebChannel) GetCthis() unsafe.Pointer

func (*QWebChannel) MetaObject

func (this *QWebChannel) MetaObject() *qtcore.QMetaObject

func (*QWebChannel) NewForInherit

func (*QWebChannel) NewForInherit(parent qtcore.QObject_ITF) *QWebChannel

Constructs the QWebChannel object with the given parent.

Note that a QWebChannel is only fully operational once you connect it to a QWebChannelAbstractTransport. The HTML clients also need to be setup appropriately using qwebchannel.js.

func (*QWebChannel) NewForInheritp

func (*QWebChannel) NewForInheritp() *QWebChannel

Constructs the QWebChannel object with the given parent.

Note that a QWebChannel is only fully operational once you connect it to a QWebChannelAbstractTransport. The HTML clients also need to be setup appropriately using qwebchannel.js.

func (*QWebChannel) NewFromPointer

func (*QWebChannel) NewFromPointer(cthis unsafe.Pointer) *QWebChannel

func (*QWebChannel) QWebChannel_PTR

func (ptr *QWebChannel) QWebChannel_PTR() *QWebChannel

func (*QWebChannel) RegisterObject

func (this *QWebChannel) RegisterObject(id string, object qtcore.QObject_ITF)

Registers a single object to the QWebChannel.

The properties, signals and public methods of the object are published to the remote clients. There, an object with the identifier id is then constructed.

Note: A current limitation is that objects must be registered before any client is initialized.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

See also QWebChannel::registerObjects(), QWebChannel::deregisterObject(), and QWebChannel::registeredObjects().

func (*QWebChannel) SetBlockUpdates

func (this *QWebChannel) SetBlockUpdates(block bool)

func (*QWebChannel) SetCthis

func (this *QWebChannel) SetCthis(cthis unsafe.Pointer)

type QWebChannelAbstractTransport

type QWebChannelAbstractTransport struct {
	*qtcore.QObject
}

func NewQWebChannelAbstractTransport

func NewQWebChannelAbstractTransport(parent qtcore.QObject_ITF) *QWebChannelAbstractTransport

func NewQWebChannelAbstractTransportFromPointer

func NewQWebChannelAbstractTransportFromPointer(cthis unsafe.Pointer) *QWebChannelAbstractTransport

func NewQWebChannelAbstractTransportp

func NewQWebChannelAbstractTransportp() *QWebChannelAbstractTransport

func (*QWebChannelAbstractTransport) GetCthis

func (this *QWebChannelAbstractTransport) GetCthis() unsafe.Pointer

func (*QWebChannelAbstractTransport) MessageReceived

func (this *QWebChannelAbstractTransport) MessageReceived(message qtcore.QJsonObject_ITF, transport QWebChannelAbstractTransport_ITF)

This signal must be emitted when a new JSON message was received from the remote client. The transport argument should be set to this transport object.

func (*QWebChannelAbstractTransport) MetaObject

func (this *QWebChannelAbstractTransport) MetaObject() *qtcore.QMetaObject

func (*QWebChannelAbstractTransport) NewForInherit

Constructs a transport object with the given parent.

func (*QWebChannelAbstractTransport) NewForInheritp

Constructs a transport object with the given parent.

func (*QWebChannelAbstractTransport) NewFromPointer

func (*QWebChannelAbstractTransport) QWebChannelAbstractTransport_PTR

func (ptr *QWebChannelAbstractTransport) QWebChannelAbstractTransport_PTR() *QWebChannelAbstractTransport

func (*QWebChannelAbstractTransport) SendMessage

func (this *QWebChannelAbstractTransport) SendMessage(message qtcore.QJsonObject_ITF)

Sends a JSON message to the remote client. An implementation would serialize the message and transmit it to the remote JavaScript client.

func (*QWebChannelAbstractTransport) SetCthis

func (this *QWebChannelAbstractTransport) SetCthis(cthis unsafe.Pointer)

type QWebChannelAbstractTransport_ITF

type QWebChannelAbstractTransport_ITF interface {
	qtcore.QObject_ITF
	QWebChannelAbstractTransport_PTR() *QWebChannelAbstractTransport
}

type QWebChannel_ITF

type QWebChannel_ITF interface {
	qtcore.QObject_ITF
	QWebChannel_PTR() *QWebChannel
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL