KDECore
ktempdir.cpp
Go to the documentation of this file.
1 /* kate: tab-indents off; replace-tabs on; tab-width 4; remove-trailing-space on; encoding utf-8;*/
82 (void) create( directoryPrefix.isEmpty() ? KStandardDirs::locateLocal("tmp", KGlobal::mainComponent().componentName()) : directoryPrefix , mode);
static bool removeDir(const QString &path)
Remove a directory and all its contents.
Definition: ktempdir.cpp:259
bool create(const QString &directoryPrefix, int mode)
Creates a "random" directory with specified mode.
Definition: ktempdir.cpp:85
~KTempDir()
The destructor deletes the directory and its contents if autoRemove is set to true.
Definition: ktempdir.cpp:154
bool exists() const
Returns true if a temporary directory has successfully been created and has not been unlinked yet...
Definition: ktempdir.cpp:173
int status() const
Returns the status of the directory creation based on errno.
Definition: ktempdir.cpp:163
KTempDir(const QString &directoryPrefix=QString(), int mode=0700)
Creates a temporary directory with the name:
Definition: ktempdir.cpp:80
static QString locateLocal(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
This function is much like locate.
Definition: kstandarddirs.cpp:2091
const KComponentData & mainComponent()
Returns the global component data.
Definition: kglobal.cpp:144
void setAutoRemove(bool autoRemove)
Turn automatic deletion of the directory on or off.
Definition: ktempdir.cpp:178
QString name() const
Returns the full path and name of the directory, including a trailing '/'.
Definition: ktempdir.cpp:168
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.