[Panel-devel] DataEngine and Corona patches

Thomas Georgiou tageorgiou at gmail.com
Thu Aug 23 21:33:00 CEST 2007


On Wednesday 15 August 2007 02:52:05 pm Aaron J. Seigo wrote:
> On Wednesday 15 August 2007, Percy Leonhardt wrote:
> > On Wednesday 08 August 2007, Aaron J. Seigo wrote:
> > > wrong. sourceRequested may result in the source being created. that's
> > > the whole point of calling sourceRequested and it returning a bool. if
> > > the engine can't create the source, then it returns false. otherwise,
> > > sourceRequested creates the source and returns true.
> >
> > BTW: how is the data engine supposed to create the source? Is it okay to
> > create a new datacontainer and then use addSource()?
> >
> > Or should I use setData() like seen in other engines?
>
> either way works. whichever is easiest or makes the most sense for you and
> your particular engine.
>
> > Problem is, that I
> > don't really have something to set in requestSource().
>
> at the very least, create something even if it doesn't have any data() yet.

If a DataContainer is created, does that count as being updated?

Now, it does not, but emitting updated on creation of the DataContainer seems 
to be a more logical solution.

Thomas


More information about the Panel-devel mailing list