[bt-devel] dbus interface

Martin Gruner mg.pub at gmx.net
Fri Sep 25 12:38:32 MST 2009


Hi Teus,

sorry, I am a dbus newbie. However, I just tried qdbusviewer, and it let me 
call syncAllVerseBasedModules, and it worked. Does it not for you? Maybe it 
can tell you the correct path to call.

Is there anything we need to change in the implementation? Let us know what it 
would be.

Martin

Am Donnerstag, 24. September 2009 19:32:23 schrieb Teus Benschop:
> Good Day,
> 
> May I ask you a question about the DBus interface of BibleTime?
> I am interested in this interface so that Bibledit can use it to share
> its verse reference with BibleTime.
> 
> The main problem is that I can't get it to work.
> 
> There are various places in the code where the DBus is called from
> BibleTime. So far I have seen these bits:
> 
> QDBusConnection::sessionBus().registerObject("/BibleTime", &bibleTime);
> 
> Q_CLASSINFO("D-Bus Interface", "info.bibletime.BibleTime")
> 
> If a client would like to cause BibleTime to scroll to, say, Genesis
> 2:4, then it looks like the following command would do it:
> 
> syncAllVerseBasedModules Gen.2.4
> 
> However, I can't get this to work through the DBus.
> 
> I run the following command:
> 
> dbus-send --print-reply --dest=/BibleTime info.bibletime.BibleTime
> info.bibletime.BibleTime.syncAllVerseBasedModules string:Gen.2.4
> 
> This command gives error messages:
> 
> process 23657: arguments to dbus_message_new_method_call() were
> incorrect, assertion "_dbus_check_is_valid_path (path)" failed in file
> dbus-message.c line 1074.
> This is normally a bug in some application using the D-Bus library.
> process 23657: arguments to dbus_message_set_auto_start() were
> incorrect, assertion "message != NULL" failed in file dbus-message.c
> line 2488.
> This is normally a bug in some application using the D-Bus library.
> Couldn't allocate D-Bus message
> 
> It looks like it can't address a destination called "/BibleTime".
> 
> Any help of how to cause BibleTime to scroll would be appreciated
> greatly.
> 
> Thanks a lot,
> 
> Teus Benschop
> 



More information about the bt-devel mailing list