#ifndef LAUNCHERARGUMENTTOKENIZER_HXX #define LAUNCHERARGUMENTTOKENIZER_HXX #include #include class LauncherArgumentTokenizer { public: LauncherArgumentTokenizer(); class Arg { public: explicit Arg(QString k, QString v = QString()) : arg(k), value(v) {} QString arg; QString value; }; QList tokenize(QString in) const; private: enum State { Start = 0, Key, Value, Quoted, Comment }; }; #endif // LAUNCHERARGUMENTTOKENIZER_HXX