mirror of
https://github.com/riuson/lcd-image-converter.git
synced 2026-03-05 07:44:14 +01:00
33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
#ifndef CMDLINE_H
|
|
#define CMDLINE_H
|
|
//-----------------------------------------------------------------------------
|
|
#include <QObject>
|
|
//-----------------------------------------------------------------------------
|
|
class QString;
|
|
class QStringList;
|
|
class QCommandLineParser;
|
|
//-----------------------------------------------------------------------------
|
|
namespace CommandLine {
|
|
//-----------------------------------------------------------------------------
|
|
class ModeParserBase;
|
|
//-----------------------------------------------------------------------------
|
|
class CmdLine : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CmdLine(const QStringList &arguments, QObject *parent = 0);
|
|
virtual ~CmdLine();
|
|
|
|
bool needProcess() const;
|
|
int process();
|
|
private:
|
|
QCommandLineParser *mParser;
|
|
const QStringList *mArguments;
|
|
|
|
CommandLine::ModeParserBase *createMode(const QString &name, QCommandLineParser *parser);
|
|
};
|
|
//-----------------------------------------------------------------------------
|
|
}
|
|
//-----------------------------------------------------------------------------
|
|
#endif // CMDLINE_H
|