42 #ifndef QMETAOBJECTBUILDER_H 43 #define QMETAOBJECTBUILDER_H 56 #include <QtCore/qobject.h> 57 #include <QtCore/qmetaobject.h> 58 #include <QtCore/qdatastream.h> 59 #include <QtCore/qmap.h> 61 #include <private/qdeclarativeglobal_p.h> 78 ClassName = 0x00000001,
79 SuperClass = 0x00000002,
83 Constructors = 0x00000020,
84 Properties = 0x00000040,
85 Enumerators = 0x00000080,
86 ClassInfos = 0x00000100,
87 RelatedMetaObjects = 0x00000200,
88 StaticMetacall = 0x00000400,
89 PublicMethods = 0x00000800,
90 ProtectedMethods = 0x00001000,
91 PrivateMethods = 0x00002000,
92 AllMembers = 0x7FFFFFFF,
93 AllPrimaryMembers = 0x7FFFFBFC
115 int methodCount()
const;
116 int constructorCount()
const;
117 int propertyCount()
const;
118 int enumeratorCount()
const;
119 int classInfoCount()
const;
120 int relatedMetaObjectCount()
const;
140 #ifdef Q_NO_DATA_RELOCATION 146 void addMetaObject(
const QMetaObject *
prototype, QMetaObjectBuilder::AddMembers members = AllMembers);
157 void removeMethod(
int index);
158 void removeConstructor(
int index);
159 void removeProperty(
int index);
160 void removeEnumerator(
int index);
161 void removeClassInfo(
int index);
162 void removeRelatedMetaObject(
int index);
164 int indexOfMethod(
const QByteArray& signature);
165 int indexOfSignal(
const QByteArray& signature);
167 int indexOfConstructor(
const QByteArray& signature);
178 QByteArray toRelocatableData(
bool * = 0)
const;
181 #ifndef QT_NO_DATASTREAM 220 int attributes()
const;
221 void setAttributes(
int value);
228 friend class QMetaPropertyBuilder;
231 : _mobj(mobj), _index(index) {}
241 int index()
const {
return _index; }
246 bool hasNotifySignal()
const;
249 void removeNotifySignal();
251 bool isReadable()
const;
252 bool isWritable()
const;
253 bool isResettable()
const;
254 bool isDesignable()
const;
255 bool isScriptable()
const;
256 bool isStored()
const;
257 bool isEditable()
const;
259 bool hasStdCppSet()
const;
260 bool isEnumOrFlag()
const;
261 bool isConstant()
const;
262 bool isFinal()
const;
264 void setReadable(
bool value);
265 void setWritable(
bool value);
266 void setResettable(
bool value);
267 void setDesignable(
bool value);
268 void setScriptable(
bool value);
269 void setStored(
bool value);
270 void setEditable(
bool value);
271 void setUser(
bool value);
272 void setStdCppSet(
bool value);
273 void setEnumOrFlag(
bool value);
274 void setConstant(
bool value);
275 void setFinal(
bool value);
284 : _mobj(mobj), _index(index) {}
294 int index()
const {
return _index; }
299 void setIsFlag(
bool value);
301 int keyCount()
const;
303 int value(
int index)
const;
306 void removeKey(
int index);
315 : _mobj(mobj), _index(index) {}
#define QT_END_NAMESPACE
This macro expands to.
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
The QByteArray class provides an array of bytes.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
const QMetaObject &(* QMetaObjectAccessor)()
static void addKey(QString &str, const QString &theKey, QKeySequence::SequenceFormat format)
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
int access(const char *, int)
#define Q_DECLARATIVE_PRIVATE_EXPORT
static QByteArray prototype(const QList< QByteArray > ¶meterTypes, const QList< QByteArray > ¶meterNames, bool *ok)
The QDataStream class provides serialization of binary data to a QIODevice.
The QMap class is a template class that provides a skip-list-based dictionary.