// +build !minimal #define protected public #define private public #include "purchasing.h" #include "_cgo_export.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include class MyQInAppProduct: public QInAppProduct { public: void purchase() { callbackQInAppProduct_Purchase(this, this->objectName().toUtf8().data()); }; void timerEvent(QTimerEvent * event) { callbackQInAppProduct_TimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQInAppProduct_ChildEvent(this, this->objectName().toUtf8().data(), event); }; void connectNotify(const QMetaMethod & sign) { callbackQInAppProduct_ConnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); }; void customEvent(QEvent * event) { callbackQInAppProduct_CustomEvent(this, this->objectName().toUtf8().data(), event); }; void deleteLater() { callbackQInAppProduct_DeleteLater(this, this->objectName().toUtf8().data()); }; void disconnectNotify(const QMetaMethod & sign) { callbackQInAppProduct_DisconnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); }; bool event(QEvent * e) { return callbackQInAppProduct_Event(this, this->objectName().toUtf8().data(), e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQInAppProduct_EventFilter(this, this->objectName().toUtf8().data(), watched, event) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQInAppProduct_MetaObject(const_cast(this), this->objectName().toUtf8().data())); }; }; char* QInAppProduct_Description(void* ptr) { return static_cast(ptr)->description().toUtf8().data(); } char* QInAppProduct_Identifier(void* ptr) { return static_cast(ptr)->identifier().toUtf8().data(); } char* QInAppProduct_Price(void* ptr) { return static_cast(ptr)->price().toUtf8().data(); } int QInAppProduct_ProductType(void* ptr) { return static_cast(ptr)->productType(); } char* QInAppProduct_Title(void* ptr) { return static_cast(ptr)->title().toUtf8().data(); } void QInAppProduct_Purchase(void* ptr) { static_cast(ptr)->purchase(); } void QInAppProduct_TimerEvent(void* ptr, void* event) { static_cast(ptr)->timerEvent(static_cast(event)); } void QInAppProduct_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QInAppProduct::timerEvent(static_cast(event)); } void QInAppProduct_ChildEvent(void* ptr, void* event) { static_cast(ptr)->childEvent(static_cast(event)); } void QInAppProduct_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QInAppProduct::childEvent(static_cast(event)); } void QInAppProduct_ConnectNotify(void* ptr, void* sign) { static_cast(ptr)->connectNotify(*static_cast(sign)); } void QInAppProduct_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QInAppProduct::connectNotify(*static_cast(sign)); } void QInAppProduct_CustomEvent(void* ptr, void* event) { static_cast(ptr)->customEvent(static_cast(event)); } void QInAppProduct_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QInAppProduct::customEvent(static_cast(event)); } void QInAppProduct_DeleteLater(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); } void QInAppProduct_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QInAppProduct::deleteLater(); } void QInAppProduct_DisconnectNotify(void* ptr, void* sign) { static_cast(ptr)->disconnectNotify(*static_cast(sign)); } void QInAppProduct_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QInAppProduct::disconnectNotify(*static_cast(sign)); } int QInAppProduct_Event(void* ptr, void* e) { return static_cast(ptr)->event(static_cast(e)); } int QInAppProduct_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QInAppProduct::event(static_cast(e)); } int QInAppProduct_EventFilter(void* ptr, void* watched, void* event) { return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); } int QInAppProduct_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QInAppProduct::eventFilter(static_cast(watched), static_cast(event)); } void* QInAppProduct_MetaObject(void* ptr) { return const_cast(static_cast(ptr)->metaObject()); } void* QInAppProduct_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QInAppProduct::metaObject()); } class MyQInAppStore: public QInAppStore { public: MyQInAppStore(QObject *parent) : QInAppStore(parent) {}; void Signal_ProductRegistered(QInAppProduct * product) { callbackQInAppStore_ProductRegistered(this, this->objectName().toUtf8().data(), product); }; void Signal_ProductUnknown(QInAppProduct::ProductType productType, const QString & identifier) { callbackQInAppStore_ProductUnknown(this, this->objectName().toUtf8().data(), productType, identifier.toUtf8().data()); }; void Signal_TransactionReady(QInAppTransaction * transaction) { callbackQInAppStore_TransactionReady(this, this->objectName().toUtf8().data(), transaction); }; void timerEvent(QTimerEvent * event) { callbackQInAppStore_TimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQInAppStore_ChildEvent(this, this->objectName().toUtf8().data(), event); }; void connectNotify(const QMetaMethod & sign) { callbackQInAppStore_ConnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); }; void customEvent(QEvent * event) { callbackQInAppStore_CustomEvent(this, this->objectName().toUtf8().data(), event); }; void deleteLater() { callbackQInAppStore_DeleteLater(this, this->objectName().toUtf8().data()); }; void disconnectNotify(const QMetaMethod & sign) { callbackQInAppStore_DisconnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); }; bool event(QEvent * e) { return callbackQInAppStore_Event(this, this->objectName().toUtf8().data(), e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQInAppStore_EventFilter(this, this->objectName().toUtf8().data(), watched, event) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQInAppStore_MetaObject(const_cast(this), this->objectName().toUtf8().data())); }; }; void* QInAppStore_NewQInAppStore(void* parent) { return new MyQInAppStore(static_cast(parent)); } void QInAppStore_ConnectProductRegistered(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QInAppStore::productRegistered), static_cast(ptr), static_cast(&MyQInAppStore::Signal_ProductRegistered)); } void QInAppStore_DisconnectProductRegistered(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QInAppStore::productRegistered), static_cast(ptr), static_cast(&MyQInAppStore::Signal_ProductRegistered)); } void QInAppStore_ProductRegistered(void* ptr, void* product) { static_cast(ptr)->productRegistered(static_cast(product)); } void QInAppStore_ConnectProductUnknown(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QInAppStore::productUnknown), static_cast(ptr), static_cast(&MyQInAppStore::Signal_ProductUnknown)); } void QInAppStore_DisconnectProductUnknown(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QInAppStore::productUnknown), static_cast(ptr), static_cast(&MyQInAppStore::Signal_ProductUnknown)); } void QInAppStore_ProductUnknown(void* ptr, int productType, char* identifier) { static_cast(ptr)->productUnknown(static_cast(productType), QString(identifier)); } void QInAppStore_RegisterProduct(void* ptr, int productType, char* identifier) { static_cast(ptr)->registerProduct(static_cast(productType), QString(identifier)); } void* QInAppStore_RegisteredProduct(void* ptr, char* identifier) { return static_cast(ptr)->registeredProduct(QString(identifier)); } void QInAppStore_RestorePurchases(void* ptr) { static_cast(ptr)->restorePurchases(); } void QInAppStore_SetPlatformProperty(void* ptr, char* propertyName, char* value) { static_cast(ptr)->setPlatformProperty(QString(propertyName), QString(value)); } void QInAppStore_ConnectTransactionReady(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QInAppStore::transactionReady), static_cast(ptr), static_cast(&MyQInAppStore::Signal_TransactionReady)); } void QInAppStore_DisconnectTransactionReady(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QInAppStore::transactionReady), static_cast(ptr), static_cast(&MyQInAppStore::Signal_TransactionReady)); } void QInAppStore_TransactionReady(void* ptr, void* transaction) { static_cast(ptr)->transactionReady(static_cast(transaction)); } void QInAppStore_DestroyQInAppStore(void* ptr) { static_cast(ptr)->~QInAppStore(); } void QInAppStore_TimerEvent(void* ptr, void* event) { static_cast(ptr)->timerEvent(static_cast(event)); } void QInAppStore_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QInAppStore::timerEvent(static_cast(event)); } void QInAppStore_ChildEvent(void* ptr, void* event) { static_cast(ptr)->childEvent(static_cast(event)); } void QInAppStore_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QInAppStore::childEvent(static_cast(event)); } void QInAppStore_ConnectNotify(void* ptr, void* sign) { static_cast(ptr)->connectNotify(*static_cast(sign)); } void QInAppStore_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QInAppStore::connectNotify(*static_cast(sign)); } void QInAppStore_CustomEvent(void* ptr, void* event) { static_cast(ptr)->customEvent(static_cast(event)); } void QInAppStore_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QInAppStore::customEvent(static_cast(event)); } void QInAppStore_DeleteLater(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); } void QInAppStore_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QInAppStore::deleteLater(); } void QInAppStore_DisconnectNotify(void* ptr, void* sign) { static_cast(ptr)->disconnectNotify(*static_cast(sign)); } void QInAppStore_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QInAppStore::disconnectNotify(*static_cast(sign)); } int QInAppStore_Event(void* ptr, void* e) { return static_cast(ptr)->event(static_cast(e)); } int QInAppStore_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QInAppStore::event(static_cast(e)); } int QInAppStore_EventFilter(void* ptr, void* watched, void* event) { return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); } int QInAppStore_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QInAppStore::eventFilter(static_cast(watched), static_cast(event)); } void* QInAppStore_MetaObject(void* ptr) { return const_cast(static_cast(ptr)->metaObject()); } void* QInAppStore_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QInAppStore::metaObject()); } class MyQInAppTransaction: public QInAppTransaction { public: QString errorString() const { return QString(callbackQInAppTransaction_ErrorString(const_cast(this), this->objectName().toUtf8().data())); }; FailureReason failureReason() const { return static_cast(callbackQInAppTransaction_FailureReason(const_cast(this), this->objectName().toUtf8().data())); }; QString orderId() const { return QString(callbackQInAppTransaction_OrderId(const_cast(this), this->objectName().toUtf8().data())); }; QDateTime timestamp() const { return *static_cast(callbackQInAppTransaction_Timestamp(const_cast(this), this->objectName().toUtf8().data())); }; void finalize() { callbackQInAppTransaction_Finalize(this, this->objectName().toUtf8().data()); }; QString platformProperty(const QString & propertyName) const { return QString(callbackQInAppTransaction_PlatformProperty(const_cast(this), this->objectName().toUtf8().data(), propertyName.toUtf8().data())); }; void timerEvent(QTimerEvent * event) { callbackQInAppTransaction_TimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQInAppTransaction_ChildEvent(this, this->objectName().toUtf8().data(), event); }; void connectNotify(const QMetaMethod & sign) { callbackQInAppTransaction_ConnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); }; void customEvent(QEvent * event) { callbackQInAppTransaction_CustomEvent(this, this->objectName().toUtf8().data(), event); }; void deleteLater() { callbackQInAppTransaction_DeleteLater(this, this->objectName().toUtf8().data()); }; void disconnectNotify(const QMetaMethod & sign) { callbackQInAppTransaction_DisconnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); }; bool event(QEvent * e) { return callbackQInAppTransaction_Event(this, this->objectName().toUtf8().data(), e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQInAppTransaction_EventFilter(this, this->objectName().toUtf8().data(), watched, event) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQInAppTransaction_MetaObject(const_cast(this), this->objectName().toUtf8().data())); }; }; char* QInAppTransaction_ErrorString(void* ptr) { return static_cast(ptr)->errorString().toUtf8().data(); } char* QInAppTransaction_ErrorStringDefault(void* ptr) { return static_cast(ptr)->QInAppTransaction::errorString().toUtf8().data(); } int QInAppTransaction_FailureReason(void* ptr) { return static_cast(ptr)->failureReason(); } int QInAppTransaction_FailureReasonDefault(void* ptr) { return static_cast(ptr)->QInAppTransaction::failureReason(); } char* QInAppTransaction_OrderId(void* ptr) { return static_cast(ptr)->orderId().toUtf8().data(); } char* QInAppTransaction_OrderIdDefault(void* ptr) { return static_cast(ptr)->QInAppTransaction::orderId().toUtf8().data(); } void* QInAppTransaction_Product(void* ptr) { return static_cast(ptr)->product(); } int QInAppTransaction_Status(void* ptr) { return static_cast(ptr)->status(); } void* QInAppTransaction_Timestamp(void* ptr) { return new QDateTime(static_cast(ptr)->timestamp()); } void* QInAppTransaction_TimestampDefault(void* ptr) { return new QDateTime(static_cast(ptr)->QInAppTransaction::timestamp()); } void QInAppTransaction_Finalize(void* ptr) { static_cast(ptr)->finalize(); } char* QInAppTransaction_PlatformProperty(void* ptr, char* propertyName) { return static_cast(ptr)->platformProperty(QString(propertyName)).toUtf8().data(); } char* QInAppTransaction_PlatformPropertyDefault(void* ptr, char* propertyName) { return static_cast(ptr)->QInAppTransaction::platformProperty(QString(propertyName)).toUtf8().data(); } void QInAppTransaction_TimerEvent(void* ptr, void* event) { static_cast(ptr)->timerEvent(static_cast(event)); } void QInAppTransaction_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QInAppTransaction::timerEvent(static_cast(event)); } void QInAppTransaction_ChildEvent(void* ptr, void* event) { static_cast(ptr)->childEvent(static_cast(event)); } void QInAppTransaction_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QInAppTransaction::childEvent(static_cast(event)); } void QInAppTransaction_ConnectNotify(void* ptr, void* sign) { static_cast(ptr)->connectNotify(*static_cast(sign)); } void QInAppTransaction_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QInAppTransaction::connectNotify(*static_cast(sign)); } void QInAppTransaction_CustomEvent(void* ptr, void* event) { static_cast(ptr)->customEvent(static_cast(event)); } void QInAppTransaction_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QInAppTransaction::customEvent(static_cast(event)); } void QInAppTransaction_DeleteLater(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); } void QInAppTransaction_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QInAppTransaction::deleteLater(); } void QInAppTransaction_DisconnectNotify(void* ptr, void* sign) { static_cast(ptr)->disconnectNotify(*static_cast(sign)); } void QInAppTransaction_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QInAppTransaction::disconnectNotify(*static_cast(sign)); } int QInAppTransaction_Event(void* ptr, void* e) { return static_cast(ptr)->event(static_cast(e)); } int QInAppTransaction_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QInAppTransaction::event(static_cast(e)); } int QInAppTransaction_EventFilter(void* ptr, void* watched, void* event) { return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); } int QInAppTransaction_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QInAppTransaction::eventFilter(static_cast(watched), static_cast(event)); } void* QInAppTransaction_MetaObject(void* ptr) { return const_cast(static_cast(ptr)->metaObject()); } void* QInAppTransaction_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QInAppTransaction::metaObject()); }