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
677 B
35 lines
677 B
14 years ago
|
#ifndef ARGUMENTPARSER_H
|
||
|
#define ARGUMENTPARSER_H
|
||
|
|
||
|
#include <QObject>
|
||
|
|
||
|
class ArgumentParser : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
|
||
|
explicit ArgumentParser(QObject *parent = 0);
|
||
|
|
||
|
/***
|
||
|
* @param successful is true is the program needs to stop but its not an 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
|