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.
35 lines
673 B
35 lines
673 B
#ifndef ARGUMENTPARSER_H
|
|
#define ARGUMENTPARSER_H
|
|
|
|
#include <QObject>
|
|
|
|
class ArgumentParser : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit ArgumentParser(QObject *parent = 0);
|
|
|
|
/***
|
|
* @param successful is true if the program needs to stop but its not error
|
|
* @return true is program can continue
|
|
*/
|
|
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
|