Languages/Smoke: Difference between revisions

    From KDE TechBase
    No edit summary
    No edit summary
    Line 17: Line 17:
    [http://websvn.kde.org/trunk/KDE/kdebindings/ kdebindings module] of KDE's SVN.
    [http://websvn.kde.org/trunk/KDE/kdebindings/ kdebindings module] of KDE's SVN.


    At the time of writing, both the [http://developer.kde.org/language-bindings/perl/index.html Perl bindings], [http://developer.kde.org/language-bindings/ruby/index.html Ruby bindings] and [http://qyoto-project.com/ C# bindings] are known to use it, you might find valuable usage information there.
    At the time of writing, both the [[Development/Languages/Perl|Perl bindings]], [[Development/Languages/Ruby|Ruby bindings]] and [[Development/Languages/C#|C# bindings]] are known to use it, you might find valuable usage information there.

    Revision as of 13:44, 5 May 2008

    SMOKE is a introspective wrapper around the Qt and KDE frameworks. The legend says it stands for Scripting Meta Object Kompiler Engine

    Not only does it provide wrappers for every function in every class, but it also contains meta-information allowing queries of what functions are available and their arguments and return-types.

    All classes, all methods, with all arguments, along with various flags reflecting staticness, virtuality, etc. are stored into cross-referencing arrays for fast lookups. One can thus read (and call) the whole Qt API by simply reading/searching these arrays.

    The main purpose of SMOKE is to make it possible to write bindings from scripting languages to Qt and KDE - with an emphasis on ease of use and flexibility.

    You can find out more about SMOKE by checking out the kdebindings module of KDE's SVN.

    At the time of writing, both the Perl bindings, Ruby bindings and C# bindings are known to use it, you might find valuable usage information there.