DBus
- From: Pavol Klacansky <pavol klacansky com>
- To: javascript-list gnome org
- Subject: DBus
- Date: Mon, 03 Oct 2011 00:01:51 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]