[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: QML DataSource
From:       Saurabh Sood <saurabhsood91 () gmail ! com>
Date:       2011-10-06 17:16:24
Message-ID: CADoJH=2QCOnf6JFex9Lp0c+CXDxgsnuv-bGgiq=iGby46XTG_w () mail ! gmail ! com
[Download RAW message or body]

oh...i read misread the statement. it means that if datachanged is
emitted, then there is a surety that the data has been set. that
really had me very confused at one point of time.. :)

Regards,.
saurabh

On 10/6/11, Aaron J. Seigo <aseigo@kde.org> wrote:
> On Thursday, October 6, 2011 20:46:14 Saurabh Sood wrote:
>> quite get the point, where you said that when a source appears, it may
>> not have all data in place.
>
> DataEngines are asynchronous. there is no guarantee as to when the data will
> arrive from them, just that it will at some point in the future.
>
> so imagine that there is a source called "kde.org" that represents the
> kde.org
> web page. the DataEngine may create that source (causing sourceAdded to be
> emited) and then begin fetching the web page. some time later, the http
> request returns with all the data and the DataEngine updates the "kde.org"
> source with that data (causing dataUpdated to be called).
>
> just because a source exists does not mean that it will have had a chance to
> get all of its data. sourceAdded is there just to let you know a given
> source
> has appeared, not that it has accumulated data.
>
> that is what dataUpdated is for.
>
> --
> 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
>
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic