Mercurial > projects > qtd
annotate cpp/qt_core/QMetaType_shell.cpp @ 360:49d0a43433e7
typo in comments
author | maxter <spambox@d-coding.com> |
---|---|
date | Thu, 03 Jun 2010 10:12:29 +0300 |
parents | 9784459f0750 |
children |
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 |
357
9784459f0750
An attempt (failed due to optlink) to improve locality of declarations exported from QtD executables
Max Samukha <maxter@spambox.com>
parents:
87
diff
changeset
|
8 QTD_EXTERN QTD_DLL_PUBLIC int qtd_registerType(char* namePtr, Ctor ctor, Dtor dtor) |
9784459f0750
An attempt (failed due to optlink) to improve locality of declarations exported from QtD executables
Max Samukha <maxter@spambox.com>
parents:
87
diff
changeset
|
9 { |
87
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 |
357
9784459f0750
An attempt (failed due to optlink) to improve locality of declarations exported from QtD executables
Max Samukha <maxter@spambox.com>
parents:
87
diff
changeset
|
17 QTD_EXTERN QTD_DLL_PUBLIC void qtd_registerStreamOperators(const char *typeName, SaveOperator saveOp, |
87
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
18 LoadOperator loadOp) |
357
9784459f0750
An attempt (failed due to optlink) to improve locality of declarations exported from QtD executables
Max Samukha <maxter@spambox.com>
parents:
87
diff
changeset
|
19 { |
87
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 } |
357
9784459f0750
An attempt (failed due to optlink) to improve locality of declarations exported from QtD executables
Max Samukha <maxter@spambox.com>
parents:
87
diff
changeset
|
23 |
87
f46133029d8b
qtd: Implement QMetaType. QVariant may save D types now.
SokoL_SD
parents:
diff
changeset
|
24 |
357
9784459f0750
An attempt (failed due to optlink) to improve locality of declarations exported from QtD executables
Max Samukha <maxter@spambox.com>
parents:
87
diff
changeset
|
25 QTD_EXTERN QTD_DLL_PUBLIC int qtd_MetatypeId(char *id) |
87
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 } |