Re: Accessing dataengine from different plasmoid

2012-02-23 Thread Simone Gaiarin
Thanks. I found the way to do it following your advise. 2012/2/22 Weng Xuetian : > 在 2012年2月22日 星期三 12:59:58,Simone Gaiarin 写道: >> I'm writing a plasmoid to control redshift. >> Redshift is a program that change the colour temperature of the monitor. >> >> Here you can find the current plasmoid I

Re: Accessing dataengine from different plasmoid

2012-02-22 Thread Weng Xuetian
在 2012年2月22日 星期三 12:59:58,Simone Gaiarin 写道: > I'm writing a plasmoid to control redshift. > Redshift is a program that change the colour temperature of the monitor. > > Here you can find the current plasmoid I wrote: > http://kde-apps.org/content/show.php/Redshift+plasmoid?content8737 > > The cur

Re: Accessing dataengine from different plasmoid

2012-02-22 Thread Simone Gaiarin
I'm writing a plasmoid to control redshift. Redshift is a program that change the colour temperature of the monitor. Here you can find the current plasmoid I wrote: http://kde-apps.org/content/show.php/Redshift+plasmoid?content=148737 The current plasmoid span a redshift process from inside of it

Re: Accessing dataengine from different plasmoid

2012-02-22 Thread Weng Xuetian
在 2012年2月22日 星期三 10:45:13,Simone Gaiarin 写道: > Thank you. The problem was that I didn't run the plasmoid on the same > process. > > What can be the best way to store a KProcess to the dataengine? > Idea 1: > Subclass the DataContainer class and store the KProcess in that class, > like the Executabl

Re: Accessing dataengine from different plasmoid

2012-02-22 Thread Simone Gaiarin
Thank you. The problem was that I didn't run the plasmoid on the same process. What can be the best way to store a KProcess to the dataengine? Idea 1: Subclass the DataContainer class and store the KProcess in that class, like the Executable dataEngine does. When the source is requested i use addS

Re: Accessing dataengine from different plasmoid

2012-02-21 Thread Aaron J. Seigo
On Tuesday, February 21, 2012 17:16:35 Simone Gaiarin wrote: > I need some explanation on how dataengines work. I can't understand if > the dataengine is shared among plasmoids or if every plasmoid creates > his own dataengine that retrive info. DataEngines are shared and read-only. Services are n