Akonadi
24 Node(NodeType
type, Node *parent);
25 Node(
const Node &) =
delete;
26 Node(Node &&) =
delete;
29 Node &operator=(
const Node &) =
delete;
30 Node &operator=(Node &&) =
delete;
32 NodeType
type()
const;
35 void appendNode(Node *child);
37 const QList<Node const *> &children()
const;
41 QList<Node const *> mChildren;
45class DocumentNode :
public Node
48 DocumentNode(
int version);
57class ClassNode :
public Node
68 ClassNode(
const QString &name, ClassType
type, DocumentNode *
parent);
70 ClassType classType()
const;
71 QString className()
const;
72 QString parentClassName()
const;
73 QList<PropertyNode const *> properties()
const;
75 static ClassType elementNameToType(QStringView name);
82class CtorNode :
public Node
90 QString mVariableName()
const
92 return QStringLiteral(
"m") + name[0].toUpper() + QStringView(name).mid(1);
96 CtorNode(
const QList<Argument> &args, ClassNode *
parent);
99 QList<Argument> arguments()
const;
100 void setArgumentType(
const QString &
name,
const QString &
type);
103 QList<Argument> mArgs;
106class EnumNode :
public Node
115 EnumNode(
const QString &name, EnumType
type, ClassNode *
parent);
117 QString name()
const;
118 EnumType enumType()
const;
119 static EnumType elementNameToType(QStringView name);
121 QString flagsName()
const;
128class EnumValueNode :
public Node
131 EnumValueNode(
const QString &name, EnumNode *
parent);
133 QString name()
const;
134 void setValue(
const QString &value);
135 QString value()
const;
142class PropertyNode :
public Node
152 PropertyNode(
const QString &name,
const QString &type, ClassNode *
parent);
153 ~PropertyNode()
override;
155 QString type()
const;
156 QString name()
const;
158 void setDefaultValue(
const QString &defaultValue);
159 QString defaultValue()
const;
161 bool readOnly()
const;
162 void setReadOnly(
bool readOnly);
164 bool asReference()
const;
165 void setAsReference(
bool asReference);
167 bool isPointer()
const;
170 QMultiMap<QString, QString> dependencies()
const;
171 void addDependency(
const QString &enumVar,
const QString &enumValue);
173 Setter *setter()
const;
174 void setSetter(Setter *setter);
176 QString mVariableName()
const;
177 QString setterName()
const;
182 QString mDefaultValue;
183 QMultiMap<QString, QString> mDepends;
virtual QString type() const
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:57 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.