summaryrefslogtreecommitdiff
path: root/libopie2/opiecore
Side-by-side diff
Diffstat (limited to 'libopie2/opiecore') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/oglobal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libopie2/opiecore/oglobal.h b/libopie2/opiecore/oglobal.h
index 5b43f01..aeee75e 100644
--- a/libopie2/opiecore/oglobal.h
+++ b/libopie2/opiecore/oglobal.h
@@ -81,7 +81,17 @@ public:
* File operations provided by OGlobal
*/
//@{
+ /** the content of TEMP
+ * reads the environment variable TEMP and returns the content.
+ * if not set returns "/tmp"
+ * @return a string containing a dir without trailing slash!
+ */
static QString tempDirPath();
+ /** the content of HOME
+ * reads the environment variable HOME and returns the content.
+ * if not set returns "/"
+ * @return a string containing a dir without trailing slash!
+ */
static QString homeDirPath();
static QString tempFileName( const QString& );
static bool renameFile( const QString& from, const QString& to );