You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qtmindmap/argumentparser.h

31 lines
529 B

#ifndef ARGUMENTPARSER_H
#define ARGUMENTPARSER_H
#include <QObject>
class ArgumentParser : public QObject
{
Q_OBJECT
public:
explicit ArgumentParser(QObject *parent = 0);
bool parseCmdLineArgs(bool &successful);
bool isSystemTray() { return m_isSystemTray; }
bool isShowMinimized() { return m_isShowMinimized; }
QString filePath() { return m_filePath; }
private:
void printUsage();
bool m_isSystemTray;
bool m_isShowMinimized;
QString m_filePath;
};
#endif // ARGUMENTPARSER_H