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 <ase...@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