- Christophe Nowicki - http://www.csquad.org -

D-BUS for Mozilla project progress #3

Posted By cscm On 10th July 2006 @ 08:51 In Google Summer of Code | 2 Comments

Here is my current progress on my project :

  • All basic arguments are supported, you can call a method with as many arguments as you want :
        ret = iface.callWithArguments(\\"MethodName\\", ['arg1', 42, 43.1], 3)
    
  • Array support is limited to basic array (without mixed type)
    // var arg = new Array(1, 'string', 2.3) // does not work yet
    var arg = new Array(1, 2, 3)
    ret = iface.callWithArguments(\\"MethodName\\", [arg], 1)
    
  • I’ve started working on callback fonctions for asynchronous call and signals, but without sucess.
  • Exception are now supported
    try {
       ret = iface.call(\\"SomethingGoesWrong\\")
    } catch (e) {
       e.name // error name, ex: org.freedesktop.DBus.Python.dbus.exceptions.UnknownMethodException
       e.message // error details, ex: SomethingGoesWrong is not a valid method of interface...
    }
    

    It’s working, but I thing that a more precise exception handling system is needed.

  • I continue to work on :

    • callback and signals
    • documentation

    I will release version 0.1 next week.


    Article printed from Christophe Nowicki: http://www.csquad.org

    URL to article: http://www.csquad.org/2006/07/10/d-bus-for-mozilla-project-progress-3/

    Click here to print.