summaryrefslogtreecommitdiff
Unidiff
Diffstat (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
@@ -68,33 +68,43 @@ class OGlobal : public Global
68{ 68{
69public: 69public:
70 70
71 // how do they relate to our Document Idea 71 // how do they relate to our Document Idea
72 /** @name Document System related functions 72 /** @name Document System related functions
73 * 73 *
74 */ 74 */
75 //@{ 75 //@{
76 static bool isAppLnkFileName( const QString& str ); 76 static bool isAppLnkFileName( const QString& str );
77 static bool isDocumentFileName( const QString& file ); 77 static bool isDocumentFileName( const QString& file );
78 //@} 78 //@}
79 79
80 /** @name File Operations 80 /** @name File Operations
81 * File operations provided by OGlobal 81 * File operations provided by OGlobal
82 */ 82 */
83 //@{ 83 //@{
84 /** the content of TEMP
85 * reads the environment variable TEMP and returns the content.
86 * if not set returns "/tmp"
87 * @return a string containing a dir without trailing slash!
88 */
84 static QString tempDirPath(); 89 static QString tempDirPath();
90 /** the content of HOME
91 * reads the environment variable HOME and returns the content.
92 * if not set returns "/"
93 * @return a string containing a dir without trailing slash!
94 */
85 static QString homeDirPath(); 95 static QString homeDirPath();
86 static QString tempFileName( const QString& ); 96 static QString tempFileName( const QString& );
87 static bool renameFile( const QString& from, const QString& to ); 97 static bool renameFile( const QString& from, const QString& to );
88 static bool truncateFile( QFile &f, off_t size ); 98 static bool truncateFile( QFile &f, off_t size );
89 //@} 99 //@}
90 100
91 101
92 static QString generateUuid(); 102 static QString generateUuid();
93 103
94 /** @name Convert Content 104 /** @name Convert Content
95 * Convert Content of a QByteArray 105 * Convert Content of a QByteArray
96 */ 106 */
97 //@{ 107 //@{
98 static QByteArray encodeBase64(const QByteArray&, bool insertLF = false ); 108 static QByteArray encodeBase64(const QByteArray&, bool insertLF = false );
99 static QByteArray decodeBase64(const QByteArray& ); 109 static QByteArray decodeBase64(const QByteArray& );
100 //@} 110 //@}