[Okular-devel] Okular and KActivities

Albert Astals Cid aacid at kde.org
Fri Nov 25 18:43:24 UTC 2011


El Divendres, 25 de novembre de 2011, a les 10:51:29, Ivan Čukić va escriure:
> A.S. Please keep me in the replies, since I'm not on this list.
> 
> Hi all,

Hi

> For activities to work properly* (both Plasma Active and Desktop), we
> need applications to tell us which documents they open.
> 
> I'm planning to patch Okular first (first of non-active apps) to
> support sending these events (essentially open and close events).

Great, I was planning to do this myself (re 
http://tsdgeos.blogspot.com/2011/11/okular-and-send-by-mail.html) but i never 
actually got to it.

> 
> I've been browsing the code, and the place where it seems the most
> logical to put it is the Document class since it knows the basic info
> about the document, and it knows which widget is the parent of the
> document.
> 
> Naturally, it would be in ifdef HAS_KACTIVITIES blocks - so an
> optional compile-time dependency. And even if compiled with
> libkactivities, it still remains an optional runtime dependency.
> (libkactivities is a thin library - interface to the activity manager
> daemon)
> 
> Thoughts?

Whithout having a clue of what the code has to do, have you thought putting it 
on KReadOnlyPart::openUrl/openFile? This way [almost] all kparts automagically 
work?

Thanks for offering to do the work :-)

Albert

> 
> * automatic scoring, resource relation, share-like-connect concept etc.


More information about the Okular-devel mailing list