Small utility functions to help handle platform-specific functions. More...
Functions | |
| bool | createHardLink (const QString &from, const QString &to) |
| Creates a hard link at from, pointing to to. More... | |
| QString | getExecutablePath () |
| Return absolute path to the executable that was used to launch the process. More... | |
| QString | getLibraryPath (const QString &libraryName) |
| This function returns the path to a library the running process is linked against. More... | |
| QString | getModuleUserDataPath (const char *module, bool isapplication) |
| Return path to the user data directory of the given module. More... | |
| int | getProcessId () |
| Returns the current process identifier. More... | |
| QString | getUserDocumentsPath () |
| Return absolute path to the user's "Documents" directory. More... | |
| QString | getUserHomePath () |
| Return absolute path to the user's home directory. More... | |
| int | numberOfHardLinks (const QString &file) |
| Returns the number of hard links to the file. More... | |
| void * | openPlugin (const char *path) |
| Open a dynamic library. More... | |
| uint64_t | processMemoryUsage () |
| Returns the memory usage of the process, in bytes This function is not implemented for all platforms. More... | |
| void | setEnv (const QString &name, const QString &value) |
| Sets environment variable. More... | |
Small utility functions to help handle platform-specific functions.
| bool Radiant::PlatformUtils::createHardLink | ( | const QString & | from, |
| const QString & | to | ||
| ) |
Creates a hard link at from, pointing to to.
| from | path where the new link will be created |
| to | existing file, target of the new link |
| QString Radiant::PlatformUtils::getExecutablePath | ( | ) |
Return absolute path to the executable that was used to launch the process.
| QString Radiant::PlatformUtils::getLibraryPath | ( | const QString & | libraryName | ) |
This function returns the path to a library the running process is linked against.
| libraryName | (part of) linked library name to search for |
| QString Radiant::PlatformUtils::getModuleUserDataPath | ( | const char * | module, |
| bool | isapplication | ||
| ) |
Return path to the user data directory of the given module.
| module | Name of the module whose data directory is being queried |
| isapplication | True if the modul is application, false otherwise. |
| int Radiant::PlatformUtils::getProcessId | ( | ) |
Returns the current process identifier.
| QString Radiant::PlatformUtils::getUserDocumentsPath | ( | ) |
Return absolute path to the user's "Documents" directory.
| QString Radiant::PlatformUtils::getUserHomePath | ( | ) |
Return absolute path to the user's home directory.
| int Radiant::PlatformUtils::numberOfHardLinks | ( | const QString & | file | ) |
Returns the number of hard links to the file.
| file | file path |
| void* Radiant::PlatformUtils::openPlugin | ( | const char * | path | ) |
Open a dynamic library.
| path | Full path to plugin |
| uint64_t Radiant::PlatformUtils::processMemoryUsage | ( | ) |
Returns the memory usage of the process, in bytes This function is not implemented for all platforms.
| void Radiant::PlatformUtils::setEnv | ( | const QString & | name, |
| const QString & | value | ||
| ) |
Sets environment variable.
| name | name of the environment variable |
| value | value of the environment variable |