input.h
Go to the documentation of this file.
1 #ifndef INPUT_H
2 #define INPUT_H
3 
4 #include <QVariant>
5 
6 class QTextStream;
7 class QTextCodec;
8 
9 class Input
10 {
11  public:
12  enum Kind
13  {
15  Int,
19  };
20  virtual ~Input() {}
21  virtual QVariant &value() = 0;
22  virtual void update() = 0;
23  virtual Kind kind() const = 0;
24  virtual QString docs() const = 0;
25  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  virtual void updateDependencies() = 0;
30  virtual void reset() = 0;
31  virtual void writeValue(QTextStream &t,QTextCodec *codec) = 0;
32  virtual void setTemplateDocs(const QString &docs) = 0;
33 };
34 
35 
36 #endif
virtual void update()=0
virtual QVariant & value()=0
virtual void setEnabled(bool)=0
virtual void reset()=0
virtual QString templateDocs() const =0
virtual void addDependency(Input *option)=0
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
Definition: qstring.h:350
virtual void updateDependencies()=0
virtual Kind kind() const =0
virtual QString id() const =0
virtual ~Input()
Definition: input.h:20
Definition: input.h:9
The QTextStream class provides basic functions for reading and writing text using a QIODevice...
Definition: qtextstream.h:53
Kind
Definition: input.h:12
virtual void setTemplateDocs(const QString &docs)=0
Provides conversion between text encodings.
Definition: qtextcodec.h:62
virtual QString docs() const =0
virtual void writeValue(QTextStream &t, QTextCodec *codec)=0