Debian Codegraph @

addon/doxywizard/input.h

raw
1 /******************************************************************************
2 *
3 * Copyright (C) 1997-2019 by Dimitri van Heesch.
4 *
5 * Permission to use, copy, modify, and distribute this software and its
6 * documentation under the terms of the GNU General Public License is hereby
7 * granted. No representations are made about the suitability of this software
8 * for any purpose. It is provided "as is" without express or implied warranty.
9 * See the GNU General Public License for more details.
10 *
11 */
12
13 #ifndef INPUT_H
14 #define INPUT_H
15
16 #include <QVariant>
17 #include "adapter.h"
18
19 class QTextStream;
20 class QTextStream;
21
22 class Input
23 {
24 public:
25 enum Kind
26 {
27 Bool,
28 Int,
29 String,
30 StrList,
31 Obsolete
32 };
33 virtual ~Input() {}
34 virtual QVariant &value() = 0;
35 virtual void update() = 0;
36 virtual Kind kind() const = 0;
37 virtual QString docs() const = 0;
38 virtual QString id() const = 0;
39 virtual QString templateDocs() const = 0;
40 virtual void addDependency(Input *option) = 0;
41 virtual void setEnabled(bool) = 0;
42 virtual void updateDependencies() = 0;
43 virtual void reset() = 0;
44 virtual bool isDefault() = 0;
45 virtual void writeValue(QTextStream &t,TextCodecAdapter *codec,bool convert) = 0;
46 virtual void setTemplateDocs(const QString &docs) = 0;
47 virtual bool isEmpty() { return false; };
48 };
49
50
51 #endif