[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    [Kde-bindings] DCOP call to ktorrent
From:       "Anthony Bargnesi" <abargnesi () gmail ! com>
Date:       2006-08-30 4:37:54
Message-ID: bed0c1d30608292137i5327e63bgc4d7d36ff9df81bc () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello Korundum devs/users,

This is definately a cool tool and I would like to be able to integrate with
ktorrent via dcop.  I can do a bash command like the following:

dcop ktorrent KTorrent getInfo


This call spits out the following:

Transferred up: 21.6 MB / down: 188.9 MB
> Speed up: 1.0 KB/s / down: 21.6 KB/s
> DHT: off


So I can see that it is reachacle via dcop but when I try it using Korundum
I receive:

DCOPRef::call():  no DCOP client or client not attached error



The following is my simple ruby script:

require 'Korundum'
>
> dcopRef = KDE::DCOPRef.new("ktorrent", "KTorrent")
> info = dcopRef.getInfo
> puts info


Does it take more than this to connect to a running DCOP slot?  It seems
like I have to setup
the dcopclient before I make a "call".

Thanks,

Anthony Bargnesi

[Attachment #5 (text/html)]

Hello Korundum devs/users,<br><br>This is definately a cool tool and I would like to \
be able to integrate with ktorrent via dcop.&nbsp; I can do a bash command like the \
following:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"> dcop ktorrent \
KTorrent getInfo</blockquote><div><br>This call spits out the \
following:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"> Transferred up: \
21.6 MB / down: 188.9 MB<br>Speed up: 1.0 KB/s / down: 21.6 KB/s<br>DHT: \
off</blockquote><div><br>So I can see that it is reachacle via dcop but when I try it \
using Korundum I receive:<br><br><blockquote style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"> \
DCOPRef::call():&nbsp; no DCOP client or client not attached \
error</blockquote><div><br><br>The following is my simple ruby \
script:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: \
0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"> require \
'Korundum'<br><br>dcopRef = KDE::DCOPRef.new(&quot;ktorrent&quot;, \
&quot;KTorrent&quot;)<br>info = dcopRef.getInfo<br>puts \
info</blockquote><div><br>Does it take more than this to connect to a running DCOP \
slot?&nbsp; It seems like I have to setup <br>the dcopclient before I make a \
&quot;call&quot;.<br><br>Thanks,<br><br>Anthony \
Bargnesi<br>&nbsp;</div><br></div><br>&nbsp;</div><br>&nbsp;</div><br>



_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic