[PATCH] KUser and new class KGroup

Jan Schäfer JanSchaefer at gmx.de
Fri Jun 4 18:13:56 BST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 04 June 2004 14:42, Simon Hausmann wrote:
> On Friday 04 June 2004 14:39, Jan Schäfer wrote:
> > On Friday 04 June 2004 12:46, Zack Rusin wrote:
> > > On Thursday 03 June 2004 12:00, Jan Schäfer wrote:
> > > > Hi,
> > > >
> > > > I have written a new class KGroup which represents a UNIX group.
> > > > It is very similar to KUser.
> > > > I also added some new methods to KUser.
> > > > What do you think? Can I commit?
> > >
> > > Besides the comments listed here, two commensts/questions:
> > > 1) what applications are using it?
> >
> > Currently only the new file sharing code that is located in
> > kdenetwork/filesharing. As soon as the patch is accepted, I will commit
> > the code that uses it.
> > Besides, I think that many applications could use that code and I am
> > actually wondering why nobody wrote that class yet (or wrote one but did
> > not include it in kdelibs).
>
> Probably because it actually is much less common for applications to
> need/use than it appears :) .
>
> Actually, what other use-cases are you thinking of?
I mean, if there is KUser why shouldn't there be KGroup?
A grep for 'struct group' in my KDE CVS (does not have all subdirs though) 
gives the following possibilities of using KGroup:

kdeadmin/kdat/FileInfoWidget.cpp
kdeadmin/kuser/kgroup.cpp  <-- this is another KGroup implementation
kdebase/kdm/kfrontend/kgreeter.cpp
kdebase/kioslave/nfs/kio_nfs.cpp
kdebase/kioslave/smb/kio_smb_browse.cpp
kdebase/kcontrol/kdm/main.cpp
kdebase/kcontrol/kfontinst/kio/KioFonts.cpp
kdelibs/kio/kio/chmodjob.cpp
kdelibs/kio/kio/kfileitem.cpp
kdelibs/kio/kio/karchive.cpp
kdelibs/kio/kfile/kpropertiesdialog.cpp
kdelibs/kdecore/kpty.cpp
kdelibs/kdecore/kstandarddirs.cpp
kdelibs/kioslave/file/file.cc

So I think there are enough cases where it could be used.

Greetings,

	Jan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQFAwK3UyXPDOD1/5gcRAopKAJ40oyjFRL6sz/kRPx85xQSDw4xgLACfRLVV
d/FMmZD1a8EegGfY14T2mUc=
=f1T/
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list