|
|
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:
pathname | The full path of the file you want to test |
mode | The 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@boris.devel.redhat.com on Fri Apr 27 17:30:04 200. |