[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Configuring a dataengine from plasma applet
From: David Edmundson <david () davidedmundson ! co ! uk>
Date: 2015-01-12 10:08:21
Message-ID: CAGeFrHCgWaOk17Zx3d-br2xYKHvk-Aa8ZCJm_zOk9eg41vmNcQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Sun, Jan 11, 2015 at 7:24 PM, Stefan Bruens <stefan.bruens@rwth-aachen.de
> wrote:
> Hi everyone,
>
> I a currently writing a plasma applet for KF5, as well as a dataengine.
> Both
> are running fine, but now I want to configure the dataengine from the
> applet.
> The settings for the dataengine are session-global.
>
You can't really configure a dataengine. By design they're meant to be
separated from where they're being used, and in general are read only.
You could combine it with a Plasma::Service to set data that writes to it's
own config file then updates the dataengine.
> As far as I can see, the org.kde.plasma.configuration components are only
> suited for creating configurations for applet instances.
>
> On the other hand, my dataengine maybe should better be implemented as (an
> interface to) a kservice. Is this the right thing to do?
>
Native QML Plugins can be used directly instead of going via dataengines.
The notes applet might be a good example as that contains some session-wide
objects.
> Thankful for any comments, kind regards,
>
> Stefan
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>
[Attachment #5 (text/html)]
<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan \
11, 2015 at 7:24 PM, Stefan Bruens <span dir="ltr"><<a \
href="mailto:stefan.bruens@rwth-aachen.de" \
target="_blank">stefan.bruens@rwth-aachen.de</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi everyone,<br> <br>
I a currently writing a plasma applet for KF5, as well as a dataengine. Both<br>
are running fine, but now I want to configure the dataengine from the applet.<br>
The settings for the dataengine are \
session-global.<br></blockquote><div><br></div><div>You can't really configure a \
dataengine. By design they're meant to be separated from where they're being \
used, and in general are read only.</div><div><br></div><div>You could combine it \
with a Plasma::Service to set data that writes to it's own config file then \
updates the dataengine. </div><div><br></div><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
As far as I can see, the org.kde.plasma.configuration components are only<br>
suited for creating configurations for applet instances.<br>
<br>
On the other hand, my dataengine maybe should better be implemented as (an<br>
interface to) a kservice. Is this the right thing to \
do?<br></blockquote><div><br></div><div>Native QML Plugins can be used directly \
instead of going via dataengines. </div><div>The notes applet might be a good \
example as that contains some session-wide objects.</div><div><br></div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <br>
Thankful for any comments, kind regards,<br>
<br>
Stefan<br>
<br>
>> Visit <a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to \
unsubscribe <<<br> </blockquote></div><br></div></div>
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic