diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2018-02-24 00:13:45 +0000 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2018-02-24 00:13:46 +0000 |
commit | 0fa6fb5a53789434e6ef57af39ab9024b7ec7d50 (patch) | |
tree | 9854613566cca815292f6fcad8e4d678afa30a9a /CliParser.h | |
parent | 2124f782c35cd832460d070186eaf72d935c1bdb (diff) | |
parent | b00b0c864574c3842effe1705b66066fa228f950 (diff) |
merge patched into master
Diffstat (limited to 'CliParser.h')
-rw-r--r-- | CliParser.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/CliParser.h b/CliParser.h index a2f3617..edcf115 100644 --- a/CliParser.h +++ b/CliParser.h @@ -13,37 +13,43 @@ #include "Environment.h" +class Core; /** \brief class to parse all command line options */ class CliParser : public QObject { Q_OBJECT public: - explicit CliParser(QObject *parent = 0); + explicit CliParser(/*Core *core,*/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); + void cli(const std::vector<std::string> &ultracopierArguments,const bool &external,const bool &onlyCheck); signals: /** new copy without destination have been pased by the CLI */ - void newCopyWithoutDestination(QStringList sources) const; + void newCopyWithoutDestination(std::vector<std::string> sources) const; /** new copy with destination have been pased by the CLI */ - void newCopy(QStringList sources,QString destination) const; + void newCopy(std::vector<std::string> sources,std::string destination) const; /** new move without destination have been pased by the CLI */ - void newMoveWithoutDestination(QStringList sources) const; + void newMoveWithoutDestination(std::vector<std::string> sources) const; /** new move with destination have been pased by the CLI */ - void newMove(QStringList sources,QString destination) const; + void newMove(std::vector<std::string> sources,std::string destination) const; /** new transfer list pased by the CLI */ - void newTransferList(QString engine,QString mode,QString file) const; + void newTransferList(std::string engine,std::string mode,std::string file) const; - void tryLoadPlugin(const QString &file) const; + void tryLoadPlugin(const std::string &file) const; /// \brief Show the help option void showOptions() const; + + /// \brief For show a message linked to the systray icon + void showSystrayMessage(const std::string& text); private: /** \brief show the help *\param incorrectArguments if the help is call because the arguments are wrong */ void showHelp(const bool &incorrectArguments=true); + + //Core *core; }; #endif // CLIPARSER_H |