2024-11-04 23:15:32 +13:00
|
|
|
package multimedia
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qmediaplaylist.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/mappu/miqt/qt"
|
|
|
|
"github.com/mappu/miqt/qt/network"
|
|
|
|
"runtime"
|
|
|
|
"runtime/cgo"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QMediaPlaylist__PlaybackMode int
|
|
|
|
|
|
|
|
const (
|
|
|
|
QMediaPlaylist__CurrentItemOnce QMediaPlaylist__PlaybackMode = 0
|
|
|
|
QMediaPlaylist__CurrentItemInLoop QMediaPlaylist__PlaybackMode = 1
|
|
|
|
QMediaPlaylist__Sequential QMediaPlaylist__PlaybackMode = 2
|
|
|
|
QMediaPlaylist__Loop QMediaPlaylist__PlaybackMode = 3
|
|
|
|
QMediaPlaylist__Random QMediaPlaylist__PlaybackMode = 4
|
|
|
|
)
|
|
|
|
|
|
|
|
type QMediaPlaylist__Error int
|
|
|
|
|
|
|
|
const (
|
|
|
|
QMediaPlaylist__NoError QMediaPlaylist__Error = 0
|
|
|
|
QMediaPlaylist__FormatError QMediaPlaylist__Error = 1
|
|
|
|
QMediaPlaylist__FormatNotSupportedError QMediaPlaylist__Error = 2
|
|
|
|
QMediaPlaylist__NetworkError QMediaPlaylist__Error = 3
|
|
|
|
QMediaPlaylist__AccessDeniedError QMediaPlaylist__Error = 4
|
|
|
|
)
|
|
|
|
|
|
|
|
type QMediaPlaylist struct {
|
2025-01-18 17:57:48 +13:00
|
|
|
h *C.QMediaPlaylist
|
2024-11-04 23:15:32 +13:00
|
|
|
*qt.QObject
|
|
|
|
*QMediaBindableInterface
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) cPointer() *C.QMediaPlaylist {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
// newQMediaPlaylist constructs the type using only CGO pointers.
|
2024-12-07 17:15:57 +13:00
|
|
|
func newQMediaPlaylist(h *C.QMediaPlaylist) *QMediaPlaylist {
|
2024-11-04 23:15:32 +13:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 17:15:57 +13:00
|
|
|
var outptr_QObject *C.QObject = nil
|
|
|
|
var outptr_QMediaBindableInterface *C.QMediaBindableInterface = nil
|
|
|
|
C.QMediaPlaylist_virtbase(h, &outptr_QObject, &outptr_QMediaBindableInterface)
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
return &QMediaPlaylist{h: h,
|
2024-12-07 17:15:57 +13:00
|
|
|
QObject: qt.UnsafeNewQObject(unsafe.Pointer(outptr_QObject)),
|
|
|
|
QMediaBindableInterface: newQMediaBindableInterface(outptr_QMediaBindableInterface)}
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
// UnsafeNewQMediaPlaylist constructs the type using only unsafe pointers.
|
2024-12-07 17:15:57 +13:00
|
|
|
func UnsafeNewQMediaPlaylist(h unsafe.Pointer) *QMediaPlaylist {
|
|
|
|
return newQMediaPlaylist((*C.QMediaPlaylist)(h))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMediaPlaylist constructs a new QMediaPlaylist object.
|
|
|
|
func NewQMediaPlaylist() *QMediaPlaylist {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQMediaPlaylist(C.QMediaPlaylist_new())
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQMediaPlaylist2 constructs a new QMediaPlaylist object.
|
|
|
|
func NewQMediaPlaylist2(parent *qt.QObject) *QMediaPlaylist {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQMediaPlaylist(C.QMediaPlaylist_new2((*C.QObject)(parent.UnsafePointer())))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) MetaObject() *qt.QMetaObject {
|
2025-02-01 13:45:16 +13:00
|
|
|
return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QMediaPlaylist_metaObject(this.h)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) Metacast(param1 string) unsafe.Pointer {
|
|
|
|
param1_Cstring := C.CString(param1)
|
|
|
|
defer C.free(unsafe.Pointer(param1_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
return (unsafe.Pointer)(C.QMediaPlaylist_metacast(this.h, param1_Cstring))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func QMediaPlaylist_Tr(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QMediaPlaylist_tr(s_Cstring)
|
2024-11-04 23:15:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMediaPlaylist_TrUtf8(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QMediaPlaylist_trUtf8(s_Cstring)
|
2024-11-04 23:15:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) MediaObject() *QMediaObject {
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQMediaObject(C.QMediaPlaylist_mediaObject(this.h))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) PlaybackMode() QMediaPlaylist__PlaybackMode {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (QMediaPlaylist__PlaybackMode)(C.QMediaPlaylist_playbackMode(this.h))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) SetPlaybackMode(mode QMediaPlaylist__PlaybackMode) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_setPlaybackMode(this.h, (C.int)(mode))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) CurrentIndex() int {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (int)(C.QMediaPlaylist_currentIndex(this.h))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) CurrentMedia() *QMediaContent {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQMediaContent(C.QMediaPlaylist_currentMedia(this.h))
|
2024-11-04 23:15:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) NextIndex() int {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (int)(C.QMediaPlaylist_nextIndex(this.h))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) PreviousIndex() int {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (int)(C.QMediaPlaylist_previousIndex(this.h))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) Media(index int) *QMediaContent {
|
2025-02-01 13:45:16 +13:00
|
|
|
_goptr := newQMediaContent(C.QMediaPlaylist_media(this.h, (C.int)(index)))
|
2024-11-04 23:15:32 +13:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) MediaCount() int {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (int)(C.QMediaPlaylist_mediaCount(this.h))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) IsEmpty() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMediaPlaylist_isEmpty(this.h))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) IsReadOnly() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMediaPlaylist_isReadOnly(this.h))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) AddMedia(content *QMediaContent) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMediaPlaylist_addMedia(this.h, content.cPointer()))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) AddMediaWithItems(items []QMediaContent) bool {
|
|
|
|
items_CArray := (*[0xffff]*C.QMediaContent)(C.malloc(C.size_t(8 * len(items))))
|
|
|
|
defer C.free(unsafe.Pointer(items_CArray))
|
|
|
|
for i := range items {
|
|
|
|
items_CArray[i] = items[i].cPointer()
|
|
|
|
}
|
|
|
|
items_ma := C.struct_miqt_array{len: C.size_t(len(items)), data: unsafe.Pointer(items_CArray)}
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMediaPlaylist_addMediaWithItems(this.h, items_ma))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) InsertMedia(index int, content *QMediaContent) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMediaPlaylist_insertMedia(this.h, (C.int)(index), content.cPointer()))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) InsertMedia2(index int, items []QMediaContent) bool {
|
|
|
|
items_CArray := (*[0xffff]*C.QMediaContent)(C.malloc(C.size_t(8 * len(items))))
|
|
|
|
defer C.free(unsafe.Pointer(items_CArray))
|
|
|
|
for i := range items {
|
|
|
|
items_CArray[i] = items[i].cPointer()
|
|
|
|
}
|
|
|
|
items_ma := C.struct_miqt_array{len: C.size_t(len(items)), data: unsafe.Pointer(items_CArray)}
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMediaPlaylist_insertMedia2(this.h, (C.int)(index), items_ma))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) MoveMedia(from int, to int) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMediaPlaylist_moveMedia(this.h, (C.int)(from), (C.int)(to)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) RemoveMedia(pos int) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMediaPlaylist_removeMedia(this.h, (C.int)(pos)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) RemoveMedia2(start int, end int) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMediaPlaylist_removeMedia2(this.h, (C.int)(start), (C.int)(end)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) Clear() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMediaPlaylist_clear(this.h))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) Load(request *network.QNetworkRequest) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_load(this.h, (*C.QNetworkRequest)(request.UnsafePointer()))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) LoadWithLocation(location *qt.QUrl) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_loadWithLocation(this.h, (*C.QUrl)(location.UnsafePointer()))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) LoadWithDevice(device *qt.QIODevice) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_loadWithDevice(this.h, (*C.QIODevice)(device.UnsafePointer()))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) Save(location *qt.QUrl) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMediaPlaylist_save(this.h, (*C.QUrl)(location.UnsafePointer())))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) Save2(device *qt.QIODevice, format string) bool {
|
|
|
|
format_Cstring := C.CString(format)
|
|
|
|
defer C.free(unsafe.Pointer(format_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMediaPlaylist_save2(this.h, (*C.QIODevice)(device.UnsafePointer()), format_Cstring))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) Error() QMediaPlaylist__Error {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (QMediaPlaylist__Error)(C.QMediaPlaylist_error(this.h))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) ErrorString() string {
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QMediaPlaylist_errorString(this.h)
|
2024-11-04 23:15:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) Shuffle() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_shuffle(this.h)
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) Next() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_next(this.h)
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) Previous() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_previous(this.h)
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) SetCurrentIndex(index int) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_setCurrentIndex(this.h, (C.int)(index))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) CurrentIndexChanged(index int) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_currentIndexChanged(this.h, (C.int)(index))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
func (this *QMediaPlaylist) OnCurrentIndexChanged(slot func(index int)) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_connect_currentIndexChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_currentIndexChanged
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_currentIndexChanged(cb C.intptr_t, index C.int) {
|
2024-11-04 23:15:32 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(index int))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (int)(index)
|
|
|
|
|
|
|
|
gofunc(slotval1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) PlaybackModeChanged(mode QMediaPlaylist__PlaybackMode) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_playbackModeChanged(this.h, (C.int)(mode))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
func (this *QMediaPlaylist) OnPlaybackModeChanged(slot func(mode QMediaPlaylist__PlaybackMode)) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_connect_playbackModeChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_playbackModeChanged
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_playbackModeChanged(cb C.intptr_t, mode C.int) {
|
2024-11-04 23:15:32 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(mode QMediaPlaylist__PlaybackMode))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (QMediaPlaylist__PlaybackMode)(mode)
|
|
|
|
|
|
|
|
gofunc(slotval1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) CurrentMediaChanged(param1 *QMediaContent) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_currentMediaChanged(this.h, param1.cPointer())
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
func (this *QMediaPlaylist) OnCurrentMediaChanged(slot func(param1 *QMediaContent)) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_connect_currentMediaChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_currentMediaChanged
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_currentMediaChanged(cb C.intptr_t, param1 *C.QMediaContent) {
|
2024-11-04 23:15:32 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(param1 *QMediaContent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-12-07 15:02:06 +13:00
|
|
|
slotval1 := newQMediaContent(param1)
|
2024-11-04 23:15:32 +13:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) MediaAboutToBeInserted(start int, end int) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_mediaAboutToBeInserted(this.h, (C.int)(start), (C.int)(end))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
func (this *QMediaPlaylist) OnMediaAboutToBeInserted(slot func(start int, end int)) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_connect_mediaAboutToBeInserted(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_mediaAboutToBeInserted
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_mediaAboutToBeInserted(cb C.intptr_t, start C.int, end C.int) {
|
2024-11-04 23:15:32 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(start int, end int))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (int)(start)
|
|
|
|
|
|
|
|
slotval2 := (int)(end)
|
|
|
|
|
|
|
|
gofunc(slotval1, slotval2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) MediaInserted(start int, end int) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_mediaInserted(this.h, (C.int)(start), (C.int)(end))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
func (this *QMediaPlaylist) OnMediaInserted(slot func(start int, end int)) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_connect_mediaInserted(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_mediaInserted
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_mediaInserted(cb C.intptr_t, start C.int, end C.int) {
|
2024-11-04 23:15:32 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(start int, end int))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (int)(start)
|
|
|
|
|
|
|
|
slotval2 := (int)(end)
|
|
|
|
|
|
|
|
gofunc(slotval1, slotval2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) MediaAboutToBeRemoved(start int, end int) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_mediaAboutToBeRemoved(this.h, (C.int)(start), (C.int)(end))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
func (this *QMediaPlaylist) OnMediaAboutToBeRemoved(slot func(start int, end int)) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_connect_mediaAboutToBeRemoved(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_mediaAboutToBeRemoved
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_mediaAboutToBeRemoved(cb C.intptr_t, start C.int, end C.int) {
|
2024-11-04 23:15:32 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(start int, end int))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (int)(start)
|
|
|
|
|
|
|
|
slotval2 := (int)(end)
|
|
|
|
|
|
|
|
gofunc(slotval1, slotval2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) MediaRemoved(start int, end int) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_mediaRemoved(this.h, (C.int)(start), (C.int)(end))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
func (this *QMediaPlaylist) OnMediaRemoved(slot func(start int, end int)) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_connect_mediaRemoved(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_mediaRemoved
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_mediaRemoved(cb C.intptr_t, start C.int, end C.int) {
|
2024-11-04 23:15:32 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(start int, end int))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (int)(start)
|
|
|
|
|
|
|
|
slotval2 := (int)(end)
|
|
|
|
|
|
|
|
gofunc(slotval1, slotval2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) MediaChanged(start int, end int) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_mediaChanged(this.h, (C.int)(start), (C.int)(end))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
func (this *QMediaPlaylist) OnMediaChanged(slot func(start int, end int)) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_connect_mediaChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_mediaChanged
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_mediaChanged(cb C.intptr_t, start C.int, end C.int) {
|
2024-11-04 23:15:32 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(start int, end int))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := (int)(start)
|
|
|
|
|
|
|
|
slotval2 := (int)(end)
|
|
|
|
|
|
|
|
gofunc(slotval1, slotval2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) Loaded() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_loaded(this.h)
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
func (this *QMediaPlaylist) OnLoaded(slot func()) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_connect_loaded(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_loaded
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_loaded(cb C.intptr_t) {
|
2024-11-04 23:15:32 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func())
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
gofunc()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) LoadFailed() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_loadFailed(this.h)
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
func (this *QMediaPlaylist) OnLoadFailed(slot func()) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_connect_loadFailed(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_loadFailed
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_loadFailed(cb C.intptr_t) {
|
2024-11-04 23:15:32 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func())
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
gofunc()
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMediaPlaylist_Tr2(s string, c string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QMediaPlaylist_tr2(s_Cstring, c_Cstring)
|
2024-11-04 23:15:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMediaPlaylist_Tr3(s string, c string, n int) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QMediaPlaylist_tr3(s_Cstring, c_Cstring, (C.int)(n))
|
2024-11-04 23:15:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMediaPlaylist_TrUtf82(s string, c string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QMediaPlaylist_trUtf82(s_Cstring, c_Cstring)
|
2024-11-04 23:15:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func QMediaPlaylist_TrUtf83(s string, c string, n int) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QMediaPlaylist_trUtf83(s_Cstring, c_Cstring, (C.int)(n))
|
2024-11-04 23:15:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) NextIndex1(steps int) int {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (int)(C.QMediaPlaylist_nextIndex1(this.h, (C.int)(steps)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) PreviousIndex1(steps int) int {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (int)(C.QMediaPlaylist_previousIndex1(this.h, (C.int)(steps)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) Load2(request *network.QNetworkRequest, format string) {
|
|
|
|
format_Cstring := C.CString(format)
|
|
|
|
defer C.free(unsafe.Pointer(format_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_load2(this.h, (*C.QNetworkRequest)(request.UnsafePointer()), format_Cstring)
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) Load22(location *qt.QUrl, format string) {
|
|
|
|
format_Cstring := C.CString(format)
|
|
|
|
defer C.free(unsafe.Pointer(format_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_load22(this.h, (*C.QUrl)(location.UnsafePointer()), format_Cstring)
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) Load23(device *qt.QIODevice, format string) {
|
|
|
|
format_Cstring := C.CString(format)
|
|
|
|
defer C.free(unsafe.Pointer(format_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_load23(this.h, (*C.QIODevice)(device.UnsafePointer()), format_Cstring)
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) Save22(location *qt.QUrl, format string) bool {
|
|
|
|
format_Cstring := C.CString(format)
|
|
|
|
defer C.free(unsafe.Pointer(format_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMediaPlaylist_save22(this.h, (*C.QUrl)(location.UnsafePointer()), format_Cstring))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
func (this *QMediaPlaylist) callVirtualBase_MediaObject() *QMediaObject {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return newQMediaObject(C.QMediaPlaylist_virtualbase_mediaObject(unsafe.Pointer(this.h)))
|
2024-12-07 15:02:06 +13:00
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QMediaPlaylist) OnmediaObject(slot func(super func() *QMediaObject) *QMediaObject) {
|
|
|
|
ok := C.QMediaPlaylist_override_virtual_mediaObject(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_mediaObject
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_mediaObject(self *C.QMediaPlaylist, cb C.intptr_t) *C.QMediaObject {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func() *QMediaObject) *QMediaObject)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMediaPlaylist{h: self}).callVirtualBase_MediaObject)
|
|
|
|
|
|
|
|
return virtualReturn.cPointer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) callVirtualBase_SetMediaObject(object *QMediaObject) bool {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMediaPlaylist_virtualbase_setMediaObject(unsafe.Pointer(this.h), object.cPointer()))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QMediaPlaylist) OnsetMediaObject(slot func(super func(object *QMediaObject) bool, object *QMediaObject) bool) {
|
|
|
|
ok := C.QMediaPlaylist_override_virtual_setMediaObject(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_setMediaObject
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_setMediaObject(self *C.QMediaPlaylist, cb C.intptr_t, object *C.QMediaObject) C.bool {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(object *QMediaObject) bool, object *QMediaObject) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-12-07 17:15:57 +13:00
|
|
|
slotval1 := newQMediaObject(object)
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMediaPlaylist{h: self}).callVirtualBase_SetMediaObject, slotval1)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) callVirtualBase_Event(event *qt.QEvent) bool {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMediaPlaylist_virtualbase_event(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer())))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QMediaPlaylist) Onevent(slot func(super func(event *qt.QEvent) bool, event *qt.QEvent) bool) {
|
|
|
|
ok := C.QMediaPlaylist_override_virtual_event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_event
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_event(self *C.QMediaPlaylist, cb C.intptr_t, event *C.QEvent) C.bool {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QEvent) bool, event *qt.QEvent) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMediaPlaylist{h: self}).callVirtualBase_Event, slotval1)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) callVirtualBase_EventFilter(watched *qt.QObject, event *qt.QEvent) bool {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QMediaPlaylist_virtualbase_eventFilter(unsafe.Pointer(this.h), (*C.QObject)(watched.UnsafePointer()), (*C.QEvent)(event.UnsafePointer())))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QMediaPlaylist) OneventFilter(slot func(super func(watched *qt.QObject, event *qt.QEvent) bool, watched *qt.QObject, event *qt.QEvent) bool) {
|
|
|
|
ok := C.QMediaPlaylist_override_virtual_eventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_eventFilter
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_eventFilter(self *C.QMediaPlaylist, cb C.intptr_t, watched *C.QObject, event *C.QEvent) C.bool {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(watched *qt.QObject, event *qt.QEvent) bool, watched *qt.QObject, event *qt.QEvent) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := qt.UnsafeNewQObject(unsafe.Pointer(watched))
|
2024-12-07 15:02:06 +13:00
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
slotval2 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QMediaPlaylist{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) callVirtualBase_TimerEvent(event *qt.QTimerEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_virtualbase_timerEvent(unsafe.Pointer(this.h), (*C.QTimerEvent)(event.UnsafePointer()))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QMediaPlaylist) OntimerEvent(slot func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent)) {
|
|
|
|
ok := C.QMediaPlaylist_override_virtual_timerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_timerEvent
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_timerEvent(self *C.QMediaPlaylist, cb C.intptr_t, event *C.QTimerEvent) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-12-07 17:15:57 +13:00
|
|
|
slotval1 := qt.UnsafeNewQTimerEvent(unsafe.Pointer(event))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
gofunc((&QMediaPlaylist{h: self}).callVirtualBase_TimerEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) callVirtualBase_ChildEvent(event *qt.QChildEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_virtualbase_childEvent(unsafe.Pointer(this.h), (*C.QChildEvent)(event.UnsafePointer()))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QMediaPlaylist) OnchildEvent(slot func(super func(event *qt.QChildEvent), event *qt.QChildEvent)) {
|
|
|
|
ok := C.QMediaPlaylist_override_virtual_childEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_childEvent
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_childEvent(self *C.QMediaPlaylist, cb C.intptr_t, event *C.QChildEvent) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QChildEvent), event *qt.QChildEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-12-07 17:15:57 +13:00
|
|
|
slotval1 := qt.UnsafeNewQChildEvent(unsafe.Pointer(event))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
gofunc((&QMediaPlaylist{h: self}).callVirtualBase_ChildEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) callVirtualBase_CustomEvent(event *qt.QEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_virtualbase_customEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer()))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QMediaPlaylist) OncustomEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
|
|
|
|
ok := C.QMediaPlaylist_override_virtual_customEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_customEvent
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_customEvent(self *C.QMediaPlaylist, cb C.intptr_t, event *C.QEvent) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QEvent), event *qt.QEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
|
|
|
|
gofunc((&QMediaPlaylist{h: self}).callVirtualBase_CustomEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) callVirtualBase_ConnectNotify(signal *qt.QMetaMethod) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_virtualbase_connectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QMediaPlaylist) OnconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
|
|
|
|
ok := C.QMediaPlaylist_override_virtual_connectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_connectNotify
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_connectNotify(self *C.QMediaPlaylist, cb C.intptr_t, signal *C.QMetaMethod) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := qt.UnsafeNewQMetaMethod(unsafe.Pointer(signal))
|
|
|
|
|
|
|
|
gofunc((&QMediaPlaylist{h: self}).callVirtualBase_ConnectNotify, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QMediaPlaylist) callVirtualBase_DisconnectNotify(signal *qt.QMetaMethod) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_virtualbase_disconnectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QMediaPlaylist) OndisconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
|
|
|
|
ok := C.QMediaPlaylist_override_virtual_disconnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QMediaPlaylist_disconnectNotify
|
|
|
|
func miqt_exec_callback_QMediaPlaylist_disconnectNotify(self *C.QMediaPlaylist, cb C.intptr_t, signal *C.QMetaMethod) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := qt.UnsafeNewQMetaMethod(unsafe.Pointer(signal))
|
|
|
|
|
|
|
|
gofunc((&QMediaPlaylist{h: self}).callVirtualBase_DisconnectNotify, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-11-04 23:15:32 +13:00
|
|
|
// Delete this object from C++ memory.
|
|
|
|
func (this *QMediaPlaylist) Delete() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QMediaPlaylist_delete(this.h)
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QMediaPlaylist) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QMediaPlaylist) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|