summaryrefslogtreecommitdiff
path: root/CliParser.h
diff options
context:
space:
mode:
Diffstat (limited to 'CliParser.h')
-rw-r--r--CliParser.h46
1 files changed, 24 insertions, 22 deletions
diff --git a/CliParser.h b/CliParser.h
index 360f30e..a2f3617 100644
--- a/CliParser.h
+++ b/CliParser.h
@@ -1,8 +1,6 @@
/** \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
@@ -18,30 +16,34 @@
/** \brief class to parse all command line options */
class CliParser : public QObject
{
- Q_OBJECT
+ Q_OBJECT
public:
- explicit CliParser(QObject *parent = 0);
+ 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,const bool &onlyCheck);
+ /** \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,const bool &onlyCheck);
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);
- /** new transfer list pased by the CLI */
- void newTransferList(QString engine,QString mode,QString file);
+ /** new copy without destination have been pased by the CLI */
+ void newCopyWithoutDestination(QStringList sources) const;
+ /** new copy with destination have been pased by the CLI */
+ void newCopy(QStringList sources,QString destination) const;
+ /** new move without destination have been pased by the CLI */
+ void newMoveWithoutDestination(QStringList sources) const;
+ /** new move with destination have been pased by the CLI */
+ void newMove(QStringList sources,QString destination) const;
+ /** new transfer list pased by the CLI */
+ void newTransferList(QString engine,QString mode,QString file) const;
+
+ void tryLoadPlugin(const QString &file) const;
+ /// \brief Show the help option
+ void showOptions() const;
private:
- /** \brief show the help
- *\param incorrectArguments if the help is call because the arguments are wrong */
- void showHelp(const bool &incorrectArguments=true);
+ /** \brief show the help
+ *\param incorrectArguments if the help is call because the arguments are wrong */
+ void showHelp(const bool &incorrectArguments=true);
};
#endif // CLIPARSER_H