On Wednesday 22 February 2006 17:38, Robert Morrison wrote: > Hi Sebastian: > > Thanks for following up. > > On Wednesday 22 February 2006 04:14, Sebastian Reitenbach wrote: > > Hi again, > > > > The dcop interface looked interesting first, but this only works for kde > > applications aware of dcop. As the dcop interface is easy to use I was > > able to > > send messages to e.g. kate and to tell it to close a given document. I > > have not found a save method that I can send to kate. > > That surprises me, but I think you are right. I just spent > some time investigating and found 'kdcop', which gives us a > way to browse the dcop functions available. I tried a test > with Kate, and I don't see 'saveDocument()'. If the functionality one is looking for is available in the user interface as an action (menu entry, toolbar button) it can often be activated via DCOP through the DCOP interface named "qt" For example do this dcop kate qt objects | grep save It returns a list of Qt objects, for example qt/KXMLGUIClient-KActionCollection/file_save_all You can then check this object's interface like this dcop kate qt/KXMLGUIClient-KActionCollection/file_save_all You'll find a function called "activate" which will execute the same code as clicking on the action would have. Another idea for the topic would be to check what the applications in question do on session save, i.e. saving initiated by the session manager. If this is sufficient, session saving can also be triggered by DCOP if ksmserver is used as the session manager. Cheers, Kevin -- Kevin Krammer <kevin.krammer@xxxxxx> Qt/KDE Developer, Debian User Moderator: www.mrunix.de (German), www.qtcentre.org
Attachment:
pgpbA5gJB7jvC.pgp
Description: PGP signature
___________________________________________________ . Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.