Functions | |
TQString | locate (const char *type, const TQString &filename, const TDEInstance *instance=TDEGlobal::instance()) |
TQString | locateLocal (const char *type, const TQString &filename, const TDEInstance *instance=TDEGlobal::instance()) |
TQString | locateLocal (const char *type, const TQString &filename, bool createDir, const TDEInstance *instance=TDEGlobal::instance()) |
Detailed Description
On The Usage Of 'locate' and 'locateLocal'.
Typical KDE applications use resource files in one out of three ways:
1) A resource file is read but is never written. A system default is supplied but the user can override this default in his local .kde directory:
2) A resource file is read and written. If the user has no local version of the file the system default is used. The resource file is always written to the users local .kde directory.
3) A resource file is read and written. No system default is used if the user has no local version of the file. The resource file is always written to the users local .kde directory.
Function Documentation
◆ locate()
|
related |
This function is just for convenience. It simply calls instance->dirs()->findResource(type, filename).
Definition at line 1689 of file kstandarddirs.cpp.
◆ locateLocal() [1/2]
|
related |
This function is much like locate. No check is made if the specified filename actually exists. Missing directories are created if createDir
is true. If filename is only a directory, without a specific file, filename must have a trailing slash.
Definition at line 1701 of file kstandarddirs.cpp.
◆ locateLocal() [2/2]
|
related |
This function is much like locate. However it returns a filename suitable for writing to. No check is made if the specified filename actually exists. Missing directories are created. If filename is only a directory, without a specific file, filename must have a trailing slash.
Definition at line 1695 of file kstandarddirs.cpp.