Copy text to clipboard from javascript plasmoid
Aaron J. Seigo
aseigo at kde.org
Sat Feb 27 17:56:11 CET 2010
On February 27, 2010, Nikola Milenković wrote:
> Or it's a job for data engine?
either a DataEngine or just a Service.
a DataEngine would largely imply keeping the data that's on the clipboard in
memory all the time; a Service would allow getting the data only when needed
and discarding it immediately.
there is a clipboard dataengine in playground but it probably needs some
additional work (and it's been there forever :)
what might work nicely is a dataengine that advertises the various clipboards
available and whether or not they have changed (allowing visualizations to
react on clipboard value change), then serviceForSource could return a service
that could be used to get the actual data off the clipboard.
sounds like something that the pastebin plasmoid could also use :)
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Qt Development Frameworks
More information about the Plasma-devel
mailing list