Workspace 6.21.5
|
TemporaryDirectory subclass with additional support for Qt resource search paths. More...
#include <Workspace/Application/System/temporarydirectorywithsearchpaths.h>
Public Member Functions | |
TemporaryDirectoryWithSearchPaths (const QString &prefix) | |
~TemporaryDirectoryWithSearchPaths () | |
Public Member Functions inherited from TemporaryDirectory | |
TemporaryDirectory (const QString &prefix) | |
TemporaryDirectory (const TemporaryDirectory &tmpDir) | |
~TemporaryDirectory () | |
QDir | getDir () const |
QString | getFilePath (const QString &fileName) const |
QString | getPath () const |
QString | getPrefix () const |
bool | isValid () const |
TemporaryDirectory & | operator= (const TemporaryDirectory &tmpDir) |
This class extends TemporaryDirectory by also augmenting the Qt resource search path for the specified prefix. It will add the temporary directory to the front of the list of search paths for the specified prefix. The original list of search paths will be restored when the object is destroyed.
TemporaryDirectoryWithSearchPaths | ( | const QString & | prefix | ) |
prefix | The prefix to use for the temporary directory. The final name of the temporary directory will be this prefix with some characters including the process id appended to it. The path to the temporary directory is prepended to the Qt resource search path for prefix as well. |
The permissions of the temporary directory will be set to allow only the current user to read from or write to it.