// +build !minimal #define protected public #define private public #include "speech.h" #include "_cgo_export.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class MyQTextToSpeech: public QTextToSpeech { public: MyQTextToSpeech(QObject *parent = nullptr) : QTextToSpeech(parent) {QTextToSpeech_QTextToSpeech_QRegisterMetaType();}; MyQTextToSpeech(const QString &engine, QObject *parent = nullptr) : QTextToSpeech(engine, parent) {QTextToSpeech_QTextToSpeech_QRegisterMetaType();}; void Signal_LocaleChanged(const QLocale & locale) { callbackQTextToSpeech_LocaleChanged(this, const_cast(&locale)); }; void pause() { callbackQTextToSpeech_Pause(this); }; void Signal_PitchChanged(double pitch) { callbackQTextToSpeech_PitchChanged(this, pitch); }; void Signal_RateChanged(double rate) { callbackQTextToSpeech_RateChanged(this, rate); }; void resume() { callbackQTextToSpeech_Resume(this); }; void say(const QString & text) { QByteArray t372ea0 = text.toUtf8(); QtSpeech_PackedString textPacked = { const_cast(t372ea0.prepend("WHITESPACE").constData()+10), t372ea0.size()-10 };callbackQTextToSpeech_Say(this, textPacked); }; void setLocale(const QLocale & locale) { callbackQTextToSpeech_SetLocale(this, const_cast(&locale)); }; void setPitch(double pitch) { callbackQTextToSpeech_SetPitch(this, pitch); }; void setRate(double rate) { callbackQTextToSpeech_SetRate(this, rate); }; void setVolume(double volume) { callbackQTextToSpeech_SetVolume(this, volume); }; void Signal_StateChanged(QTextToSpeech::State state) { callbackQTextToSpeech_StateChanged(this, state); }; void stop() { callbackQTextToSpeech_Stop(this); }; void Signal_VolumeChanged(int volume) { callbackQTextToSpeech_VolumeChanged(this, volume); }; bool event(QEvent * e) { return callbackQTextToSpeech_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQTextToSpeech_EventFilter(this, watched, event) != 0; }; void childEvent(QChildEvent * event) { callbackQTextToSpeech_ChildEvent(this, event); }; void connectNotify(const QMetaMethod & sign) { callbackQTextToSpeech_ConnectNotify(this, const_cast(&sign)); }; void customEvent(QEvent * event) { callbackQTextToSpeech_CustomEvent(this, event); }; void deleteLater() { callbackQTextToSpeech_DeleteLater(this); }; void Signal_Destroyed(QObject * obj) { callbackQTextToSpeech_Destroyed(this, obj); }; void disconnectNotify(const QMetaMethod & sign) { callbackQTextToSpeech_DisconnectNotify(this, const_cast(&sign)); }; void Signal_ObjectNameChanged(const QString & objectName) { QByteArray taa2c4f = objectName.toUtf8(); QtSpeech_PackedString objectNamePacked = { const_cast(taa2c4f.prepend("WHITESPACE").constData()+10), taa2c4f.size()-10 };callbackQTextToSpeech_ObjectNameChanged(this, objectNamePacked); }; void timerEvent(QTimerEvent * event) { callbackQTextToSpeech_TimerEvent(this, event); }; const QMetaObject * metaObject() const { return static_cast(callbackQTextToSpeech_MetaObject(const_cast(static_cast(this)))); }; }; Q_DECLARE_METATYPE(MyQTextToSpeech*) int QTextToSpeech_QTextToSpeech_QRegisterMetaType(){return qRegisterMetaType();} struct QtSpeech_PackedString QTextToSpeech_QTextToSpeech_AvailableEngines() { return ({ QByteArray tb1cc61 = QTextToSpeech::availableEngines().join("|").toUtf8(); QtSpeech_PackedString { const_cast(tb1cc61.prepend("WHITESPACE").constData()+10), tb1cc61.size()-10 }; }); } void* QTextToSpeech_NewQTextToSpeech(void* parent) { if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(static_cast(parent)); } else { return new MyQTextToSpeech(static_cast(parent)); } } void* QTextToSpeech_NewQTextToSpeech2(struct QtSpeech_PackedString engine, void* parent) { if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } else { return new MyQTextToSpeech(QString::fromUtf8(engine.data, engine.len), static_cast(parent)); } } void QTextToSpeech_ConnectLocaleChanged(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QTextToSpeech::localeChanged), static_cast(ptr), static_cast(&MyQTextToSpeech::Signal_LocaleChanged)); } void QTextToSpeech_DisconnectLocaleChanged(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QTextToSpeech::localeChanged), static_cast(ptr), static_cast(&MyQTextToSpeech::Signal_LocaleChanged)); } void QTextToSpeech_LocaleChanged(void* ptr, void* locale) { static_cast(ptr)->localeChanged(*static_cast(locale)); } void QTextToSpeech_Pause(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "pause"); } void QTextToSpeech_PauseDefault(void* ptr) { static_cast(ptr)->QTextToSpeech::pause(); } void QTextToSpeech_ConnectPitchChanged(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QTextToSpeech::pitchChanged), static_cast(ptr), static_cast(&MyQTextToSpeech::Signal_PitchChanged)); } void QTextToSpeech_DisconnectPitchChanged(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QTextToSpeech::pitchChanged), static_cast(ptr), static_cast(&MyQTextToSpeech::Signal_PitchChanged)); } void QTextToSpeech_PitchChanged(void* ptr, double pitch) { static_cast(ptr)->pitchChanged(pitch); } void QTextToSpeech_ConnectRateChanged(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QTextToSpeech::rateChanged), static_cast(ptr), static_cast(&MyQTextToSpeech::Signal_RateChanged)); } void QTextToSpeech_DisconnectRateChanged(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QTextToSpeech::rateChanged), static_cast(ptr), static_cast(&MyQTextToSpeech::Signal_RateChanged)); } void QTextToSpeech_RateChanged(void* ptr, double rate) { static_cast(ptr)->rateChanged(rate); } void QTextToSpeech_Resume(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "resume"); } void QTextToSpeech_ResumeDefault(void* ptr) { static_cast(ptr)->QTextToSpeech::resume(); } void QTextToSpeech_Say(void* ptr, struct QtSpeech_PackedString text) { QMetaObject::invokeMethod(static_cast(ptr), "say", Q_ARG(QString, QString::fromUtf8(text.data, text.len))); } void QTextToSpeech_SayDefault(void* ptr, struct QtSpeech_PackedString text) { static_cast(ptr)->QTextToSpeech::say(QString::fromUtf8(text.data, text.len)); } void QTextToSpeech_SetLocale(void* ptr, void* locale) { QMetaObject::invokeMethod(static_cast(ptr), "setLocale", Q_ARG(QLocale, *static_cast(locale))); } void QTextToSpeech_SetLocaleDefault(void* ptr, void* locale) { static_cast(ptr)->QTextToSpeech::setLocale(*static_cast(locale)); } void QTextToSpeech_SetPitch(void* ptr, double pitch) { QMetaObject::invokeMethod(static_cast(ptr), "setPitch", Q_ARG(double, pitch)); } void QTextToSpeech_SetPitchDefault(void* ptr, double pitch) { static_cast(ptr)->QTextToSpeech::setPitch(pitch); } void QTextToSpeech_SetRate(void* ptr, double rate) { QMetaObject::invokeMethod(static_cast(ptr), "setRate", Q_ARG(double, rate)); } void QTextToSpeech_SetRateDefault(void* ptr, double rate) { static_cast(ptr)->QTextToSpeech::setRate(rate); } void QTextToSpeech_SetVolume(void* ptr, double volume) { QMetaObject::invokeMethod(static_cast(ptr), "setVolume", Q_ARG(double, volume)); } void QTextToSpeech_SetVolumeDefault(void* ptr, double volume) { static_cast(ptr)->QTextToSpeech::setVolume(volume); } void QTextToSpeech_ConnectStateChanged(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QTextToSpeech::stateChanged), static_cast(ptr), static_cast(&MyQTextToSpeech::Signal_StateChanged)); } void QTextToSpeech_DisconnectStateChanged(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QTextToSpeech::stateChanged), static_cast(ptr), static_cast(&MyQTextToSpeech::Signal_StateChanged)); } void QTextToSpeech_StateChanged(void* ptr, long long state) { static_cast(ptr)->stateChanged(static_cast(state)); } void QTextToSpeech_Stop(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "stop"); } void QTextToSpeech_StopDefault(void* ptr) { static_cast(ptr)->QTextToSpeech::stop(); } void QTextToSpeech_ConnectVolumeChanged(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QTextToSpeech::volumeChanged), static_cast(ptr), static_cast(&MyQTextToSpeech::Signal_VolumeChanged)); } void QTextToSpeech_DisconnectVolumeChanged(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QTextToSpeech::volumeChanged), static_cast(ptr), static_cast(&MyQTextToSpeech::Signal_VolumeChanged)); } void QTextToSpeech_VolumeChanged(void* ptr, int volume) { static_cast(ptr)->volumeChanged(volume); } void* QTextToSpeech_Locale(void* ptr) { return new QLocale(static_cast(ptr)->locale()); } struct QtSpeech_PackedList QTextToSpeech_AvailableLocales(void* ptr) { return ({ QVector* tmpValue = new QVector(static_cast(ptr)->availableLocales()); QtSpeech_PackedList { tmpValue, tmpValue->size() }; }); } long long QTextToSpeech_State(void* ptr) { return static_cast(ptr)->state(); } double QTextToSpeech_Pitch(void* ptr) { return static_cast(ptr)->pitch(); } double QTextToSpeech_Rate(void* ptr) { return static_cast(ptr)->rate(); } double QTextToSpeech_Volume(void* ptr) { return static_cast(ptr)->volume(); } void* QTextToSpeech___availableLocales_atList(void* ptr, int i) { return new QLocale(static_cast*>(ptr)->at(i)); } void QTextToSpeech___availableLocales_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QTextToSpeech___availableLocales_newList(void* ptr) { Q_UNUSED(ptr); return new QVector; } void* QTextToSpeech___availableVoices_newList(void* ptr) { Q_UNUSED(ptr); return new QVector; } void* QTextToSpeech___dynamicPropertyNames_atList(void* ptr, int i) { return new QByteArray(static_cast*>(ptr)->at(i)); } void QTextToSpeech___dynamicPropertyNames_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QTextToSpeech___dynamicPropertyNames_newList(void* ptr) { Q_UNUSED(ptr); return new QList; } void* QTextToSpeech___findChildren_atList2(void* ptr, int i) { return const_cast(static_cast*>(ptr)->at(i)); } void QTextToSpeech___findChildren_setList2(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QTextToSpeech___findChildren_newList2(void* ptr) { Q_UNUSED(ptr); return new QList; } void* QTextToSpeech___findChildren_atList3(void* ptr, int i) { return const_cast(static_cast*>(ptr)->at(i)); } void QTextToSpeech___findChildren_setList3(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QTextToSpeech___findChildren_newList3(void* ptr) { Q_UNUSED(ptr); return new QList; } void* QTextToSpeech___findChildren_atList(void* ptr, int i) { return const_cast(static_cast*>(ptr)->at(i)); } void QTextToSpeech___findChildren_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QTextToSpeech___findChildren_newList(void* ptr) { Q_UNUSED(ptr); return new QList; } void* QTextToSpeech___children_atList(void* ptr, int i) { return const_cast(static_cast*>(ptr)->at(i)); } void QTextToSpeech___children_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QTextToSpeech___children_newList(void* ptr) { Q_UNUSED(ptr); return new QList; } char QTextToSpeech_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QTextToSpeech::event(static_cast(e)); } char QTextToSpeech_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QTextToSpeech::eventFilter(static_cast(watched), static_cast(event)); } void QTextToSpeech_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QTextToSpeech::childEvent(static_cast(event)); } void QTextToSpeech_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QTextToSpeech::connectNotify(*static_cast(sign)); } void QTextToSpeech_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QTextToSpeech::customEvent(static_cast(event)); } void QTextToSpeech_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QTextToSpeech::deleteLater(); } void QTextToSpeech_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QTextToSpeech::disconnectNotify(*static_cast(sign)); } void QTextToSpeech_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QTextToSpeech::timerEvent(static_cast(event)); } void* QTextToSpeech_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QTextToSpeech::metaObject()); } class MyQTextToSpeechPlugin: public QTextToSpeechPlugin { public: ~MyQTextToSpeechPlugin() { callbackQTextToSpeechPlugin_DestroyQTextToSpeechPlugin(this); }; }; void QTextToSpeechPlugin_DestroyQTextToSpeechPlugin(void* ptr) { static_cast(ptr)->~QTextToSpeechPlugin(); } void QTextToSpeechPlugin_DestroyQTextToSpeechPluginDefault(void* ptr) { Q_UNUSED(ptr); } void* QTextToSpeechPlugin___createTextToSpeechEngine_parameters_atList(void* ptr, struct QtSpeech_PackedString i) { return new QVariant(static_cast*>(ptr)->value(QString::fromUtf8(i.data, i.len))); } void QTextToSpeechPlugin___createTextToSpeechEngine_parameters_setList(void* ptr, struct QtSpeech_PackedString key, void* i) { static_cast*>(ptr)->insert(QString::fromUtf8(key.data, key.len), *static_cast(i)); } void* QTextToSpeechPlugin___createTextToSpeechEngine_parameters_newList(void* ptr) { Q_UNUSED(ptr); return new QMap; } struct QtSpeech_PackedList QTextToSpeechPlugin___createTextToSpeechEngine_keyList(void* ptr) { return ({ QList* tmpValue = new QList(static_cast*>(ptr)->keys()); QtSpeech_PackedList { tmpValue, tmpValue->size() }; }); } struct QtSpeech_PackedString QTextToSpeechPlugin_____createTextToSpeechEngine_keyList_atList(void* ptr, int i) { return ({ QByteArray t29def6 = static_cast*>(ptr)->at(i).toUtf8(); QtSpeech_PackedString { const_cast(t29def6.prepend("WHITESPACE").constData()+10), t29def6.size()-10 }; }); } void QTextToSpeechPlugin_____createTextToSpeechEngine_keyList_setList(void* ptr, struct QtSpeech_PackedString i) { static_cast*>(ptr)->append(QString::fromUtf8(i.data, i.len)); } void* QTextToSpeechPlugin_____createTextToSpeechEngine_keyList_newList(void* ptr) { Q_UNUSED(ptr); return new QList; }