1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-23 02:32:10 +02:00
falkonOfficial/src/app/commandlineoptions.h

32 lines
619 B
C
Raw Normal View History

2011-03-02 16:57:41 +01:00
#ifndef COMMANDLINEOPTIONS_H
#define COMMANDLINEOPTIONS_H
#if defined(QT_NO_DEBUG) & !defined(QT_NO_DEBUG_OUTPUT)
#define QT_NO_DEBUG_OUTPUT
#endif
#include <QObject>
#include <iostream>
class CommandLineOptions : public QObject
{
Q_OBJECT
public:
enum Action {NoAction, OpenUrl, StartWithProfile, StartWithoutAddons};
explicit CommandLineOptions(int &argc, char **argv);
Action getAction();
QString getActionString();
private:
void showHelp();
void parseActions();
QString m_actionString;
int m_argc;
char **m_argv;
Action m_action;
};
#endif // COMMANDLINEOPTIONS_H