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

List:       kde-devel
Subject:    Re: beginner's dcop question: automating undescribed functions
From:       Thomas Kadauke <tkadauke () gmx ! de>
Date:       2006-12-17 3:27:50
Message-ID: 200612170427.51250.tkadauke () gmx ! de
[Download RAW message or body]

Have you looked at kdcop? It's a really nice graphical tool that lists 
available DCOP functions from all interfaces of an application. I know, 
that's not quite an answer to your question, but that might help you figure 
it out a little quicker :)

--Thomas

Am Sunday 17 December 2006 03:58 schrieb Matt Price:
> Hi,
>
> I'm not usually a kde user but amarok is a killer app and i've turned my
> old laptop (ibm thinkpad 600e, fairly slow now) into a stereo component
> whose main function is to play songs from an ipod using amarok.
> Unfortunately my sound card is buggy and crashes whenever the machine
> wakes up from suspend, so I need to unload the module (cs4232) whenever
> I suspend the machine.  when amarok is running (I'm using 1.4.4, the
> ubuntu feisty package, on a minimal ubuntu edgy system which runs a
> simple xfce rather than kde as the main desktop), the xine-engine
> (obviously) uses the sound module and won't release it, so right now I
> issue a
>
> dcop amarok MainApplicaation-Interface quit
>
> to kill amarok nicely before suspend.  However that's a bit clumsy; it
> means amarok needs to restart on resume, which takes about 15 seconds on
> my computer -- not all that long I guess, but it feels clumsy for a
> stereo.
>
> I've discovered that I can manually set the xine-engine output to "file"
> in the settings pane.  This frees up the sound card and I can safely
> suspend. THen on resume I can reset the engine to "oss" (alsa driver
> isn't working for me at the moment, though apparently some people can
> get it to work).  But obviously this is tedious to do by hand, and I
> want to do it from a script so I can just make a desktop icon that my
> kids (for instance) can click on before shutting down.
>
> Anyway (I'm being long-winded here, sorry), I've looked through the
> output of
>
> dcop amarok qt objects
>
> and there are a bunch of objects that look like they might have
> something to do with the xine engine config items, e.g.:
>
> qt/unnamed57(XineStrEntry, 0x8693178)
> qt/unnamed58(XineIntEntry, 0x8b42e28)
> qt/unnamed59(XineStrEntry, 0x8b429e8)
> qt/unnamed60(XineStrEntry, 0x8b42658)
> qt/unnamed61(XineEnumEntry, 0x8b41fb8)
> qt/unnamed62(XineEnumEntry, 0x8b41da0)
> qt/unnamed63(XineStrEntry, 0x8b41960)
> qt/unnamed64(XineStrEntry, 0x8ae3bb8)
> qt/unnamed65(XineStrEntry, 0x8b413f8)
> qt/unnamed66(XineStrEntry, 0x8b41010)
> qt/unnamed67(XineStrEntry, 0x8b40e00)
> qt/unnamed68(XineStrEntry, 0x8b40b78)
> qt/unnamed69(XineIntEntry, 0x8b408f0)
> qt/unnamed70(XineStrEntry, 0x8a90040)
> qt/unnamed89(XineConfigDialog, 0x8b926c0)
> qt/unnamed237(XineEngine, 0x8747ed0)
>
> qt/PlaylistWindow/settings/janus/unnamed3(QFrame,
> 0x8b29c70)/unnamed3(QWidgetStack,
> 0x8b6c630)/page/Engine/unnamed3(QGroupBox, 0x8af8280)/XineConfigBase
>
> There are about 40 more like this last one.
> Anyway, I imagine somewhere in there is the property whose value I want
> to change.  But I have no idea how to figure out which object I want
> access to, and once I Identify it, how to figure out what properties one
> can set and what the permissible values for those properties are.
>
> SO if anyone can help me, I would really appreciate it.  This whole dcop
> thing is pretty cool, by the way.  I'm starting to understand what all
> those kde fans are so fanatical about.
>
> Thanks much,
>
> Matt
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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