diff -r 000000000000 -r d045ba89798e options.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/options.h Wed Feb 25 12:44:10 2009 +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