Debian Codegraph @

addon/doxywizard/inputobsolete.h

raw
1 /******************************************************************************
2 *
3 * Copyright (C) 1997-2021 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 INPUTOBSOLETE_H
14 #define INPUTOBSOLETE_H
15
16 #include "input.h"
17
18 class InputObsolete : public Input
19 {
20 public:
21 InputObsolete(const QString &id, Kind orgKind) : m_id(id), m_orgKind(orgKind) {}
22 QVariant &value() { return m_value; }
23 void update() {}
24 Kind kind() const { return Obsolete; }
25 QString docs() const { return QString(); }
26 QString id() const { return m_id; }
27 QString templateDocs() const { return QString(); }
28 void addDependency(Input *) {}
29 void setEnabled(bool) {}
30 void updateDependencies() {}
31 void reset() {}
32 bool isDefault() { return false; }
33 void writeValue(QTextStream &,TextCodecAdapter *,bool) {}
34 void setTemplateDocs(const QString &) {}
35 bool isEmpty() { return false; };
36 Kind orgKind() const { return m_orgKind; }
37 private:
38 QString m_id;
39 Kind m_orgKind;
40 QVariant m_value;
41 };
42
43 #endif
44