summaryrefslogtreecommitdiff
path: root/libopie2
authoralwin <alwin>2004-02-20 17:23:20 (UTC)
committer alwin <alwin>2004-02-20 17:23:20 (UTC)
commit73c6183bb2971a117d638a8ea8b1f83016ae6fd6 (patch) (unidiff)
treeb0c59bbdc68a012e3b8127561140de38a907f4e8 /libopie2
parent7d53a7812716011023e3d1242d0503f4fcaadc26 (diff)
downloadopie-73c6183bb2971a117d638a8ea8b1f83016ae6fd6.zip
opie-73c6183bb2971a117d638a8ea8b1f83016ae6fd6.tar.gz
opie-73c6183bb2971a117d638a8ea8b1f83016ae6fd6.tar.bz2
includes changed
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/oglobal.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/libopie2/opiecore/oglobal.h b/libopie2/opiecore/oglobal.h
index 012f240..33dcb3c 100644
--- a/libopie2/opiecore/oglobal.h
+++ b/libopie2/opiecore/oglobal.h
@@ -1,101 +1,101 @@
1/* 1/*
2                 This file is part of the Opie Project 2 This file is part of the Opie Project
3              Copyright (C) 2003 Michael 'Mickey' Lauer <mickey@Vanille.de> 3 Copyright (C) 2003 Michael 'Mickey' Lauer <mickey@Vanille.de>
4 =. 4 =.
5 .=l. 5 .=l.
6           .>+-= 6 .>+-=
7 _;:,     .>    :=|. This program is free software; you can 7_;:, .> :=|. This program is free software; you can
8.> <`_,   >  .   <= redistribute it and/or modify it under 8.> <`_, > . <= redistribute it and/or modify it under
9:`=1 )Y*s>-.--   : the terms of the GNU Library General Public 9:`=1 )Y*s>-.-- : the terms of the GNU Library General Public
10.="- .-=="i,     .._ License as published by the Free Software 10.="- .-=="i, .._ License as published by the Free Software
11 - .   .-<_>     .<> Foundation; either version 2 of the License, 11- . .-<_> .<> Foundation; either version 2 of the License,
12     ._= =}       : or (at your option) any later version. 12 ._= =} : or (at your option) any later version.
13    .%`+i>       _;_. 13 .%`+i> _;_.
14    .i_,=:_.      -<s. This program is distributed in the hope that 14 .i_,=:_. -<s. This program is distributed in the hope that
15     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 15 + . -:. = it will be useful, but WITHOUT ANY WARRANTY;
16    : ..    .:,     . . . without even the implied warranty of 16 : .. .:, . . . without even the implied warranty of
17    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 17 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A
18  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 18 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU
19..}^=.=       =       ; Library General Public License for more 19..}^=.= = ; Library General Public License for more
20++=   -.     .`     .: details. 20++= -. .` .: details.
21 :     =  ...= . :.=- 21: = ...= . :.=-
22 -.   .:....=;==+<; You should have received a copy of the GNU 22-. .:....=;==+<; You should have received a copy of the GNU
23  -_. . .   )=.  = Library General Public License along with 23 -_. . . )=. = Library General Public License along with
24    --        :-=` this library; see the file COPYING.LIB. 24 -- :-=` this library; see the file COPYING.LIB.
25 If not, write to the Free Software Foundation, 25 If not, write to the Free Software Foundation,
26 Inc., 59 Temple Place - Suite 330, 26 Inc., 59 Temple Place - Suite 330,
27 Boston, MA 02111-1307, USA. 27 Boston, MA 02111-1307, USA.
28*/ 28*/
29 29
30#ifndef OGLOBAL_H 30#ifndef OGLOBAL_H
31#define OGLOBAL_H 31#define OGLOBAL_H
32 32
33#include <qpe/global.h> 33#include <qpe/global.h>
34#include <qpe/timestring.h> 34#include <qpe/timestring.h>
35 35
36#include <opie2/oconfig.h> 36#include <opie2/oconfig.h>
37#include <static.h> 37#include <sys/types.h>
38 38
39//FIXME Is it wise or even necessary to inherit OGlobal from Global? 39//FIXME Is it wise or even necessary to inherit OGlobal from Global?
40// once we totally skip libqpe it should ideally swallow Global -zecke 40// once we totally skip libqpe it should ideally swallow Global -zecke
41// You're right. I deleted global as the base class. -mickeyl 41// You're right. I deleted global as the base class. -mickeyl
42 42
43 43
44class QFile; 44class QFile;
45class QString; 45class QString;
46/** 46/**
47 *\brief OGlobal contains a list of generic functions 47 *\brief OGlobal contains a list of generic functions
48 * 48 *
49 * The class OGlobal contains small utility functions 49 * The class OGlobal contains small utility functions
50 * which might be useful for other applications to use. It features access 50 * which might be useful for other applications to use. It features access
51 * to the global device config and specialized functions to get information 51 * to the global device config and specialized functions to get information
52 * out of this config like Weekstart or Owner name. 52 * out of this config like Weekstart or Owner name.
53 * 53 *
54 * @todo ODP implement the things from Global which are good 54 * @todo ODP implement the things from Global which are good
55 */ 55 */
56class OGlobal : public Global 56class OGlobal : public Global
57{ 57{
58public: 58public:
59 59
60 // how do they relate to our Document Idea 60 // how do they relate to our Document Idea
61 /** @name Document System related functions 61 /** @name Document System related functions
62 * 62 *
63 */ 63 */
64 //@{ 64 //@{
65 static bool isAppLnkFileName( const QString& str ); 65 static bool isAppLnkFileName( const QString& str );
66 static bool isDocumentFileName( const QString& file ); 66 static bool isDocumentFileName( const QString& file );
67 //@} 67 //@}
68 68
69 /** @name File Operations 69 /** @name File Operations
70 * File operations provided by OGlobal 70 * File operations provided by OGlobal
71 */ 71 */
72 //@{ 72 //@{
73 static QString tempDirPath(); 73 static QString tempDirPath();
74 static QString homeDirPath(); 74 static QString homeDirPath();
75 static QString tempFileName( const QString& ); 75 static QString tempFileName( const QString& );
76 static bool renameFile( const QString& from, const QString& to ); 76 static bool renameFile( const QString& from, const QString& to );
77 static bool truncateFile( QFile &f, off_t size ); 77 static bool truncateFile( QFile &f, off_t size );
78 //@} 78 //@}
79 79
80 80
81 static QString generateUuid(); 81 static QString generateUuid();
82 82
83 /** @name Convert Content 83 /** @name Convert Content
84 * Convert Content of a QByteArray 84 * Convert Content of a QByteArray
85 */ 85 */
86 //@{ 86 //@{
87 static QByteArray encodeBase64(const QByteArray& ); 87 static QByteArray encodeBase64(const QByteArray& );
88 static QByteArray decodeBase64(const QByteArray& ); 88 static QByteArray decodeBase64(const QByteArray& );
89 //@} 89 //@}
90 90
91 //FIXME Do we want to put that into OApplication as in KApplication? -zecke 91 //FIXME Do we want to put that into OApplication as in KApplication? -zecke
92 // We already have a per-application config in OApplication 92 // We already have a per-application config in OApplication
93 // ( accessed through oApp->config() ), but this one is the global one! -mickeyl 93 // ( accessed through oApp->config() ), but this one is the global one! -mickeyl
94 /** @name Config and Owner related Information 94 /** @name Config and Owner related Information
95 * 95 *
96 */ 96 */
97 //@{ 97 //@{
98 static OConfig* config(); 98 static OConfig* config();
99 static QString ownerName(); 99 static QString ownerName();
100 static bool weekStartsOnMonday(); 100 static bool weekStartsOnMonday();
101 static bool useAMPM(); 101 static bool useAMPM();