[Kde-bindings] smoke and enums

Thomas Moenicke thomas.moenicke at kdemail.net
Mon Feb 5 20:44:59 UTC 2007


Hi,

in PHP-Qt I want to access values of enums:

$slider = new QSlider(Qt::Horizontal);

I can do it with defining Qt::Horizontal as a PHP class constant of an 
imitated class 'Qt'

zend_declare_class_constant_long(ce_ptr, "Horizontal", strlen("Horizontal"), 
Qt::Horizontal);

How can I fetch these enum informations from smoke? I would like to pre-define 
all enums as class constants in a loop. How does it work in Perl or Ruby?

Thanks,
Thomas




More information about the Kde-bindings mailing list