Summary: | DCOP Application Interface Classes | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | tormak |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
tormak
2005-02-22 22:55:08 UTC
We already have application classes and common interfaces. KIMIface, for example, for instant messaging applications. Look in kdelibs/interfaces/kimproxy/interface for the interface specification and /library for a library that uses KTrader to get a list of all the applications implementing it and dcop to see if they are running. The other idea is interesting. To make it fit with the rest of the dcop syntax, and separate dcop from any knowledge of KDE ServiceTypes and all that (DCOP doesn't know anything about KDE, you see) you could provide a daemon that would take care of resolving a ServiceType to a list of running applications implementing it. This is what is currently done in kimproxy and probably in other places too. Then you would have dcop kded servicediscovery KIMIface -> (kopete,konversation-12345). I'm not sure about the usefulness of knowing the focused app in this context, but it's something KWin should provide So those applicaiton classes and common interfaces are for DCOP? I'd like to see common application classes that define a dcop interface for a specific class of applications, so that all applications of one class have the same dcop interface for common functions. Those interface classes can be pure virtual classes that are inherited. Knowing the focused app would be of great help for any script or progam (like khotkeys or lineakd) to determine which browser window, for example, to send a reload page command to, out of many instances of konqueror that may be running. kde applications could set a property with a DCOPRef on their windows and then kwin could tell you the dcop ref if you know the window.. sounds useful and not too hard. |