This forum has been archived. All content is frozen. Please use KDE Discuss instead.

K3B and D-BUS

Tags: None
(comma "," separated)
slY
Registered Member
Posts
2
Karma
0
OS

K3B and D-BUS

Tue Jul 13, 2010 7:52 am
Hi all,

I was very comfortable using bash to generate scrips that I use to speed up burning process. My script generates output like this:

#!/bin/bash
k3b &
sleep 5
K3BDCOP=$(dcop k3b*)
PROJECT=$(dcop $K3BDCOP K3bInterface createDataCDProject)
dbus $PROJECT setVolumeID COMPILATION_1

dbus $PROJECT addUrl "/media/disk/path1"
dbus $PROJECT addUrl "/media/disk/path2"
dbus $PROJECT addUrl "/media/disk/path3"
etc...

but with the new version of K3B I discover that DBUS is no more longer available. What can I do!?

Thank you very much,

slY
User avatar
dpalacio
Registered Member
Posts
240
Karma
2
OS

Re: K3B and D-BUS

Tue Jul 13, 2010 1:19 pm
What you used to use is dcop, not dbus. DBus is available:

qdbus org.k3b.k3b /MainWindow
Code: Select all
method void org.k3b.MainWindow.addUrl(QString url)
method void org.k3b.MainWindow.addUrls(QStringList urls)
method void org.k3b.MainWindow.audioCdRip()
method void org.k3b.MainWindow.audioCdRip(QString dev)
method bool org.k3b.MainWindow.blocked()
method void org.k3b.MainWindow.copyMedium()
method void org.k3b.MainWindow.copyMedium(QString dev)
method QString org.k3b.MainWindow.createAudioProject()
method QString org.k3b.MainWindow.createDataProject()
method QString org.k3b.MainWindow.createMixedProject()
method QString org.k3b.MainWindow.createMovixProject()
method QString org.k3b.MainWindow.createVcdProject()
method QString org.k3b.MainWindow.createVideoDvdProject()
method QString org.k3b.MainWindow.currentProject()
method void org.k3b.MainWindow.formatMedium()
method QString org.k3b.MainWindow.openProject(QString url)
method QStringList org.k3b.MainWindow.projects()
method void org.k3b.MainWindow.videoCdRip()
method void org.k3b.MainWindow.videoCdRip(QString dev)
method void org.k3b.MainWindow.videoDvdRip()
method void org.k3b.MainWindow.videoDvdRip(QString dev)
method void org.k3b.MainWindow.writeImage()
method void org.k3b.MainWindow.writeImage(QString url)
method QDBusVariant org.freedesktop.DBus.Properties.Get(QString interface_name, QString property_name)
method QVariantMap org.freedesktop.DBus.Properties.GetAll(QString interface_name)
method void org.freedesktop.DBus.Properties.Set(QString interface_name, QString property_name, QDBusVariant value)
method QString org.freedesktop.DBus.Introspectable.Introspect()


connect(post, SIGNAL(readSignature()), qapp, SLOT(quit()));
slY
Registered Member
Posts
2
Karma
0
OS

Re: K3B and D-BUS

Tue Jul 13, 2010 1:29 pm
Ok, thanks. I'll try qdbus!
User avatar
michalm
KDE Developer
Posts
18
Karma
0
OS

Re: K3B and D-BUS

Tue Jul 13, 2010 5:36 pm
Unfortunately in K3b 2.0 D-BUS interface is not available. It has been added in current SVN version (this is what dpalacio uses, apparently).


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]