From kde-core-devel Tue Jan 04 11:52:44 2005 From: Waldo Bastian Date: Tue, 04 Jan 2005 11:52:44 +0000 To: kde-core-devel Subject: Re: Porting kio-slaves to GnomeVFS modules Message-Id: <200501041301.58154.bastian () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=110483956407515 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart5341790.8J66cLMFkG" --nextPart5341790.8J66cLMFkG Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 04 January 2005 12:34, nf2 wrote: > Thiago Macieira wrote: > >nf wrote: > >>>You'll need to reimplement the SlaveBase class in order to receive > >>>input from the Gnome-VFS master. However, bear in mind that you must > >>>respect the usual C++ Binary Compatibility guidelines when doing so. > >> > >>I think we can't use them "as is". So binary compatibility won't be > >>possible. The main reason is that io-slaves are designed to run async > >>only. Therefore they provide single methods for "get", "put" or > >>"readDir" and push back data with callbacks. > > > >Binary Compatibility is not an option if you want to make anything usefu= l. > >You have to be binary compatible. > > > >You'll have the option to influence the ABI when KDE goes 4.0. But not > >before, nor ever again until 5.0. > > Of course i need to take care of that. If i put them into a different > library, which gets called by Wrapper (to sit in KIO or GnomeVFS), > binary compatibility shouldn't be an issue. :-) > > But i do have questions about kio-slaves and binary compatibility. For > instance when i want to add fields to the AuthInfo class. GnomeVFS wants > a "domain" field for SMB authentication for instance. > > (see > http://cvs.gnome.org/viewcvs/gnome-vfs/libgnomevfs/gnome-vfs-standard-cal= lb >acks.h?rev=3D1.12&view=3Dauto > > GnomeVFSModuleCallbackFullAuthenticationIn / > GnomeVFSModuleCallbackFullAuthenticationOut. > > ) > > Let's say i want to inherit AuthInfo with the class "AdvancedAuthInfo". > > The documentation says that's possible: "If you extend this class to add > additional parameters do not forget to overload the stream insertion and > extraction operators ("<<" and ">>") so that the added data can be > correctly serialized." The documentation means to say when you _change_ the class, I don't think t= he=20 class was ever intended to be subclassed. Cheers, Waldo =2D-=20 bastian@kde.org | Free Novell Linux Desktop 9 Evaluation Download bastian@suse.com | http://www.novell.com/products/desktop/eval.html --nextPart5341790.8J66cLMFkG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQBB2oW2N4pvrENfboIRAjQfAJ4mEFlCT3+YubM/XjWEtePyJ7alzgCglvn5 PPe4Z2dNxblj+wuymYte7fQ= =ut3l -----END PGP SIGNATURE----- --nextPart5341790.8J66cLMFkG--