Re: DBus
- From: "Alan Knowles" <alan akbkhome com>
- To: "Pavol Klacansky" <javascript-list-bounces gnome org>
- Cc: javascript-list gnome org
- Subject: Re: DBus
- Date: Tue, 04 Oct 2011 11:33:32 +0800
If this is seed, from what I remember there is a open bug for the dbus code.
Regards
Alan
--- On 03/Oct/2011, Pavol Klacansky wrote:
> Hi,
>
> const DBus = imports.dbus
>
> const _DBUS_PATH = '/com/klacansky/speedyrss'
> const _DBUS_NAME = 'com.klacansky.speedyrss'
>
> const serviceIface = {
> name: _DBUS_NAME,
>
> methods: [ { name: 'GetFeedIds', inSignature: '', outSignature: '' }
> ]
> }
>
> function Service() {
> this._init()
> }
>
> Service.prototype = {
> _init: function() {
> DBus.session.proxifyObject(this, _DBUS_NAME, _DBUS_PATH)
> }
> }
> DBus.proxifyPrototype(Service.prototype, serviceIface)
>
> service = new Service()
> test = service.GetFeedIdsRemote()
> print(test)
>
>
>
> This prints "undefined", but it should print "Haha"
>
> Where is problem?
>
> Thank you
> _______________________________________________
> javascript-list mailing list
> javascript-list gnome org
> http://mail.gnome.org/mailman/listinfo/javascript-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]