1.1 --- a/options.h Tue Jun 06 14:58:11 2006 +0000
1.2 +++ b/options.h Fri Jan 05 11:17:33 2007 +0000
1.3 @@ -1,10 +1,7 @@
1.4 #ifndef OPTIONS_H
1.5 #define OPTIONS_H
1.6
1.7 -#include <qstring.h>
1.8 -#include <qstringlist.h>
1.9 -//Added by qt3to4:
1.10 -#include <Q3ValueList>
1.11 +#include <QStringList>
1.12
1.13 enum OptionType {SwitchOption,StringOption};
1.14
1.15 @@ -12,6 +9,7 @@
1.16 {
1.17 public:
1.18 Option();
1.19 + Option(const QString &, const OptionType &, const QString &, const QString &);
1.20 void set (const QString &, const OptionType &, const QString &, const QString &);
1.21 QString getName();
1.22 QString getShort();
1.23 @@ -31,14 +29,12 @@
1.24 };
1.25
1.26
1.27 -
1.28 -typedef Q3ValueList <Option> OptionList;
1.29 -
1.30 class Options
1.31 {
1.32 public:
1.33 Options();
1.34 int parse();
1.35 + void add (Option );
1.36 void add (const QString &,const OptionType &, const QString &, const QString&);
1.37 void setHelpText(const QString&);
1.38 QString getHelpText();
1.39 @@ -51,7 +47,7 @@
1.40 QString progname;
1.41 QString helptext;
1.42 QStringList filelist;
1.43 - OptionList optlist;
1.44 + QList <Option> optlist;
1.45 };
1.46
1.47 #endif