checkAccess()

David Faure faure at kde.org
Sun Oct 16 23:23:51 BST 2005


On Sunday 16 October 2005 17:21, Michael Brade wrote:
> On Friday 14 October 2005 18:59, Benjamin Meyer wrote:
> > in kapplication.h there is a global function checkAccess().  It doesn't
> > have anything to do with kapplication so I would like to find a better home
> > for it.  KStandardDirs was mentioned so I would like to get some feedback
> > (or better ideas).
> Nah, checkAccess() has nothing to do with KDE's standard dirs, i.e. 
> KStandardDirs. 

Yes, but kstandarddirs is the closest thing in kdecore which has to do
with files and directories.
OK, or KAuthority, since it's about checking whether access to something
is authorized :)

> How about kglobal.h, or even better, kio/kio/global.h? The  
> docu says "A namespace for KIO globals", sounds like what checkAccess() is 
> supposed to be.

It's used a lot by kconfigbackend, so it can't be moved down to KIO.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).





More information about the kde-core-devel mailing list