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
@@ -60,49 +60,59 @@ class DateFormat;
60 * to the global device config and specialized functions to get information 60 * to the global device config and specialized functions to get information
61 * out of this config like Weekstart or Owner name. 61 * out of this config like Weekstart or Owner name.
62 * 62 *
63 * @todo ODP implement the things from Global which are good 63 * @todo ODP implement the things from Global which are good
64 * @author mickey,alwin,zecke 64 * @author mickey,alwin,zecke
65 * @version 0.1 65 * @version 0.1
66 */ 66 */
67class OGlobal : public Global 67class 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 //@}
101 111
102 //FIXME Do we want to put that into OApplication as in KApplication? -zecke 112 //FIXME Do we want to put that into OApplication as in KApplication? -zecke
103 // We already have a per-application config in OApplication 113 // We already have a per-application config in OApplication
104 // ( accessed through oApp->config() ), but this one is the global one! -mickeyl 114 // ( accessed through oApp->config() ), but this one is the global one! -mickeyl
105 /** @name Config and Owner related Information 115 /** @name Config and Owner related Information
106 * 116 *
107 */ 117 */
108 //@{ 118 //@{