Mercurial > projects > qtd
annotate cpp/qt_core/QMetaType_shell.cpp @ 295:463563fc9e17 signals
more of QList. const functions in C++ are now const in D too. Drop of the store result feature, which was incompatible with const functions and introduced too much of the bloat in the generator.
author | eldar |
---|---|
date | Sun, 22 Nov 2009 11:01:19 +0000 |
parents | f46133029d8b |
children | 9784459f0750 |
rev | line source |
---|---|
87
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
1 |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
2 #include <QMetaType> |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
3 #include "qtd_core.h" |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
4 |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
5 typedef void * Ctor (const void *copy); |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
6 typedef void Dtor(void *obj); |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
7 |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
8 extern "C" DLL_PUBLIC int qtd_registerType(char* namePtr, Ctor ctor, Dtor dtor) |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
9 { |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
10 return QMetaType::registerType(namePtr, dtor, ctor); |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
11 } |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
12 |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
13 typedef void (*SaveOperator)(void *, void *); |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
14 typedef void (*LoadOperator)(void *, void *); |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
15 |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
16 |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
17 extern "C" DLL_PUBLIC void qtd_registerStreamOperators(const char *typeName, SaveOperator saveOp, |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
18 LoadOperator loadOp) |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
19 { |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
20 QMetaType::registerStreamOperators(typeName, reinterpret_cast<QMetaType::SaveOperator>(saveOp), |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
21 reinterpret_cast<QMetaType::LoadOperator>(loadOp)); |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
22 } |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
23 |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
24 |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
25 extern "C" DLL_PUBLIC int qtd_MetatypeId(char *id) |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
26 { |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
27 return QMetaType::type(id); |
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
28 } |