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

io.qt.core.QSaveFile Maven / Gradle / Ivy

The newest version!
package io.qt.core;


/**
 * 

Interface for safely writing to files

*

Java wrapper for Qt class QSaveFile

*/ public class QSaveFile extends io.qt.core.QFileDevice { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSaveFile.class); /** *

Overloaded constructor for {@link #QSaveFile(io.qt.core.QObject)} * with parent = null.

*/ public QSaveFile() { this((io.qt.core.QObject)null); } /** *

See QSaveFile::QSaveFile(QObject*)

*/ public QSaveFile(io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QSaveFile instance, io.qt.core.QObject parent); /** *

See QSaveFile::QSaveFile(QString)

*/ public QSaveFile(java.lang.String name){ super((QPrivateConstructor)null); initialize_native(this, name); } private native static void initialize_native(QSaveFile instance, java.lang.String name); /** *

See QSaveFile::QSaveFile(QString,QObject*)

*/ public QSaveFile(java.lang.String name, io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, name, parent); } private native static void initialize_native(QSaveFile instance, java.lang.String name, io.qt.core.QObject parent); /** *

See QSaveFile::cancelWriting()

*/ @io.qt.QtUninvokable public final void cancelWriting(){ cancelWriting_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native void cancelWriting_native(long __this__nativeId); /** *

See QIODevice::close()

*/ @Deprecated @io.qt.QtUninvokable public final void close() throws io.qt.QNoImplementationException { close_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @Deprecated private static void close_native(long __this__nativeId) throws io.qt.QNoImplementationException { throw new io.qt.QNoImplementationException(); } /** *

See QSaveFile::commit()

*/ @io.qt.QtUninvokable public final boolean commit(){ return commit_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean commit_native(long __this__nativeId); /** *

See QSaveFile::directWriteFallback()const

*/ @io.qt.QtUninvokable public final boolean directWriteFallback(){ return directWriteFallback_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean directWriteFallback_native_constfct(long __this__nativeId); /** *

See QSaveFile::setDirectWriteFallback(bool)

*/ @io.qt.QtUninvokable public final void setDirectWriteFallback(boolean enabled){ setDirectWriteFallback_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled); } @io.qt.QtUninvokable private native void setDirectWriteFallback_native_bool(long __this__nativeId, boolean enabled); /** *

See QSaveFile::setFileName(QString)

*/ @io.qt.QtUninvokable public final void setFileName(java.lang.String name){ setFileName_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name); } @io.qt.QtUninvokable private native void setFileName_native_cref_QString(long __this__nativeId, java.lang.String name); /** *

See QFileDevice::fileName()const

*/ @io.qt.QtUninvokable public java.lang.String fileName(){ return fileName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String fileName_native_constfct(long __this__nativeId); /** *

See QIODevice::open(OpenMode)

*/ @io.qt.QtUninvokable public boolean open(io.qt.core.QIODeviceBase.OpenMode flags){ return open_native_QFlags_QIODeviceBase_OpenModeFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), flags.value()); } @io.qt.QtUninvokable private native boolean open_native_QFlags_QIODeviceBase_OpenModeFlag_(long __this__nativeId, int flags); /** *

See QIODevice::writeData(const char*,qint64)

*/ @io.qt.QtUninvokable protected int writeData(byte[] data){ return writeData_native_const_char_ptr_long_long(QtJambi_LibraryUtilities.internal.nativeId(this), data); } @io.qt.QtUninvokable private native int writeData_native_const_char_ptr_long_long(long __this__nativeId, byte[] data); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QSaveFile(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. */ @io.qt.NativeAccess protected QSaveFile(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QSaveFile instance, QDeclarativeConstructor constructor); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy