diff -r 000000000000 -r cf274b28e5fe options.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/options.h Wed Jul 30 14:42:03 2008 +0000 @@ -0,0 +1,55 @@ +#ifndef OPTIONS_H +#define OPTIONS_H + +#include +#include + +enum OptionType {SwitchOption,StringOption}; + +class Option +{ +public: + Option(); + void set (const QString &, const OptionType &, const QString &, const QString &); + QString getName(); + QString getShort(); + QString getLong(); + OptionType getType(); + void setArg(const QString &); + QString getArg(); + void setActive(); + bool isActive(); +private: + QString name; + OptionType type; + QString sName; + QString lName; + QString sarg; + bool active; +}; + + + +typedef QValueList