Skip to content

Commit

Permalink
Add missing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Montel committed Nov 28, 2023
1 parent 5eb4f67 commit eb07ff5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions crates/cxx-qt-lib/src/core/qcommandlineoption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,33 @@ mod ffi {
include!("cxx-qt-lib/qstringlist.h");
type QStringList = crate::QStringList;

/// Returns the default values set for this option.
#[rust_name = "default_values"]
fn defaultValues(self: &QCommandLineOption) -> QStringList;

/// Returns the description set for this option.
fn description(self: &QCommandLineOption) -> QString;

/// Returns the names set for this option.
fn names(self: &QCommandLineOption) -> QStringList;

/// Sets the default value used for this option to defaultValue.
#[rust_name = "set_default_value"]
fn setDefaultValue(self: &mut QCommandLineOption, value: &QString);

/// Sets the list of default values used for this option to defaultValues.
#[rust_name = "set_default_values"]
fn setDefaultValues(self: &mut QCommandLineOption, values: &QStringList);

/// Sets the description used for this option to description.
/// It is customary to add a "." at the end of the description.
#[rust_name = "set_description"]
fn setDescription(self: &mut QCommandLineOption, description: &QString);

/// Sets the name of the expected value, for the documentation, to valueName.
#[rust_name = "set_value_name"]
fn setValueName(self: &mut QCommandLineOption, valueName: &QString);

/// Returns the name of the expected value.
#[rust_name = "value_name"]
fn valueName(self: &QCommandLineOption) -> QString;
Expand Down

0 comments on commit eb07ff5

Please sign in to comment.