marked some more private classes
[lqt.git] / generator / qt_internal.lua
blob0d0afa5fd1c233e32b70cef9e451492bb85cef67
2 local classes, enums = ...
3 local ret1, ret2 = {}, {}
5 -- don't bind this Qt internals/unsupported classes
6 -- if there are linker errors, or errors when laoding the .so
7 -- add the class here
9 for c in pairs(classes) do
10 local n = c.xarg.name
11 if n~=string.lower(n) and not (string.match(n, '_')
13 or c.xarg.fullname=='QVariant::Private' -- well, it IS public
14 or c.xarg.fullname=='QVariant::Private::Data' -- well, it IS public
15 or c.xarg.fullname=='QVariant::PrivateShared' -- well, it IS public
16 or c.xarg.fullname=='QObjectData'-- public
17 -- internals, no binding needed
18 or c.xarg.fullname=='QDebug::Stream' -- private
19 or c.xarg.fullname=='QByteArray::Data' -- private
20 or c.xarg.fullname=='QRegion::QRegionData' -- private
21 or c.xarg.fullname=='QString::Data' -- private
22 or c.xarg.fullname=='QThreadStorageData' -- private
23 or c.xarg.fullname=='QXmlAttributes::Attribute'
24 or c.xarg.fullname=='QGLColormap::QGLColormapData'
25 or c.xarg.fullname=='QtConcurrent::internal::ExceptionStore'
26 or c.xarg.fullname=='QtConcurrent::internal::ExceptionHolder'
27 or c.xarg.fullname=='QtConcurrent::ResultIteratorBase'
28 or c.xarg.fullname=='QtSharedPointer'
29 or c.xarg.fullname=='QtSharedPointer::InternalRefCountData'
30 or c.xarg.fullname=='QtSharedPointer::ExternalRefCountData'
32 -- platform specific, TODO
33 or c.xarg.fullname=='QWindowsCEStyle'
34 or c.xarg.fullname=='QWindowsMobileStyle'
35 or c.xarg.fullname=='QWindowsXPStyle'
36 or c.xarg.fullname=='QWindowsVistaStyle'
37 or c.xarg.fullname=='QMacStyle'
39 -- binding bugs
40 or c.xarg.fullname=='QUpdateLaterEvent'
41 or c.xarg.fullname=='QTextStreamManipulator'
42 or c.xarg.fullname=='QForeachContainerBase'
43 or c.xarg.fullname=='QtConcurrent::ThreadEngineSemaphore'
44 or c.xarg.fullname=='QtConcurrent::Exception' -- GCC throw() in destructor base declaration
45 or c.xarg.fullname=='QtConcurrent::UnhandledException' -- GCC throw() in destructor base declaration
49 ) then
50 ret1[c] = true
51 end
52 end
54 for e in pairs(enums) do
55 local n = e.xarg.name
56 if n~=string.lower(n) and not string.match(n, '_') then
57 ret2[e] = true
58 end
59 end
61 return ret1, ret2