diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2013-01-04 14:50:19 +0100 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2013-01-04 14:50:19 +0100 |
commit | 8f9f382e1c97cab2e72e97495650c73ac4b97314 (patch) | |
tree | 78510a0d81368c09b56f444fb19bb132c8bc3009 /CliParser.h |
Imported Upstream version 0.3.0.5
Diffstat (limited to 'CliParser.h')
-rw-r--r-- | CliParser.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/CliParser.h b/CliParser.h new file mode 100644 index 0000000..92276c0 --- /dev/null +++ b/CliParser.h @@ -0,0 +1,40 @@ +/** \file CliParser.h +\brief To group into one class, the CLI parsing +\author alpha_one_x86 +\version 0.3 +\date 2010 +\licence GPL3, see the file COPYING */ + +#ifndef CLIPARSER_H +#define CLIPARSER_H + +#include <QObject> +#include <QMessageBox> +#include <QCoreApplication> + +#include "Environment.h" + +/** \brief class to parse all command line options */ +class CliParser : public QObject +{ + Q_OBJECT +public: + explicit CliParser(QObject *parent = 0); +public slots: + /** \brief method to parse the ultracopier arguments + \param ultracopierArguments the argument list + \param external true if the arguments come from other instance of ultracopier + */ + void cli(const QStringList &ultracopierArguments,const bool &external); +signals: + /** new copy without destination have been pased by the CLI */ + void newCopy(QStringList sources); + /** new copy with destination have been pased by the CLI */ + void newCopy(QStringList sources,QString destination); + /** new move without destination have been pased by the CLI */ + void newMove(QStringList sources); + /** new move with destination have been pased by the CLI */ + void newMove(QStringList sources,QString destination); +}; + +#endif // CLIPARSER_H |