summaryrefslogtreecommitdiff
path: root/libopie2
Unidiff
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/oglobal.h70
1 files changed, 44 insertions, 26 deletions
diff --git a/libopie2/opiecore/oglobal.h b/libopie2/opiecore/oglobal.h
index 33dcb3c..d09d73e 100644
--- a/libopie2/opiecore/oglobal.h
+++ b/libopie2/opiecore/oglobal.h
@@ -1,27 +1,28 @@
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 Copyright (C) 2004 Holger 'zecke' Freyther <zecke@handhelds.org>
4 =. 5 =.
5 .=l. 6 .=l.
6 .>+-= 7           .>+-=
7_;:, .> :=|. This program is free software; you can 8 _;:,     .>    :=|. This program is free software; you can
8.> <`_, > . <= redistribute it and/or modify it under 9.> <`_,   >  .   <= redistribute it and/or modify it under
9:`=1 )Y*s>-.-- : the terms of the GNU Library General Public 10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
10.="- .-=="i, .._ License as published by the Free Software 11.="- .-=="i,     .._ License as published by the Free Software
11- . .-<_> .<> Foundation; either version 2 of the License, 12 - .   .-<_>     .<> Foundation; either version 2 of the License,
12 ._= =} : or (at your option) any later version. 13     ._= =}       : or (at your option) any later version.
13 .%`+i> _;_. 14    .%`+i>       _;_.
14 .i_,=:_. -<s. This program is distributed in the hope that 15    .i_,=:_.      -<s. This program is distributed in the hope that
15 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
16 : .. .:, . . . without even the implied warranty of 17    : ..    .:,     . . . without even the implied warranty of
17 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
18 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
19..}^=.= = ; Library General Public License for more 20..}^=.=       =       ; Library General Public License for more
20++= -. .` .: details. 21++=   -.     .`     .: details.
21: = ...= . :.=- 22 :     =  ...= . :.=-
22-. .:....=;==+<; You should have received a copy of the GNU 23 -.   .:....=;==+<; You should have received a copy of the GNU
23 -_. . . )=. = Library General Public License along with 24  -_. . .   )=.  = Library General Public License along with
24 -- :-=` this library; see the file COPYING.LIB. 25    --        :-=` this library; see the file COPYING.LIB.
25 If not, write to the Free Software Foundation, 26 If not, write to the Free Software Foundation,
26 Inc., 59 Temple Place - Suite 330, 27 Inc., 59 Temple Place - Suite 330,
27 Boston, MA 02111-1307, USA. 28 Boston, MA 02111-1307, USA.
@@ -30,10 +31,18 @@ _;:, .> :=|. This program is free software; you can
30#ifndef OGLOBAL_H 31#ifndef OGLOBAL_H
31#define OGLOBAL_H 32#define OGLOBAL_H
32 33
33#include <qpe/global.h>
34#include <qpe/timestring.h>
35 34
36#include <opie2/oconfig.h> 35#include <opie2/oconfig.h>
36
37#ifndef private
38#define HACK_DEFINED
39#define private protected
40#endif
41#include <qpe/global.h>
42#ifdef HACK_DEFINED
43#undef private
44#endif
45
37#include <sys/types.h> 46#include <sys/types.h>
38 47
39//FIXME Is it wise or even necessary to inherit OGlobal from Global? 48//FIXME Is it wise or even necessary to inherit OGlobal from Global?
@@ -43,6 +52,7 @@ _;:, .> :=|. This program is free software; you can
43 52
44class QFile; 53class QFile;
45class QString; 54class QString;
55class DateFormat;
46/** 56/**
47 *\brief OGlobal contains a list of generic functions 57 *\brief OGlobal contains a list of generic functions
48 * 58 *
@@ -52,6 +62,8 @@ class QString;
52 * out of this config like Weekstart or Owner name. 62 * out of this config like Weekstart or Owner name.
53 * 63 *
54 * @todo ODP implement the things from Global which are good 64 * @todo ODP implement the things from Global which are good
65 * @author mickey,alwin,zecke
66 * @version 0.1
55 */ 67 */
56class OGlobal : public Global 68class OGlobal : public Global
57{ 69{
@@ -84,7 +96,7 @@ public:
84 * Convert Content of a QByteArray 96 * Convert Content of a QByteArray
85 */ 97 */
86 //@{ 98 //@{
87 static QByteArray encodeBase64(const QByteArray& ); 99 static QByteArray encodeBase64(const QByteArray&, bool insertLF = false );
88 static QByteArray decodeBase64(const QByteArray& ); 100 static QByteArray decodeBase64(const QByteArray& );
89 //@} 101 //@}
90 102
@@ -107,14 +119,20 @@ public:
107 * Anyway this is the future 119 * Anyway this is the future
108 * for now still use TimeString! 120 * for now still use TimeString!
109 */ 121 */
110 static DateFormat dateFormat();
111#endif 122#endif
123 static DateFormat dateFormat();
124 static void setDateFormat( const DateFormat& );
125
112 126
113 static void setWeekStartsOnMonday( bool ); 127 static void setWeekStartsOnMonday( bool );
114 static void setUseAMPM( bool ); 128 static void setUseAMPM( bool );
115 static void setDateFormat( const DateFormat& );
116 //@} 129 //@}
117 130
131 //@{
132 static Global::Command* builtinCommands();
133 static QGuardedPtr<QWidget>* builtinRunning();
134 //@}
135
118private: 136private:
119 static OConfig* _config; 137 static OConfig* _config;
120}; 138};