QPtrDict and DOM::Node ...
David Faure
dfaure at trolltech.com
Tue Apr 29 01:36:46 BST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 29 April 2003 02:02, Peter Kelly wrote:
> These are wrappers around the impl classes and you can
> create a node object by passing in the impl to the constructor, and then
> perform all of the neccessary operations through the Node wrapper.
I agree with you in principle, but the problem is:
[...]
protected:
Element(ElementImpl *_impl);
This isn't public, so you can't do it. khtml/ecma does it with some "friends"
declarations here and there (e.g. dom_node.h: friend class KJS::HTMLDocument;)
but this sucks.
IMHO such constructors should be made public, so that it's possible to
do the above: use the handles as void pointers, from external code, without
the need to actually use the Impl classes themselves.
Dirk, would that be ok? I remember some objections when I suggested this
for khtml/ecma (instead of friends), but I think this is the best solution.
- --
David FAURE, faure at kde.org, sponsored by TrollTech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
How to write a Makefile.am for KDE/Qt code:
http://developer.kde.org/documentation/other/makefile_am_howto.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+rcke72KcVAmwbhARAjUwAJwLdUkaSUB/qtNYdXXibyn6eF9X6wCfXViS
bcFdrGZShHWdqzUJiFFFn70=
=lUVQ
-----END PGP SIGNATURE-----
More information about the kfm-devel
mailing list