All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.purchasing.QInAppTransaction Maven / Gradle / Ivy

There is a newer version: 5.15.24
Show newest version
package io.qt.purchasing;

import io.qt.*;


/**
 * 

Contains information about a transaction in the external app store

*

Java wrapper for Qt class QInAppTransaction

*/ public abstract class QInAppTransaction extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QInAppTransaction.class); @NativeAccess private static final class ConcreteWrapper extends QInAppTransaction { @NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override public void finalizeTransaction(){ finalizeTransaction_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void finalizeTransaction_native(long __this__nativeId); } /** *

Java wrapper for Qt enum QInAppTransaction::FailureReason

*/ @QtUnlistedEnum public enum FailureReason implements QtEnumerator { /** *

Representing QInAppTransaction::NoFailure

*/ NoFailure(0), /** *

Representing QInAppTransaction::CanceledByUser

*/ CanceledByUser(1), /** *

Representing QInAppTransaction::ErrorOccurred

*/ ErrorOccurred(2); static { QtJambi_LibraryUtilities.initialize(); } private FailureReason(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull FailureReason resolve(int value) { switch (value) { case 0: return NoFailure; case 1: return CanceledByUser; case 2: return ErrorOccurred; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QInAppTransaction::TransactionStatus

*/ @QtUnlistedEnum public enum TransactionStatus implements QtEnumerator { /** *

Representing QInAppTransaction::Unknown

*/ Unknown(0), /** *

Representing QInAppTransaction::PurchaseApproved

*/ PurchaseApproved(1), /** *

Representing QInAppTransaction::PurchaseFailed

*/ PurchaseFailed(2), /** *

Representing QInAppTransaction::PurchaseRestored

*/ PurchaseRestored(3); static { QtJambi_LibraryUtilities.initialize(); } private TransactionStatus(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull TransactionStatus resolve(int value) { switch (value) { case 0: return Unknown; case 1: return PurchaseApproved; case 2: return PurchaseFailed; case 3: return PurchaseRestored; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Overloaded constructor for {@link #QInAppTransaction(io.qt.purchasing.QInAppTransaction.TransactionStatus, io.qt.purchasing.QInAppProduct, io.qt.core.QObject)} * with parent = null.

*/ protected QInAppTransaction(io.qt.purchasing.QInAppTransaction.@NonNull TransactionStatus status, io.qt.purchasing.@Nullable QInAppProduct product) { this(status, product, (io.qt.core.QObject)null); } /** *

See QInAppTransaction::QInAppTransaction(QInAppTransaction::TransactionStatus,QInAppProduct*,QObject*)

*/ protected QInAppTransaction(io.qt.purchasing.QInAppTransaction.@NonNull TransactionStatus status, io.qt.purchasing.@Nullable QInAppProduct product, io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, status, product, parent); } private native static void initialize_native(QInAppTransaction instance, io.qt.purchasing.QInAppTransaction.TransactionStatus status, io.qt.purchasing.QInAppProduct product, io.qt.core.QObject parent); /** *

Kotlin property getter. In Java use {@link #product()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.purchasing.@Nullable QInAppProduct getProduct() { return product(); } /** *

See QInAppTransaction::product()const

*/ @QtPropertyReader(name="product") @QtPropertyConstant @QtUninvokable public final io.qt.purchasing.@Nullable QInAppProduct product(){ return product_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.purchasing.QInAppProduct product_native_constfct(long __this__nativeId); /** *

Kotlin property getter. In Java use {@link #status()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.purchasing.QInAppTransaction.@NonNull TransactionStatus getStatus() { return status(); } /** *

See QInAppTransaction::status()const

*/ @QtPropertyReader(name="status") @QtPropertyConstant @QtUninvokable public final io.qt.purchasing.QInAppTransaction.@NonNull TransactionStatus status(){ return io.qt.purchasing.QInAppTransaction.TransactionStatus.resolve(status_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int status_native_constfct(long __this__nativeId); /** *

Kotlin property getter. In Java use {@link #errorString()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final java.lang.@NonNull String getErrorString() { return errorString(); } /** *

See QInAppTransaction::errorString()const

*/ @QtPropertyReader(name="errorString") @QtPropertyConstant @QtUninvokable public java.lang.@NonNull String errorString(){ return errorString_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String errorString_native_constfct(long __this__nativeId); /** *

Kotlin property getter. In Java use {@link #failureReason()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.purchasing.QInAppTransaction.@NonNull FailureReason getFailureReason() { return failureReason(); } /** *

See QInAppTransaction::failureReason()const

*/ @QtPropertyReader(name="failureReason") @QtPropertyConstant @QtUninvokable public io.qt.purchasing.QInAppTransaction.@NonNull FailureReason failureReason(){ return io.qt.purchasing.QInAppTransaction.FailureReason.resolve(failureReason_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int failureReason_native_constfct(long __this__nativeId); /** *

See QInAppTransaction::finalize()

*/ public abstract void finalizeTransaction(); private native void finalizeTransaction_native(long __this__nativeId); /** *

Kotlin property getter. In Java use {@link #orderId()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final java.lang.@NonNull String getOrderId() { return orderId(); } /** *

See QInAppTransaction::orderId()const

*/ @QtPropertyReader(name="orderId") @QtPropertyConstant @QtUninvokable public java.lang.@NonNull String orderId(){ return orderId_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String orderId_native_constfct(long __this__nativeId); /** *

See QInAppTransaction::platformProperty(QString)const

*/ public java.lang.@NonNull String platformProperty(java.lang.@NonNull String propertyName){ return platformProperty_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), propertyName); } private native java.lang.String platformProperty_native_cref_QString_constfct(long __this__nativeId, java.lang.String propertyName); /** *

Kotlin property getter. In Java use {@link #timestamp()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QDateTime getTimestamp() { return timestamp(); } /** *

See QInAppTransaction::timestamp()const

*/ @QtPropertyReader(name="timestamp") @QtPropertyConstant @QtUninvokable public io.qt.core.@NonNull QDateTime timestamp(){ return timestamp_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QDateTime timestamp_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QInAppTransaction(QPrivateConstructor p) { super(p); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy