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
const T * constData() const
bool exists() const
~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
bool isEmpty() const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
int status() const
Returns the status of the directory creation based on errno.
Definition: ktempdir.cpp:163
const ushort * utf16() const
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:145
int length() const
T * data()
char * data()
void setAutoRemove(bool autoRemove)
Turn automatic deletion of the directory on or off.
Definition: ktempdir.cpp:178
void resize(int size)
QString name() const
Returns the full path and name of the directory, including a trailing '/'.
Definition: ktempdir.cpp:168
QByteArray encodeName(const QString &fileName)
QString decodeName(const QByteArray &localFileName)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.