input.h 756 Bytes
Newer Older
1 2
#ifndef INPUT_H
#define INPUT_H
3

4
#include <QVariant>
5

6 7 8 9
class QTextStream;
class QTextCodec;

class Input
10 11
{
  public:
12 13 14 15 16 17 18 19 20 21 22 23 24 25
    enum Kind
    {
      Bool,
      Int,
      String,
      StrList,
      Obsolete
    };
    virtual ~Input() {}
    virtual QVariant &value() = 0;
    virtual void update() = 0;
    virtual Kind kind() const = 0;
    virtual QString docs() const = 0;
    virtual QString id() const = 0;
26
    virtual QString templateDocs() const = 0;
27
    virtual void addDependency(Input *option) = 0;
28
    virtual void setEnabled(bool) = 0;
29 30 31
    virtual void updateDependencies() = 0;
    virtual void reset() = 0;
    virtual void writeValue(QTextStream &t,QTextCodec *codec) = 0;
32
    virtual void setTemplateDocs(const QString &docs) = 0;
33 34
};

35

36
#endif