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

List:       kde-bindings
Subject:    [Kde-bindings] kdebindings and dcop
From:       Florian Roth <florian () synatic ! net>
Date:       2005-02-12 9:15:58
Message-ID: 200502121015.58364.florian () synatic ! net
[Download RAW message or body]

HI,

I try to make a simple dcop call using the kdebinding and the DCOPClient class (not \
dcopjava). I use the following code:

byte[] data = new byte[50];
StringBuffer buffer = new StringBuffer();

dcop = app.dcopClient();

if(dcop.registerAs("amarokfileserver", false) != null){
  if (dcop.attach()) {
    if (dcop.call("amarok", "player", artist()", new String("").getBytes(), buffer, \
data, false, -1)) {  System.out.println(new String(data));
    }
  }
}

It seems to make a dcop call because "QString" is returned in the StringBuffer. But \
the data byte[] contains no data as far as I can see. Is this a problem of the \
bindings or is it just me who is doing something wrong?


Greets
Florian Roth
_______________________________________________
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