2024-11-19 19:29:06 +13:00
|
|
|
#include <QMediaControl>
|
2024-11-04 23:15:32 +13:00
|
|
|
#include <QMetaObject>
|
2024-11-19 19:29:06 +13:00
|
|
|
#include <QObject>
|
2024-11-26 20:10:11 +13:00
|
|
|
#include <QPair>
|
2024-11-04 23:15:32 +13:00
|
|
|
#include <QRadioTunerControl>
|
|
|
|
#include <QString>
|
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
|
|
|
#include <qradiotunercontrol.h>
|
|
|
|
#include "gen_qradiotunercontrol.h"
|
2024-12-11 19:55:47 +13:00
|
|
|
|
2025-01-07 11:30:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void miqt_exec_callback_QRadioTunerControl_stateChanged(intptr_t, int);
|
|
|
|
void miqt_exec_callback_QRadioTunerControl_bandChanged(intptr_t, int);
|
|
|
|
void miqt_exec_callback_QRadioTunerControl_frequencyChanged(intptr_t, int);
|
|
|
|
void miqt_exec_callback_QRadioTunerControl_stereoStatusChanged(intptr_t, bool);
|
|
|
|
void miqt_exec_callback_QRadioTunerControl_searchingChanged(intptr_t, bool);
|
|
|
|
void miqt_exec_callback_QRadioTunerControl_signalStrengthChanged(intptr_t, int);
|
|
|
|
void miqt_exec_callback_QRadioTunerControl_volumeChanged(intptr_t, int);
|
|
|
|
void miqt_exec_callback_QRadioTunerControl_mutedChanged(intptr_t, bool);
|
|
|
|
void miqt_exec_callback_QRadioTunerControl_errorWithErr(intptr_t, int);
|
|
|
|
void miqt_exec_callback_QRadioTunerControl_stationFound(intptr_t, int, struct miqt_string);
|
|
|
|
void miqt_exec_callback_QRadioTunerControl_antennaConnectedChanged(intptr_t, bool);
|
2025-01-07 11:30:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
2024-12-11 19:55:47 +13:00
|
|
|
#endif
|
2024-11-04 23:15:32 +13:00
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
void QRadioTunerControl_virtbase(QRadioTunerControl* src, QMediaControl** outptr_QMediaControl) {
|
|
|
|
*outptr_QMediaControl = static_cast<QMediaControl*>(src);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
QMetaObject* QRadioTunerControl_metaObject(const QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return (QMetaObject*) self->metaObject();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void* QRadioTunerControl_metacast(QRadioTunerControl* self, const char* param1) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->qt_metacast(param1);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
struct miqt_string QRadioTunerControl_tr(const char* s) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QRadioTunerControl::tr(s);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
struct miqt_string QRadioTunerControl_trUtf8(const char* s) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QRadioTunerControl::trUtf8(s);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QRadioTunerControl_state(const QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QRadioTuner::State _ret = self->state();
|
|
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QRadioTunerControl_band(const QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QRadioTuner::Band _ret = self->band();
|
|
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_setBand(QRadioTunerControl* self, int b) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setBand(static_cast<QRadioTuner::Band>(b));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QRadioTunerControl_isBandSupported(const QRadioTunerControl* self, int b) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->isBandSupported(static_cast<QRadioTuner::Band>(b));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QRadioTunerControl_frequency(const QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->frequency();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QRadioTunerControl_frequencyStep(const QRadioTunerControl* self, int b) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->frequencyStep(static_cast<QRadioTuner::Band>(b));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
struct miqt_map /* tuple of int and int */ QRadioTunerControl_frequencyRange(const QRadioTunerControl* self, int b) {
|
2024-11-17 19:21:37 +13:00
|
|
|
QPair<int, int> _ret = self->frequencyRange(static_cast<QRadioTuner::Band>(b));
|
|
|
|
// Convert QPair<> from C++ memory to manually-managed C memory
|
|
|
|
int* _first_arr = static_cast<int*>(malloc(sizeof(int)));
|
|
|
|
int* _second_arr = static_cast<int*>(malloc(sizeof(int)));
|
|
|
|
_first_arr[0] = _ret.first;
|
|
|
|
_second_arr[0] = _ret.second;
|
|
|
|
struct miqt_map _out;
|
|
|
|
_out.len = 1;
|
|
|
|
_out.keys = static_cast<void*>(_first_arr);
|
|
|
|
_out.values = static_cast<void*>(_second_arr);
|
|
|
|
return _out;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_setFrequency(QRadioTunerControl* self, int frequency) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setFrequency(static_cast<int>(frequency));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QRadioTunerControl_isStereo(const QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->isStereo();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QRadioTunerControl_stereoMode(const QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QRadioTuner::StereoMode _ret = self->stereoMode();
|
|
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_setStereoMode(QRadioTunerControl* self, int mode) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setStereoMode(static_cast<QRadioTuner::StereoMode>(mode));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QRadioTunerControl_signalStrength(const QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->signalStrength();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QRadioTunerControl_volume(const QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->volume();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_setVolume(QRadioTunerControl* self, int volume) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setVolume(static_cast<int>(volume));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QRadioTunerControl_isMuted(const QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->isMuted();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_setMuted(QRadioTunerControl* self, bool muted) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setMuted(muted);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QRadioTunerControl_isSearching(const QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->isSearching();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QRadioTunerControl_isAntennaConnected(const QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->isAntennaConnected();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_searchForward(QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->searchForward();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_searchBackward(QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->searchBackward();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_searchAllStations(QRadioTunerControl* self, int searchMode) {
|
2024-11-19 19:29:06 +13:00
|
|
|
self->searchAllStations(static_cast<QRadioTuner::SearchMode>(searchMode));
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_cancelSearch(QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->cancelSearch();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_start(QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->start();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_stop(QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->stop();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QRadioTunerControl_error(const QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QRadioTuner::Error _ret = self->error();
|
|
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
struct miqt_string QRadioTunerControl_errorString(const QRadioTunerControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = self->errorString();
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_stateChanged(QRadioTunerControl* self, int state) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->stateChanged(static_cast<QRadioTuner::State>(state));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_connect_stateChanged(QRadioTunerControl* self, intptr_t slot) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QRadioTunerControl::connect(self, static_cast<void (QRadioTunerControl::*)(QRadioTuner::State)>(&QRadioTunerControl::stateChanged), self, [=](QRadioTuner::State state) {
|
|
|
|
QRadioTuner::State state_ret = state;
|
|
|
|
int sigval1 = static_cast<int>(state_ret);
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QRadioTunerControl_stateChanged(slot, sigval1);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_bandChanged(QRadioTunerControl* self, int band) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->bandChanged(static_cast<QRadioTuner::Band>(band));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_connect_bandChanged(QRadioTunerControl* self, intptr_t slot) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QRadioTunerControl::connect(self, static_cast<void (QRadioTunerControl::*)(QRadioTuner::Band)>(&QRadioTunerControl::bandChanged), self, [=](QRadioTuner::Band band) {
|
|
|
|
QRadioTuner::Band band_ret = band;
|
|
|
|
int sigval1 = static_cast<int>(band_ret);
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QRadioTunerControl_bandChanged(slot, sigval1);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_frequencyChanged(QRadioTunerControl* self, int frequency) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->frequencyChanged(static_cast<int>(frequency));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_connect_frequencyChanged(QRadioTunerControl* self, intptr_t slot) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QRadioTunerControl::connect(self, static_cast<void (QRadioTunerControl::*)(int)>(&QRadioTunerControl::frequencyChanged), self, [=](int frequency) {
|
|
|
|
int sigval1 = frequency;
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QRadioTunerControl_frequencyChanged(slot, sigval1);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_stereoStatusChanged(QRadioTunerControl* self, bool stereo) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->stereoStatusChanged(stereo);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_connect_stereoStatusChanged(QRadioTunerControl* self, intptr_t slot) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QRadioTunerControl::connect(self, static_cast<void (QRadioTunerControl::*)(bool)>(&QRadioTunerControl::stereoStatusChanged), self, [=](bool stereo) {
|
|
|
|
bool sigval1 = stereo;
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QRadioTunerControl_stereoStatusChanged(slot, sigval1);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_searchingChanged(QRadioTunerControl* self, bool searching) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->searchingChanged(searching);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_connect_searchingChanged(QRadioTunerControl* self, intptr_t slot) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QRadioTunerControl::connect(self, static_cast<void (QRadioTunerControl::*)(bool)>(&QRadioTunerControl::searchingChanged), self, [=](bool searching) {
|
|
|
|
bool sigval1 = searching;
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QRadioTunerControl_searchingChanged(slot, sigval1);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_signalStrengthChanged(QRadioTunerControl* self, int signalStrength) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->signalStrengthChanged(static_cast<int>(signalStrength));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_connect_signalStrengthChanged(QRadioTunerControl* self, intptr_t slot) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QRadioTunerControl::connect(self, static_cast<void (QRadioTunerControl::*)(int)>(&QRadioTunerControl::signalStrengthChanged), self, [=](int signalStrength) {
|
|
|
|
int sigval1 = signalStrength;
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QRadioTunerControl_signalStrengthChanged(slot, sigval1);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_volumeChanged(QRadioTunerControl* self, int volume) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->volumeChanged(static_cast<int>(volume));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_connect_volumeChanged(QRadioTunerControl* self, intptr_t slot) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QRadioTunerControl::connect(self, static_cast<void (QRadioTunerControl::*)(int)>(&QRadioTunerControl::volumeChanged), self, [=](int volume) {
|
|
|
|
int sigval1 = volume;
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QRadioTunerControl_volumeChanged(slot, sigval1);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_mutedChanged(QRadioTunerControl* self, bool muted) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->mutedChanged(muted);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_connect_mutedChanged(QRadioTunerControl* self, intptr_t slot) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QRadioTunerControl::connect(self, static_cast<void (QRadioTunerControl::*)(bool)>(&QRadioTunerControl::mutedChanged), self, [=](bool muted) {
|
|
|
|
bool sigval1 = muted;
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QRadioTunerControl_mutedChanged(slot, sigval1);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_errorWithErr(QRadioTunerControl* self, int err) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->error(static_cast<QRadioTuner::Error>(err));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_connect_errorWithErr(QRadioTunerControl* self, intptr_t slot) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QRadioTunerControl::connect(self, static_cast<void (QRadioTunerControl::*)(QRadioTuner::Error)>(&QRadioTunerControl::error), self, [=](QRadioTuner::Error err) {
|
|
|
|
QRadioTuner::Error err_ret = err;
|
|
|
|
int sigval1 = static_cast<int>(err_ret);
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QRadioTunerControl_errorWithErr(slot, sigval1);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_stationFound(QRadioTunerControl* self, int frequency, struct miqt_string stationId) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString stationId_QString = QString::fromUtf8(stationId.data, stationId.len);
|
|
|
|
self->stationFound(static_cast<int>(frequency), stationId_QString);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_connect_stationFound(QRadioTunerControl* self, intptr_t slot) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QRadioTunerControl::connect(self, static_cast<void (QRadioTunerControl::*)(int, QString)>(&QRadioTunerControl::stationFound), self, [=](int frequency, QString stationId) {
|
|
|
|
int sigval1 = frequency;
|
|
|
|
QString stationId_ret = stationId;
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray stationId_b = stationId_ret.toUtf8();
|
|
|
|
struct miqt_string stationId_ms;
|
|
|
|
stationId_ms.len = stationId_b.length();
|
|
|
|
stationId_ms.data = static_cast<char*>(malloc(stationId_ms.len));
|
|
|
|
memcpy(stationId_ms.data, stationId_b.data(), stationId_ms.len);
|
|
|
|
struct miqt_string sigval2 = stationId_ms;
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QRadioTunerControl_stationFound(slot, sigval1, sigval2);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_antennaConnectedChanged(QRadioTunerControl* self, bool connectionStatus) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->antennaConnectedChanged(connectionStatus);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_connect_antennaConnectedChanged(QRadioTunerControl* self, intptr_t slot) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QRadioTunerControl::connect(self, static_cast<void (QRadioTunerControl::*)(bool)>(&QRadioTunerControl::antennaConnectedChanged), self, [=](bool connectionStatus) {
|
|
|
|
bool sigval1 = connectionStatus;
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QRadioTunerControl_antennaConnectedChanged(slot, sigval1);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
struct miqt_string QRadioTunerControl_tr2(const char* s, const char* c) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QRadioTunerControl::tr(s, c);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
struct miqt_string QRadioTunerControl_tr3(const char* s, const char* c, int n) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QRadioTunerControl::tr(s, c, static_cast<int>(n));
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
struct miqt_string QRadioTunerControl_trUtf82(const char* s, const char* c) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QRadioTunerControl::trUtf8(s, c);
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
struct miqt_string QRadioTunerControl_trUtf83(const char* s, const char* c, int n) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QRadioTunerControl::trUtf8(s, c, static_cast<int>(n));
|
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QRadioTunerControl_delete(QRadioTunerControl* self) {
|
2025-01-18 17:42:41 +13:00
|
|
|
delete self;
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|