io.qt.macextras.QMacPasteboardMime Maven / Gradle / Ivy
Show all versions of qtjambi-macextras Show documentation
package io.qt.macextras;
import io.qt.*;
/**
* Converts between a MIME type and a Uniform Type Identifier (UTI) format
* Java wrapper for Qt class QMacPasteboardMime
* @since This class was introduced in Qt 5.2.
*/
public abstract class QMacPasteboardMime extends QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
@NativeAccess
private static final class ConcreteWrapper extends QMacPasteboardMime {
@NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@QtUninvokable
public boolean canConvert(java.lang.@NonNull String mime, java.lang.@NonNull String flav){
return canConvert_native_cref_QString_QString(QtJambi_LibraryUtilities.internal.nativeId(this), mime, flav);
}
@QtUninvokable
private native boolean canConvert_native_cref_QString_QString(long __this__nativeId, java.lang.String mime, java.lang.String flav);
@Override
@QtUninvokable
public java.util.@NonNull List convertFromMime(java.lang.@NonNull String mime, java.lang.Object data, java.lang.@NonNull String flav){
return convertFromMime_native_cref_QString_QVariant_QString(QtJambi_LibraryUtilities.internal.nativeId(this), mime, data, flav);
}
@QtUninvokable
private native java.util.List convertFromMime_native_cref_QString_QVariant_QString(long __this__nativeId, java.lang.String mime, java.lang.Object data, java.lang.String flav);
@Override
@QtUninvokable
public java.lang.Object convertToMime(java.lang.@NonNull String mime, java.util.@NonNull Collection extends io.qt.core.@NonNull QByteArray> data, java.lang.@NonNull String flav){
return convertToMime_native_cref_QString_QList_QString(QtJambi_LibraryUtilities.internal.nativeId(this), mime, data, flav);
}
@QtUninvokable
private native java.lang.Object convertToMime_native_cref_QString_QList_QString(long __this__nativeId, java.lang.String mime, java.util.Collection extends io.qt.core.QByteArray> data, java.lang.String flav);
@Override
@QtUninvokable
public java.lang.@NonNull String convertorName(){
return convertorName_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String convertorName_native(long __this__nativeId);
@Override
@QtUninvokable
public java.lang.@NonNull String flavorFor(java.lang.@NonNull String mime){
return flavorFor_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), mime);
}
@QtUninvokable
private native java.lang.String flavorFor_native_cref_QString(long __this__nativeId, java.lang.String mime);
@Override
@QtUninvokable
public java.lang.@NonNull String mimeFor(java.lang.@NonNull String flav){
return mimeFor_native_QString(QtJambi_LibraryUtilities.internal.nativeId(this), flav);
}
@QtUninvokable
private native java.lang.String mimeFor_native_QString(long __this__nativeId, java.lang.String flav);
}
/**
* Java wrapper for Qt enum QMacPasteboardMime::QMacPasteboardMimeType
*/
public enum QMacPasteboardMimeType implements QtEnumerator {
/**
* Representing QMacPasteboardMime:: MIME_DND
*/
MIME_DND(1),
/**
* Representing QMacPasteboardMime:: MIME_CLIP
*/
MIME_CLIP(2),
/**
* Representing QMacPasteboardMime:: MIME_QT_CONVERTOR
*/
MIME_QT_CONVERTOR(4),
/**
* Representing QMacPasteboardMime:: MIME_QT3_CONVERTOR
*/
MIME_QT3_CONVERTOR(8),
/**
* Representing QMacPasteboardMime:: MIME_ALL
*/
MIME_ALL(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private QMacPasteboardMimeType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull QMacPasteboardMimeType resolve(int value) {
switch (value) {
case 1: return MIME_DND;
case 2: return MIME_CLIP;
case 4: return MIME_QT_CONVERTOR;
case 8: return MIME_QT3_CONVERTOR;
case 3: return MIME_ALL;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QMacPasteboardMime:: QMacPasteboardMime(char)
* @param arg__1
*/
public QMacPasteboardMime(byte arg__1){
super((QPrivateConstructor)null);
initialize_native(this, arg__1);
}
private native static void initialize_native(QMacPasteboardMime instance, byte arg__1);
/**
* See QMacPasteboardMime:: canConvert(QString, QString)
* @param mime
* @param flav
* @return
*/
@QtUninvokable
public abstract boolean canConvert(java.lang.@NonNull String mime, java.lang.@NonNull String flav);
@QtUninvokable
private native boolean canConvert_native_cref_QString_QString(long __this__nativeId, java.lang.String mime, java.lang.String flav);
/**
* See QMacPasteboardMime:: convertFromMime(QString, QVariant, QString)
* @param mime
* @param data
* @param flav
* @return
*/
@QtUninvokable
public abstract java.util.@NonNull List convertFromMime(java.lang.@NonNull String mime, java.lang.Object data, java.lang.@NonNull String flav);
@QtUninvokable
private native java.util.List convertFromMime_native_cref_QString_QVariant_QString(long __this__nativeId, java.lang.String mime, java.lang.Object data, java.lang.String flav);
/**
* See QMacPasteboardMime:: convertToMime(QString, QList<QByteArray>, QString)
* @param mime
* @param data
* @param flav
* @return
*/
@QtUninvokable
public abstract java.lang.Object convertToMime(java.lang.@NonNull String mime, java.util.@NonNull Collection extends io.qt.core.@NonNull QByteArray> data, java.lang.@NonNull String flav);
@QtUninvokable
private native java.lang.Object convertToMime_native_cref_QString_QList_QString(long __this__nativeId, java.lang.String mime, java.util.Collection extends io.qt.core.QByteArray> data, java.lang.String flav);
/**
* See QMacPasteboardMime:: convertorName()
* @return
*/
@QtUninvokable
public abstract java.lang.@NonNull String convertorName();
@QtUninvokable
private native java.lang.String convertorName_native(long __this__nativeId);
/**
* See QMacPasteboardMime:: count(QMimeData*)
* @param mimeData
* @return
*/
@QtUninvokable
public int count(io.qt.core.@Nullable QMimeData mimeData){
return count_native_QMimeData_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(mimeData));
}
@QtUninvokable
private native int count_native_QMimeData_ptr(long __this__nativeId, long mimeData);
/**
* See QMacPasteboardMime:: flavorFor(QString)
* @param mime
* @return
*/
@QtUninvokable
public abstract java.lang.@NonNull String flavorFor(java.lang.@NonNull String mime);
@QtUninvokable
private native java.lang.String flavorFor_native_cref_QString(long __this__nativeId, java.lang.String mime);
/**
* See QMacPasteboardMime:: mimeFor(QString)
* @param flav
* @return
*/
@QtUninvokable
public abstract java.lang.@NonNull String mimeFor(java.lang.@NonNull String flav);
@QtUninvokable
private native java.lang.String mimeFor_native_QString(long __this__nativeId, java.lang.String flav);
/**
* See qRegisterDraggedTypes(QStringList)
* @param types
*/
public native static void qRegisterDraggedTypes(java.util.@NonNull Collection types);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QMacPasteboardMime(QPrivateConstructor p) { super(p); }
}