summaryrefslogtreecommitdiff
authoralwin <alwin>2004-02-21 13:19:19 (UTC)
committer alwin <alwin>2004-02-21 13:19:19 (UTC)
commit814c3c8957f25d1436ce0b63c4201bbd2f340e7f (patch) (side-by-side diff)
tree613d6b1bf12756d5fcb8dddc60bda63e30f97a8a
parent4024cfd1e32a43d82361d6ba9977fe64db88e3ce (diff)
downloadopie-814c3c8957f25d1436ce0b63c4201bbd2f340e7f.zip
opie-814c3c8957f25d1436ce0b63c4201bbd2f340e7f.tar.gz
opie-814c3c8957f25d1436ce0b63c4201bbd2f340e7f.tar.bz2
docs
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;
* to the global device config and specialized functions to get information
* out of this config like Weekstart or Owner name.
*
* @todo ODP implement the things from Global which are good
* @author mickey,alwin,zecke
* @version 0.1
*/
class OGlobal : public Global
{
public:
// how do they relate to our Document Idea
/** @name Document System related functions
*
*/
//@{
static bool isAppLnkFileName( const QString& str );
static bool isDocumentFileName( const QString& file );
//@}
/** @name File Operations
* 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 );
static bool truncateFile( QFile &f, off_t size );
//@}
static QString generateUuid();
/** @name Convert Content
* Convert Content of a QByteArray
*/
//@{
static QByteArray encodeBase64(const QByteArray&, bool insertLF = false );
static QByteArray decodeBase64(const QByteArray& );
//@}
//FIXME Do we want to put that into OApplication as in KApplication? -zecke
// We already have a per-application config in OApplication
// ( accessed through oApp->config() ), but this one is the global one! -mickeyl
/** @name Config and Owner related Information
*
*/
//@{