Hi all,
While we all love and cherish our KDE browsers (Konq and rekonq) there are many users of Firefox and Chromium. And they can not use share-like-connect, they can not have their web-pages linked to activities, they can not …
Is there a brave soul in our community (or a few brave souls) that are willing to write a small addon for any of the aforementioned programs that will
- know when a URL is loaded in a tab
- know when the user switches between tabs
- know the windowID of the window in which the tab resides, and
- and report those events to the activity manager?
Talking to the activity manager is the easiest part of it all, it has C bindings, it is a d-bus service, so take your pick.
If you’re interested, please write to us on plasma-devel at kde.org
@<a href="#comment-32865" rel="nofollow">Jason moofang</a>: The object that you need is in org.kde.ActivityManager /ActivityManager/Resources
For the apidox, you can see the <a href="https://projects.kde.org/projects/kde/kdelibs/kactivities/repository/revisions/master/entry/src/service/Resources.h" rel="nofollow">Resources.h</a> and <a href="https://projects.kde.org/projects/kde/kdelibs/kactivities/repository/revisions/master/entry/src/service/Event.h" rel="nofollow">Event.h</a>. The former contains the method docs, the later defines the enum for 'uint event'. (you should pass reason = 0)
Method of interest: <pre> void RegisterResourceEvent(
QString application,
uint windowId,
const QString & uri,
uint event,
uint reason);</pre>
And if you want to go one step further: <pre> void RegisterResourceMimeType(const QString & uri,
const QString & mimetype);</pre>
<pre> void RegisterResourceTitle(const QString & uri,
const QString & title);</pre>