commandlineoptions.h 466 B

123456789101112131415161718192021222324252627282930
  1. #ifndef COMMANDLINEOPTIONS_H
  2. #define COMMANDLINEOPTIONS_H
  3. #include <QStringList>
  4. class CommandLineOptions
  5. {
  6. public:
  7. enum ParseResult
  8. {
  9. Ok,
  10. Error,
  11. VersionRequested,
  12. HelpRequested
  13. };
  14. CommandLineOptions() = default;
  15. ParseResult parse(const QStringList &p_arguments);
  16. QString m_errorMsg;
  17. QString m_helpText;
  18. QStringList m_pathsToOpen;
  19. bool m_verbose = false;
  20. };
  21. #endif // COMMANDLINEOPTIONS_H