Christophe Nowicki

July 18, 2006

D-BUS for Mozilla : version 0.1 is comming … soon!

Ok, boys and girls, version 0.1 is comming! ;0)

This week I was focused on documentation :

I’ve made progress in the wrapper code :

  • Mixed array are now supported : Array(1, ‘string’, 2.3)
  • Threads are now wrapped.
  • Callback are now handled, but not fully : It’s working for the XPCOM part but D-BUS does not call my handle back.

I will release version 0.1 when I find an issue to the callback problems. (I’d like to see asynchronous call and signals managed by 0.1).

Filed under: Google Summer of Code — Tags:, — cscm @ 11:00

July 10, 2006

D-BUS for Mozilla project progress #3

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.

    Filed under: Google Summer of Code — Tags:, — cscm @ 08:51

    July 2, 2006

    D-BUS for Mozilla project progress #2

    Another point on my progress on the D-BUS for Mozilla projet.
    Now I’am able to return any basic type form D-BUS method call and I’ve started to work on returning Arrays and Dictionaries.
    The next step before the release of version 0.1 (full featured D-BUS client) will be :

    • Method Arguments handling
    • Error handling with exception

    I’ve planned this release in two weeks, soon ! ;0)

    Filed under: Google Summer of Code — Tags:, — cscm @ 20:17

    Powered by WordPress