org.kde.koala
public class KTempDir extends Object implements QtSupport
UNKNOWN: The KTempDir class creates a unique directory for temporary use.
Constructor Summary | |
---|---|
protected | KTempDir(Class dummy) |
KTempDir(String directoryPrefix, int mode)
Creates a temporary directory with the name:
\p \ directoryPrefixis "$KDEHOME/tmp-$HOST/appname" | |
KTempDir(String directoryPrefix) | |
KTempDir() |
Method Summary | |
---|---|
protected boolean | create(String directoryPrefix, int mode)
Creates a "random" directory with specified mode |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
boolean | existing() |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
String | name()
Returns the full path and name of the directory, including a trailing '/'. |
QDir | qDir()
Returns the QDir of the temporary directory. |
void | setAutoDelete(boolean autoDelete)
Turn automatic deletion on or off.
|
protected void | setError(int error)
Sets the errno value |
int | status()
Returns the status of the directory creation based on errno. (see errno.h)
0 means OK.
|
void | unlink()
Deletes the directory recursively |
directoryPrefixis "$KDEHOME/tmp-$HOST/appname"
Parameters: directoryPrefix the prefix of the file name, or null for the default value mode the file permissions, almost always in octal. The first digit selects permissions for the user who owns the file: read (4), write (2), and execute (1); the second selects permissions for other users in the file's group, with the same values; and the fourth for other users not in the file's group, with the same values.
UNKNOWN: Creates a temporary directory with the name: \p \
Parameters: directoryPrefix to use when creating temp directory (the rest is generated randomly) mode directory permissions
Returns: bool true upon sucess
UNKNOWN: Creates a "random" directory with specified mode
Returns: true if a temporary directory has successfully been created and not been unlinked yet
UNKNOWN:
Returns: The name of the directory, or null if creating the directory has failed or the directory has been unlinked
UNKNOWN: Returns the full path and name of the directory, including a trailing '/'.
Returns: QDir directory information of the directory or 0 if their is no managed directory The caller has to free the pointer open for writing to the
UNKNOWN: Returns the QDir of the temporary directory.
Parameters: autoDelete true to turn automatic deletion on
UNKNOWN: Turn automatic deletion on or off.
Parameters: error the value to set the status to.
UNKNOWN: Sets the errno value
Returns: the errno status, 0 means ok
UNKNOWN: Returns the status of the directory creation based on errno.
UNKNOWN: Deletes the directory recursively