mirror of
https://github.com/riuson/lcd-image-converter.git
synced 2026-03-04 15:24:14 +01:00
27 lines
929 B
C++
27 lines
929 B
C++
#ifndef MODEPARSERBASE_H
|
|
#define MODEPARSERBASE_H
|
|
//-----------------------------------------------------------------------------
|
|
#include <QObject>
|
|
//-----------------------------------------------------------------------------
|
|
class QCommandLineParser;
|
|
//-----------------------------------------------------------------------------
|
|
namespace CommandLine {
|
|
//-----------------------------------------------------------------------------
|
|
class ModeParserBase : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ModeParserBase(QCommandLineParser *parser, QObject *parent = 0);
|
|
|
|
virtual void fillParser() const = 0;
|
|
virtual bool collectArguments() = 0;
|
|
virtual int process() = 0;
|
|
|
|
protected:
|
|
QCommandLineParser *mParser;
|
|
};
|
|
//-----------------------------------------------------------------------------
|
|
}
|
|
//-----------------------------------------------------------------------------
|
|
#endif // MODEPARSERBASE_H
|