kdecore Globals


Annotated List
Files
Globals
Hierarchy
Index

ckey.h

drag.h

kaccel.h

kapp.h

kcharsetsdata.h

kckey.h

kconfigdata.h

kdebug.h

kglobalaccel.h

kpixmap.h

kprocctrl.h

kstring.h

uint  stringToKey ( const char * sKey )

#include <kaccel.h>

Returns the key code corresponding to the string sKey or zero if the string is not recognized. The string must be something like "SHIFT+A", "F1+CTRL+ALT" or "Backspace" for example. That is, a key plus a combination of SHIFT, CTRL and ALT.

const QString  keyToString ( uint keyCode, bool i18_n = false )

#include <kaccel.h>

Returns a string corresponding to the key code keyCode, which is empty if keyCode is not recognized or zero.

bool  checkAccess (const char *pathname, int mode)

#include <kapp.h>

Check, if a file may be accessed in a given mode. This is a wrapper around the access() system call. checkAccess() calls access() with the given parameters. If this is OK, checkAccess() returns true. If not, and W_OK is part of mode, it is checked if there is write access to the directory. If yes, checkAccess() returns true. In all other cases checkAccess() returns false.

Other than access() this function EXPLICITELY ignores non-existant files if checking for write access.

Parameters:
pathnameThe full path of the file you want to test
modeThe access mode, as in the access() system call.

Returns: Whether the access is allowed, true = Access allowed

uint  keyToXMod ( uint keyCode )

#include <kglobalaccel.h>

Returns the X key modifier for the key code keyCode.

uint  keyToXSym ( uint keyCode )

#include <kglobalaccel.h>

Returns the X key sym for the key code keyCode.


Generated by: prospector@porky.devel.redhat.com on Tue Aug 15 09:55:31 2000, using kdoc 2.0a36.