Huggle  build:^490^dce1e5c
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
terminalparser.hpp
1 //This program is free software: you can redistribute it and/or modify
2 //it under the terms of the GNU General Public License as published by
3 //the Free Software Foundation, either version 3 of the License, or
4 //(at your option) any later version.
5 
6 //This program is distributed in the hope that it will be useful,
7 //but WITHOUT ANY WARRANTY; without even the implied warranty of
8 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 //GNU General Public License for more details.
10 
11 #ifndef TERMINALPARSER_H
12 #define TERMINALPARSER_H
13 
14 #include <iostream>
15 #include <QStringList>
16 #include <QString>
17 #include "configuration.hpp"
18 
19 namespace Huggle
20 {
21  //! Parses the data provided by user
23  {
24  public:
25  TerminalParser(int argc_, QStringList argv);
26  bool Parse();
27  bool ParseChar(QChar x);
28  void DisplayHelp();
29  bool Silent;
30  private:
31  int argc;
32  QStringList args;
33  };
34 }
35 
36 #endif // TERMINALPARSER_H
Parses the data provided by user.