From kde-panel-devel Thu Aug 23 23:18:44 2007 From: "Aaron J. Seigo" Date: Thu, 23 Aug 2007 23:18:44 +0000 To: kde-panel-devel Subject: Re: [Panel-devel] DataEngine and Corona patches Message-Id: <200708231718.44745.aseigo () kde ! org> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=118791120930788 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============2079104715==" --===============2079104715== Content-Type: multipart/signed; boundary="nextPart15433107.2y2LfH6i2v"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart15433107.2y2LfH6i2v Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 23 August 2007, Thomas Georgiou wrote: > 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? no. it has to be passed to addSource(DataContainer* source). > Now, it does not, but emitting updated on creation of the DataContainer > seems to be a more logical solution. not really, since it can't know where to send the signal until it is=20 associated with an engine. =2D-=20 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 Trolltech --nextPart15433107.2y2LfH6i2v Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGzhXU1rcusafx20MRAgYEAJ9bQaIc5tSPhlOE/px0yzqPqV3wMwCcC+3H 4mNrghLB6ZirNHwmgdjFuPw= =sPko -----END PGP SIGNATURE----- --nextPart15433107.2y2LfH6i2v-- --===============2079104715== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Panel-devel mailing list Panel-devel@kde.org https://mail.kde.org/mailman/listinfo/panel-devel --===============2079104715==--