pub struct QCommandLineParser { /* private fields */ }Expand description
C++ class: QCommandLineParser.
Implementations§
Source§impl QCommandLineParser
impl QCommandLineParser
Sourcepub unsafe fn add_help_option(&self) -> CppBox<QCommandLineOption>
pub unsafe fn add_help_option(&self) -> CppBox<QCommandLineOption>
Calls C++ function: QCommandLineOption QCommandLineParser::addHelpOption().
Sourcepub unsafe fn add_option(
&self,
command_line_option: impl CastInto<Ref<QCommandLineOption>>,
) -> bool
pub unsafe fn add_option( &self, command_line_option: impl CastInto<Ref<QCommandLineOption>>, ) -> bool
Calls C++ function: bool QCommandLineParser::addOption(const QCommandLineOption& commandLineOption).
Sourcepub unsafe fn add_options(
&self,
options: impl CastInto<Ref<QListOfQCommandLineOption>>,
) -> bool
pub unsafe fn add_options( &self, options: impl CastInto<Ref<QListOfQCommandLineOption>>, ) -> bool
Calls C++ function: bool QCommandLineParser::addOptions(const QList<QCommandLineOption>& options).
Sourcepub unsafe fn add_positional_argument_3a(
&self,
name: impl CastInto<Ref<QString>>,
description: impl CastInto<Ref<QString>>,
syntax: impl CastInto<Ref<QString>>,
)
pub unsafe fn add_positional_argument_3a( &self, name: impl CastInto<Ref<QString>>, description: impl CastInto<Ref<QString>>, syntax: impl CastInto<Ref<QString>>, )
Calls C++ function: void QCommandLineParser::addPositionalArgument(const QString& name, const QString& description, const QString& syntax = …).
Sourcepub unsafe fn add_positional_argument_2a(
&self,
name: impl CastInto<Ref<QString>>,
description: impl CastInto<Ref<QString>>,
)
pub unsafe fn add_positional_argument_2a( &self, name: impl CastInto<Ref<QString>>, description: impl CastInto<Ref<QString>>, )
Calls C++ function: void QCommandLineParser::addPositionalArgument(const QString& name, const QString& description).
Sourcepub unsafe fn add_version_option(&self) -> CppBox<QCommandLineOption>
pub unsafe fn add_version_option(&self) -> CppBox<QCommandLineOption>
Calls C++ function: QCommandLineOption QCommandLineParser::addVersionOption().
Sourcepub unsafe fn application_description(&self) -> CppBox<QString>
pub unsafe fn application_description(&self) -> CppBox<QString>
Calls C++ function: QString QCommandLineParser::applicationDescription() const.
Sourcepub unsafe fn clear_positional_arguments(&self)
pub unsafe fn clear_positional_arguments(&self)
Calls C++ function: void QCommandLineParser::clearPositionalArguments().
Sourcepub unsafe fn error_text(&self) -> CppBox<QString>
pub unsafe fn error_text(&self) -> CppBox<QString>
Calls C++ function: QString QCommandLineParser::errorText() const.
Sourcepub unsafe fn help_text(&self) -> CppBox<QString>
pub unsafe fn help_text(&self) -> CppBox<QString>
Calls C++ function: QString QCommandLineParser::helpText() const.
Sourcepub unsafe fn is_set_q_string(&self, name: impl CastInto<Ref<QString>>) -> bool
pub unsafe fn is_set_q_string(&self, name: impl CastInto<Ref<QString>>) -> bool
Calls C++ function: bool QCommandLineParser::isSet(const QString& name) const.
Sourcepub unsafe fn is_set_q_command_line_option(
&self,
option: impl CastInto<Ref<QCommandLineOption>>,
) -> bool
pub unsafe fn is_set_q_command_line_option( &self, option: impl CastInto<Ref<QCommandLineOption>>, ) -> bool
Calls C++ function: bool QCommandLineParser::isSet(const QCommandLineOption& option) const.
Sourcepub unsafe fn new() -> CppBox<QCommandLineParser>
pub unsafe fn new() -> CppBox<QCommandLineParser>
Calls C++ function: [constructor] void QCommandLineParser::QCommandLineParser().
Sourcepub unsafe fn option_names(&self) -> CppBox<QStringList>
pub unsafe fn option_names(&self) -> CppBox<QStringList>
Calls C++ function: QStringList QCommandLineParser::optionNames() const.
Sourcepub unsafe fn parse(&self, arguments: impl CastInto<Ref<QStringList>>) -> bool
pub unsafe fn parse(&self, arguments: impl CastInto<Ref<QStringList>>) -> bool
Calls C++ function: bool QCommandLineParser::parse(const QStringList& arguments).
Sourcepub unsafe fn positional_arguments(&self) -> CppBox<QStringList>
pub unsafe fn positional_arguments(&self) -> CppBox<QStringList>
Calls C++ function: QStringList QCommandLineParser::positionalArguments() const.
Sourcepub unsafe fn process_q_string_list(
&self,
arguments: impl CastInto<Ref<QStringList>>,
)
pub unsafe fn process_q_string_list( &self, arguments: impl CastInto<Ref<QStringList>>, )
Calls C++ function: void QCommandLineParser::process(const QStringList& arguments).
Sourcepub unsafe fn process_q_core_application(
&self,
app: impl CastInto<Ref<QCoreApplication>>,
)
pub unsafe fn process_q_core_application( &self, app: impl CastInto<Ref<QCoreApplication>>, )
Calls C++ function: void QCommandLineParser::process(const QCoreApplication& app).
Sourcepub unsafe fn set_application_description(
&self,
description: impl CastInto<Ref<QString>>,
)
pub unsafe fn set_application_description( &self, description: impl CastInto<Ref<QString>>, )
Calls C++ function: void QCommandLineParser::setApplicationDescription(const QString& description).
Sourcepub unsafe fn set_options_after_positional_arguments_mode(
&self,
mode: OptionsAfterPositionalArgumentsMode,
)
pub unsafe fn set_options_after_positional_arguments_mode( &self, mode: OptionsAfterPositionalArgumentsMode, )
Calls C++ function: void QCommandLineParser::setOptionsAfterPositionalArgumentsMode(QCommandLineParser::OptionsAfterPositionalArgumentsMode mode).
Sourcepub unsafe fn set_single_dash_word_option_mode(
&self,
parsing_mode: SingleDashWordOptionMode,
)
pub unsafe fn set_single_dash_word_option_mode( &self, parsing_mode: SingleDashWordOptionMode, )
Calls C++ function: void QCommandLineParser::setSingleDashWordOptionMode(QCommandLineParser::SingleDashWordOptionMode parsingMode).
Sourcepub unsafe fn show_help_1a(&self, exit_code: c_int)
pub unsafe fn show_help_1a(&self, exit_code: c_int)
Calls C++ function: void QCommandLineParser::showHelp(int exitCode = …).
Sourcepub unsafe fn show_help_0a(&self)
pub unsafe fn show_help_0a(&self)
Calls C++ function: void QCommandLineParser::showHelp().
Sourcepub unsafe fn show_version(&self)
pub unsafe fn show_version(&self)
Calls C++ function: void QCommandLineParser::showVersion().
Sourcepub unsafe fn tr(
source_text: *const c_char,
disambiguation: *const c_char,
n: c_int,
) -> CppBox<QString>
pub unsafe fn tr( source_text: *const c_char, disambiguation: *const c_char, n: c_int, ) -> CppBox<QString>
Calls C++ function: static QString QCommandLineParser::tr(const char* sourceText, const char* disambiguation, int n).
Sourcepub unsafe fn tr_utf8(
source_text: *const c_char,
disambiguation: *const c_char,
n: c_int,
) -> CppBox<QString>
pub unsafe fn tr_utf8( source_text: *const c_char, disambiguation: *const c_char, n: c_int, ) -> CppBox<QString>
Calls C++ function: static QString QCommandLineParser::trUtf8(const char* sourceText, const char* disambiguation, int n).
Sourcepub unsafe fn unknown_option_names(&self) -> CppBox<QStringList>
pub unsafe fn unknown_option_names(&self) -> CppBox<QStringList>
Calls C++ function: QStringList QCommandLineParser::unknownOptionNames() const.
Sourcepub unsafe fn value_q_string(
&self,
name: impl CastInto<Ref<QString>>,
) -> CppBox<QString>
pub unsafe fn value_q_string( &self, name: impl CastInto<Ref<QString>>, ) -> CppBox<QString>
Calls C++ function: QString QCommandLineParser::value(const QString& name) const.
Sourcepub unsafe fn value_q_command_line_option(
&self,
option: impl CastInto<Ref<QCommandLineOption>>,
) -> CppBox<QString>
pub unsafe fn value_q_command_line_option( &self, option: impl CastInto<Ref<QCommandLineOption>>, ) -> CppBox<QString>
Calls C++ function: QString QCommandLineParser::value(const QCommandLineOption& option) const.
Sourcepub unsafe fn values_q_string(
&self,
name: impl CastInto<Ref<QString>>,
) -> CppBox<QStringList>
pub unsafe fn values_q_string( &self, name: impl CastInto<Ref<QString>>, ) -> CppBox<QStringList>
Calls C++ function: QStringList QCommandLineParser::values(const QString& name) const.
Sourcepub unsafe fn values_q_command_line_option(
&self,
option: impl CastInto<Ref<QCommandLineOption>>,
) -> CppBox<QStringList>
pub unsafe fn values_q_command_line_option( &self, option: impl CastInto<Ref<QCommandLineOption>>, ) -> CppBox<QStringList>
Calls C++ function: QStringList QCommandLineParser::values(const QCommandLineOption& option) const.