22 ShortOptionStyle = 0x2,
23 IgnoreOptionsAfter = 0x4,
25 Q_DECLARE_FLAGS(Flags, Flag)
27 explicit QCommandLineOption(
const QString &name);
28 explicit QCommandLineOption(
const QStringList &names);
29 QCommandLineOption(
const QString &name,
const QString &description,
30 const QString &valueName = QString(),
31 const QString &defaultValue = QString());
32 QCommandLineOption(
const QStringList &names,
const QString &description,
33 const QString &valueName = QString(),
34 const QString &defaultValue = QString());
35 QCommandLineOption(
const QCommandLineOption &other);
37 ~QCommandLineOption();
39 QCommandLineOption &operator=(
const QCommandLineOption &other);
40 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QCommandLineOption)
42 void swap(QCommandLineOption &other)
noexcept
45 QStringList names()
const;
47 void setValueName(
const QString &name);
48 QString valueName()
const;
50 void setDescription(
const QString &description);
51 QString description()
const;
53 void setDefaultValue(
const QString &defaultValue);
54 void setDefaultValues(
const QStringList &defaultValues);
55 QStringList defaultValues()
const;
58 void setFlags(Flags aflags);
61 QSharedDataPointer<QCommandLineOptionPrivate> d;