mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	- Build problems:
    - Qt 5.13 obsoleted some calls that were used in our Qt library.
    - The PhilipsHueLight and PhilipsHueBridge classes did not use the private logger class
- Undo changes:
    - In Commit e6c2e7e, I made changes that were not covered. An apology goes to @b1rdhous3
Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
		
	
		
			
				
	
	
		
			42 lines
		
	
	
		
			923 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			923 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <QCommandLineOption>
 | |
| #include <QCommandLineParser>
 | |
| 
 | |
| namespace commandline
 | |
| {
 | |
| 
 | |
| class Parser;
 | |
| 
 | |
| /* Note, this class and all it's derivatives store the validated results for caching. This means that unlike the
 | |
|  * regular QCommandLineOption it is _not_ idempotent! */
 | |
| class Option: public QCommandLineOption
 | |
| {
 | |
| public:
 | |
| 	Option(const QString &name,
 | |
| 		  const QString &description = QString(),
 | |
| 		  const QString &valueName = QString(),
 | |
| 		  const QString &defaultValue = QString()
 | |
| 	);
 | |
| 
 | |
| 	Option(const QStringList &names,
 | |
| 		   const QString &description = QString(),
 | |
| 		   const QString &valueName = QString(),
 | |
| 		   const QString &defaultValue = QString()
 | |
| 	);
 | |
| 
 | |
| 	Option(const QCommandLineOption &other);
 | |
| 
 | |
| 	virtual bool validate(Parser &parser, QString &value);
 | |
| 	QString name();
 | |
|     QString getError();
 | |
|     QString value(Parser &parser);
 | |
| 	const char* getCString(Parser &parser);
 | |
| 
 | |
| protected:
 | |
| 	QString _error;
 | |
| };
 | |
| 
 | |
| }
 | |
| 
 |