io.qt.positioning.QGeoPositionInfo Maven / Gradle / Ivy
Show all versions of qtjambi-positioning Show documentation
package io.qt.positioning;
import io.qt.*;
/**
* Contains information gathered on a global position, direction and velocity at a particular point in time
* Java wrapper for Qt class QGeoPositionInfo
*/
public class QGeoPositionInfo extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QGeoPositionInfo::Attribute
*/
public enum Attribute implements QtEnumerator {
/**
* Representing QGeoPositionInfo:: Direction
*/
Direction(0),
/**
* Representing QGeoPositionInfo:: GroundSpeed
*/
GroundSpeed(1),
/**
* Representing QGeoPositionInfo:: VerticalSpeed
*/
VerticalSpeed(2),
/**
* Representing QGeoPositionInfo:: MagneticVariation
*/
MagneticVariation(3),
/**
* Representing QGeoPositionInfo:: HorizontalAccuracy
*/
HorizontalAccuracy(4),
/**
* Representing QGeoPositionInfo:: VerticalAccuracy
*/
VerticalAccuracy(5),
/**
* Representing QGeoPositionInfo:: DirectionAccuracy
*/
DirectionAccuracy(6);
static {
QtJambi_LibraryUtilities.initialize();
}
private Attribute(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 Attribute resolve(int value) {
switch (value) {
case 0: return Direction;
case 1: return GroundSpeed;
case 2: return VerticalSpeed;
case 3: return MagneticVariation;
case 4: return HorizontalAccuracy;
case 5: return VerticalAccuracy;
case 6: return DirectionAccuracy;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QGeoPositionInfo:: QGeoPositionInfo()
*/
public QGeoPositionInfo(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QGeoPositionInfo instance);
/**
* See QGeoPositionInfo:: QGeoPositionInfo(QGeoCoordinate, QDateTime)
*/
public QGeoPositionInfo(io.qt.positioning.@NonNull QGeoCoordinate coordinate, io.qt.core.@NonNull QDateTime updateTime){
super((QPrivateConstructor)null);
initialize_native(this, coordinate, updateTime);
}
private native static void initialize_native(QGeoPositionInfo instance, io.qt.positioning.QGeoCoordinate coordinate, io.qt.core.QDateTime updateTime);
/**
* See QGeoPositionInfo:: QGeoPositionInfo(QGeoPositionInfo)
*/
public QGeoPositionInfo(io.qt.positioning.@NonNull QGeoPositionInfo other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QGeoPositionInfo instance, io.qt.positioning.QGeoPositionInfo other);
/**
* See QGeoPositionInfo:: attribute(QGeoPositionInfo::Attribute)const
*/
@QtUninvokable
public final double attribute(io.qt.positioning.QGeoPositionInfo.@NonNull Attribute attribute){
return attribute_native_QGeoPositionInfo_Attribute_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), attribute.value());
}
@QtUninvokable
private native double attribute_native_QGeoPositionInfo_Attribute_constfct(long __this__nativeId, int attribute);
/**
* See QGeoPositionInfo:: coordinate()const
*/
@QtUninvokable
public final io.qt.positioning.@NonNull QGeoCoordinate coordinate(){
return coordinate_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.positioning.QGeoCoordinate coordinate_native_constfct(long __this__nativeId);
/**
* See QGeoPositionInfo:: detach()
*/
@QtUninvokable
public final void detach(){
detach_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void detach_native(long __this__nativeId);
/**
* See QGeoPositionInfo:: hasAttribute(QGeoPositionInfo::Attribute)const
*/
@QtUninvokable
public final boolean hasAttribute(io.qt.positioning.QGeoPositionInfo.@NonNull Attribute attribute){
return hasAttribute_native_QGeoPositionInfo_Attribute_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), attribute.value());
}
@QtUninvokable
private native boolean hasAttribute_native_QGeoPositionInfo_Attribute_constfct(long __this__nativeId, int attribute);
/**
* See QGeoPositionInfo:: isValid()const
*/
@QtUninvokable
public final boolean isValid(){
return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isValid_native_constfct(long __this__nativeId);
/**
* See operator<<(QDataStream&, QGeoPositionInfo)
*/
@QtUninvokable
public void writeTo(io.qt.core.@StrictNonNull QDataStream stream){
java.util.Objects.requireNonNull(stream, "Argument 'stream': null not expected.");
writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(stream));
}
@QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long stream);
/**
* See QGeoPositionInfo:: operator=(QGeoPositionInfo)
*/
@QtUninvokable
public final void assign(io.qt.positioning.@NonNull QGeoPositionInfo other){
assign_native_cref_QGeoPositionInfo(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QGeoPositionInfo(long __this__nativeId, long other);
/**
* See operator==(QGeoPositionInfo, QGeoPositionInfo)
*/
@QtUninvokable
public final boolean equals(io.qt.positioning.@NonNull QGeoPositionInfo rhs){
return equals_native_cref_QGeoPositionInfo(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs));
}
@QtUninvokable
private native boolean equals_native_cref_QGeoPositionInfo(long __this__nativeId, long rhs);
/**
* See operator>>(QDataStream&, QGeoPositionInfo&)
*/
@QtUninvokable
public void readFrom(io.qt.core.@StrictNonNull QDataStream stream){
java.util.Objects.requireNonNull(stream, "Argument 'stream': null not expected.");
readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(stream));
}
@QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long stream);
/**
* See QGeoPositionInfo:: removeAttribute(QGeoPositionInfo::Attribute)
*/
@QtUninvokable
public final void removeAttribute(io.qt.positioning.QGeoPositionInfo.@NonNull Attribute attribute){
removeAttribute_native_QGeoPositionInfo_Attribute(QtJambi_LibraryUtilities.internal.nativeId(this), attribute.value());
}
@QtUninvokable
private native void removeAttribute_native_QGeoPositionInfo_Attribute(long __this__nativeId, int attribute);
/**
* See QGeoPositionInfo:: setAttribute(QGeoPositionInfo::Attribute, qreal)
*/
@QtUninvokable
public final void setAttribute(io.qt.positioning.QGeoPositionInfo.@NonNull Attribute attribute, double value){
setAttribute_native_QGeoPositionInfo_Attribute_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), attribute.value(), value);
}
@QtUninvokable
private native void setAttribute_native_QGeoPositionInfo_Attribute_qreal(long __this__nativeId, int attribute, double value);
/**
* See QGeoPositionInfo:: setCoordinate(QGeoCoordinate)
*/
@QtUninvokable
public final void setCoordinate(io.qt.positioning.@NonNull QGeoCoordinate coordinate){
setCoordinate_native_cref_QGeoCoordinate(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(coordinate));
}
@QtUninvokable
private native void setCoordinate_native_cref_QGeoCoordinate(long __this__nativeId, long coordinate);
/**
* See QGeoPositionInfo:: setTimestamp(QDateTime)
*/
@QtUninvokable
public final void setTimestamp(io.qt.core.@NonNull QDateTime timestamp){
setTimestamp_native_cref_QDateTime(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(timestamp));
}
@QtUninvokable
private native void setTimestamp_native_cref_QDateTime(long __this__nativeId, long timestamp);
/**
* See QGeoPositionInfo:: swap(QGeoPositionInfo&)
*/
@QtUninvokable
public final void swap(io.qt.positioning.@StrictNonNull QGeoPositionInfo other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QGeoPositionInfo(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QGeoPositionInfo(long __this__nativeId, long other);
/**
* See QGeoPositionInfo:: timestamp()const
*/
@QtUninvokable
public final 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 QGeoPositionInfo(QPrivateConstructor p) { super(p); }
/**
* See operator==(QGeoPositionInfo, QGeoPositionInfo)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.positioning.QGeoPositionInfo) {
return equals((io.qt.positioning.QGeoPositionInfo) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QGeoPositionInfo)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* See operator<<(QDebug, QGeoPositionInfo)
*/
@QtUninvokable
@Override
public @NonNull String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private static native String toString_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
*/
@QtUninvokable
@Override
public QGeoPositionInfo clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QGeoPositionInfo clone_native(long __this_nativeId);
}