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

List:       pykde
Subject:    Re: [PyKDE] dcop
From:       Jim Bublitz <jbublitz () nwinternet ! com>
Date:       2004-05-26 19:42:27
Message-ID: 200405261242.27917.jbublitz () nwinternet ! com
[Download RAW message or body]

On Wednesday 26 May 2004 06:47, Amand Tihon wrote:

> Ah. Then I understand why I've got problem with this :)
>
> Here's what I'm doing:
> - Subclass DCOPObject
> - Redefine interfaces() and functions(). Making them return a (python) list
> of (python) string instead of a QCStringList works out of the box.
> - Redefine process(). It's this one that's painful because I have to do the
> [de]marshalling of data and replyData by hand.

> Are there any functions that could help me doing this, in current version ?

I haven't looked at the DCOPObject stuff very much, but it shouldn't be too 
much of a problem (famous last words). Marshalling/demarshalling is the hard 
part - very ugly in Python, very easy in C++.

You can use Python strings as QByteArrays, but much beyond a single int or a 
real char string that's pretty difficult.

Jim

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

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