
io.qt.core.QCommandLineParser Maven / Gradle / Ivy
package io.qt.core;
/**
* Means for handling the command line options
* Java wrapper for Qt class QCommandLineParser
*/
public class QCommandLineParser extends io.qt.QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QCommandLineParser::OptionsAfterPositionalArgumentsMode
*/
public enum OptionsAfterPositionalArgumentsMode implements io.qt.QtEnumerator {
ParseAsOptions(0),
ParseAsPositionalArguments(1);
private OptionsAfterPositionalArgumentsMode(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 OptionsAfterPositionalArgumentsMode resolve(int value) {
switch (value) {
case 0: return ParseAsOptions;
case 1: return ParseAsPositionalArguments;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QCommandLineParser::SingleDashWordOptionMode
*/
public enum SingleDashWordOptionMode implements io.qt.QtEnumerator {
ParseAsCompactedShortOptions(0),
ParseAsLongOptions(1);
private SingleDashWordOptionMode(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 SingleDashWordOptionMode resolve(int value) {
switch (value) {
case 0: return ParseAsCompactedShortOptions;
case 1: return ParseAsLongOptions;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QCommandLineParser::QCommandLineParser()
*/
public QCommandLineParser(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QCommandLineParser instance);
/**
* See QCommandLineParser::addHelpOption()
*/
@io.qt.QtUninvokable
public final io.qt.core.QCommandLineOption addHelpOption(){
return addHelpOption_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QCommandLineOption addHelpOption_native(long __this__nativeId);
/**
* See QCommandLineParser::addOption(QCommandLineOption)
*/
@io.qt.QtUninvokable
public final boolean addOption(io.qt.core.QCommandLineOption commandLineOption){
return addOption_native_cref_QCommandLineOption(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(commandLineOption));
}
@io.qt.QtUninvokable
private native boolean addOption_native_cref_QCommandLineOption(long __this__nativeId, long commandLineOption);
/**
* See QCommandLineParser::addOptions(QList<QCommandLineOption>)
*/
@io.qt.QtUninvokable
public final boolean addOptions(java.util.Collection options){
return addOptions_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), options);
}
@io.qt.QtUninvokable
private native boolean addOptions_native_cref_QList(long __this__nativeId, java.util.Collection options);
/**
* Overloaded function for {@link #addPositionalArgument(java.lang.String, java.lang.String, java.lang.String)}
* with syntax = ""
.
*/
@io.qt.QtUninvokable
public final void addPositionalArgument(java.lang.String name, java.lang.String description) {
addPositionalArgument(name, description, "");
}
/**
* See QCommandLineParser::addPositionalArgument(QString,QString,QString)
*/
@io.qt.QtUninvokable
public final void addPositionalArgument(java.lang.String name, java.lang.String description, java.lang.String syntax){
addPositionalArgument_native_cref_QString_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name, description, syntax);
}
@io.qt.QtUninvokable
private native void addPositionalArgument_native_cref_QString_cref_QString_cref_QString(long __this__nativeId, java.lang.String name, java.lang.String description, java.lang.String syntax);
/**
* See QCommandLineParser::addVersionOption()
*/
@io.qt.QtUninvokable
public final io.qt.core.QCommandLineOption addVersionOption(){
return addVersionOption_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QCommandLineOption addVersionOption_native(long __this__nativeId);
/**
* See QCommandLineParser::applicationDescription()const
*/
@io.qt.QtUninvokable
public final java.lang.String applicationDescription(){
return applicationDescription_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String applicationDescription_native_constfct(long __this__nativeId);
/**
* See QCommandLineParser::clearPositionalArguments()
*/
@io.qt.QtUninvokable
public final void clearPositionalArguments(){
clearPositionalArguments_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void clearPositionalArguments_native(long __this__nativeId);
/**
* See QCommandLineParser::errorText()const
*/
@io.qt.QtUninvokable
public final java.lang.String errorText(){
return errorText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String errorText_native_constfct(long __this__nativeId);
/**
* See QCommandLineParser::helpText()const
*/
@io.qt.QtUninvokable
public final java.lang.String helpText(){
return helpText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String helpText_native_constfct(long __this__nativeId);
/**
* See QCommandLineParser::isSet(QCommandLineOption)const
*/
@io.qt.QtUninvokable
public final boolean isSet(io.qt.core.QCommandLineOption option){
return isSet_native_cref_QCommandLineOption_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option));
}
@io.qt.QtUninvokable
private native boolean isSet_native_cref_QCommandLineOption_constfct(long __this__nativeId, long option);
/**
* See QCommandLineParser::isSet(QString)const
*/
@io.qt.QtUninvokable
public final boolean isSet(java.lang.String name){
return isSet_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@io.qt.QtUninvokable
private native boolean isSet_native_cref_QString_constfct(long __this__nativeId, java.lang.String name);
/**
* See QCommandLineParser::optionNames()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList optionNames(){
return optionNames_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList optionNames_native_constfct(long __this__nativeId);
/**
* See QCommandLineParser::parse(QStringList)
*/
@io.qt.QtUninvokable
public final boolean parse(java.util.Collection arguments){
return parse_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), arguments);
}
@io.qt.QtUninvokable
private native boolean parse_native_cref_QStringList(long __this__nativeId, java.util.Collection arguments);
/**
* See QCommandLineParser::positionalArguments()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList positionalArguments(){
return positionalArguments_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList positionalArguments_native_constfct(long __this__nativeId);
/**
* See QCommandLineParser::process(QCoreApplication)
*/
@io.qt.QtUninvokable
public final void process(io.qt.core.QCoreApplication app){
process_native_cref_QCoreApplication(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(app));
}
@io.qt.QtUninvokable
private native void process_native_cref_QCoreApplication(long __this__nativeId, long app);
/**
* See QCommandLineParser::process(QStringList)
*/
@io.qt.QtUninvokable
public final void process(java.util.Collection arguments){
process_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), arguments);
}
@io.qt.QtUninvokable
private native void process_native_cref_QStringList(long __this__nativeId, java.util.Collection arguments);
/**
* See QCommandLineParser::setApplicationDescription(QString)
*/
@io.qt.QtUninvokable
public final void setApplicationDescription(java.lang.String description){
setApplicationDescription_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), description);
}
@io.qt.QtUninvokable
private native void setApplicationDescription_native_cref_QString(long __this__nativeId, java.lang.String description);
/**
*
*/
@io.qt.QtUninvokable
public final void setOptionsAfterPositionalArgumentsMode(io.qt.core.QCommandLineParser.OptionsAfterPositionalArgumentsMode mode){
setOptionsAfterPositionalArgumentsMode_native_QCommandLineParser_OptionsAfterPositionalArgumentsMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@io.qt.QtUninvokable
private native void setOptionsAfterPositionalArgumentsMode_native_QCommandLineParser_OptionsAfterPositionalArgumentsMode(long __this__nativeId, int mode);
/**
* See QCommandLineParser::setSingleDashWordOptionMode(QCommandLineParser::SingleDashWordOptionMode)
*/
@io.qt.QtUninvokable
public final void setSingleDashWordOptionMode(io.qt.core.QCommandLineParser.SingleDashWordOptionMode parsingMode){
setSingleDashWordOptionMode_native_QCommandLineParser_SingleDashWordOptionMode(QtJambi_LibraryUtilities.internal.nativeId(this), parsingMode.value());
}
@io.qt.QtUninvokable
private native void setSingleDashWordOptionMode_native_QCommandLineParser_SingleDashWordOptionMode(long __this__nativeId, int parsingMode);
/**
* Overloaded function for {@link #showHelp(int)}
* with exitCode = 0
.
*/
@io.qt.QtUninvokable
public final void showHelp() {
showHelp((int)0);
}
/**
* See QCommandLineParser::showHelp(int)
*/
@io.qt.QtUninvokable
public final void showHelp(int exitCode){
showHelp_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), exitCode);
}
@io.qt.QtUninvokable
private native void showHelp_native_int(long __this__nativeId, int exitCode);
/**
* See QCommandLineParser::showVersion()
*/
@io.qt.QtUninvokable
public final void showVersion(){
showVersion_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void showVersion_native(long __this__nativeId);
/**
* See QCommandLineParser::unknownOptionNames()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList unknownOptionNames(){
return unknownOptionNames_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList unknownOptionNames_native_constfct(long __this__nativeId);
/**
* See QCommandLineParser::value(QCommandLineOption)const
*/
@io.qt.QtUninvokable
public final java.lang.String value(io.qt.core.QCommandLineOption option){
return value_native_cref_QCommandLineOption_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option));
}
@io.qt.QtUninvokable
private native java.lang.String value_native_cref_QCommandLineOption_constfct(long __this__nativeId, long option);
/**
* See QCommandLineParser::value(QString)const
*/
@io.qt.QtUninvokable
public final java.lang.String value(java.lang.String name){
return value_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@io.qt.QtUninvokable
private native java.lang.String value_native_cref_QString_constfct(long __this__nativeId, java.lang.String name);
/**
* See QCommandLineParser::values(QCommandLineOption)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList values(io.qt.core.QCommandLineOption option){
return values_native_cref_QCommandLineOption_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList values_native_cref_QCommandLineOption_constfct(long __this__nativeId, long option);
/**
* See QCommandLineParser::values(QString)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList values(java.lang.String name){
return values_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList values_native_cref_QString_constfct(long __this__nativeId, java.lang.String name);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QCommandLineParser(QPrivateConstructor p) { super(p); }
}