[PATCH] KUser and new class KGroup

André Wöbbeking Woebbeking at onlinehome.de
Sat Jun 5 10:25:55 BST 2004


On Saturday 05 June 2004 11:07, Alexander Neundorf wrote:
>
> Well, I don't want to sound negative, but which advantage would the
> KGroup class offer over
> struct group gr=getgrname(name)/getgrid(gid); ?
> This seems to be basically the two calls which are used in these
> places, not hard to understand, easy to use, well known UNIX API.
> Wrapping a class around it adds another layer, which means overhead
> (not much), another layer which can have bugs and another new API to
> learn.

- the API is more familiar as it's C++ and not plain C
- the string conversion is done in one place
- issues / features can be fixed / implemented in one place
- maybe it's more portable


André




More information about the kde-core-devel mailing list