1// qcommandlineoption.sip generated by MetaSIP 2// 3// This file is part of the QtCore Python extension module. 4// 5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com> 6// 7// This file is part of PyQt5. 8// 9// This file may be used under the terms of the GNU General Public License 10// version 3.0 as published by the Free Software Foundation and appearing in 11// the file LICENSE included in the packaging of this file. Please review the 12// following information to ensure the GNU General Public License version 3.0 13// requirements will be met: http://www.gnu.org/copyleft/gpl.html. 14// 15// If you do not wish to use this file under the terms of the GPL version 3.0 16// then you may purchase a commercial license. For more information contact 17// info@riverbankcomputing.com. 18// 19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 21 22 23%If (Qt_5_2_0 -) 24 25class QCommandLineOption 26{ 27%TypeHeaderCode 28#include <qcommandlineoption.h> 29%End 30 31public: 32%If (Qt_5_4_0 -) 33 explicit QCommandLineOption(const QString &name); 34%End 35%If (Qt_5_4_0 -) 36 explicit QCommandLineOption(const QStringList &names); 37%End 38%If (Qt_5_4_0 -) 39 QCommandLineOption(const QString &name, const QString &description, const QString &valueName = QString(), const QString &defaultValue = QString()); 40%End 41%If (- Qt_5_4_0) 42 QCommandLineOption(const QString &name, const QString &description = QString(), const QString &valueName = QString(), const QString &defaultValue = QString()); 43%End 44%If (Qt_5_4_0 -) 45 QCommandLineOption(const QStringList &names, const QString &description, const QString &valueName = QString(), const QString &defaultValue = QString()); 46%End 47%If (- Qt_5_4_0) 48 QCommandLineOption(const QStringList &names, const QString &description = QString(), const QString &valueName = QString(), const QString &defaultValue = QString()); 49%End 50 QCommandLineOption(const QCommandLineOption &other); 51 ~QCommandLineOption(); 52 void swap(QCommandLineOption &other /Constrained/); 53 QStringList names() const; 54 void setValueName(const QString &name); 55 QString valueName() const; 56 void setDescription(const QString &description); 57 QString description() const; 58 void setDefaultValue(const QString &defaultValue); 59 void setDefaultValues(const QStringList &defaultValues); 60 QStringList defaultValues() const; 61%If (Qt_5_6_0 -) 62 void setHidden(bool hidden); 63%End 64%If (Qt_5_6_0 -) 65 bool isHidden() const; 66%End 67%If (Qt_5_8_0 -) 68 69 enum Flag 70 { 71 HiddenFromHelp, 72 ShortOptionStyle, 73 }; 74 75%End 76%If (Qt_5_8_0 -) 77 typedef QFlags<QCommandLineOption::Flag> Flags; 78%End 79%If (Qt_5_8_0 -) 80 QCommandLineOption::Flags flags() const; 81%End 82%If (Qt_5_8_0 -) 83 void setFlags(QCommandLineOption::Flags aflags); 84%End 85}; 86 87%End 88%If (Qt_5_8_0 -) 89QFlags<QCommandLineOption::Flag> operator|(QCommandLineOption::Flag f1, QFlags<QCommandLineOption::Flag> f2); 90%End 91