summaryrefslogtreecommitdiff
path: root/libopie2
Side-by-side diff
Diffstat (limited to 'libopie2') (more/less context) (show 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,26 +1,27 @@
/*
- This file is part of the Opie Project
- Copyright (C) 2003 Michael 'Mickey' Lauer <mickey@Vanille.de>
+                 This file is part of the Opie Project
+              Copyright (C) 2003 Michael 'Mickey' Lauer <mickey@Vanille.de>
+ Copyright (C) 2004 Holger 'zecke' Freyther <zecke@handhelds.org>
=.
.=l.
- .>+-=
-_;:, .> :=|. This program is free software; you can
-.> <`_, > . <= redistribute it and/or modify it under
-:`=1 )Y*s>-.-- : the terms of the GNU Library General Public
-.="- .-=="i, .._ License as published by the Free Software
-- . .-<_> .<> Foundation; either version 2 of the License,
- ._= =} : or (at your option) any later version.
- .%`+i> _;_.
- .i_,=:_. -<s. This program is distributed in the hope that
- + . -:. = it will be useful, but WITHOUT ANY WARRANTY;
- : .. .:, . . . without even the implied warranty of
- =_ + =;=|` MERCHANTABILITY or FITNESS FOR A
- _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU
-..}^=.= = ; Library General Public License for more
-++= -. .` .: details.
-: = ...= . :.=-
--. .:....=;==+<; You should have received a copy of the GNU
- -_. . . )=. = Library General Public License along with
- -- :-=` this library; see the file COPYING.LIB.
+           .>+-=
+ _;:,     .>    :=|. This program is free software; you can
+.> <`_,   >  .   <= redistribute it and/or modify it under
+:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
+.="- .-=="i,     .._ License as published by the Free Software
+ - .   .-<_>     .<> Foundation; either version 2 of the License,
+     ._= =}       : or (at your option) any later version.
+    .%`+i>       _;_.
+    .i_,=:_.      -<s. This program is distributed in the hope that
+     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
+    : ..    .:,     . . . without even the implied warranty of
+    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
+  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
+..}^=.=       =       ; Library General Public License for more
+++=   -.     .`     .: details.
+ :     =  ...= . :.=-
+ -.   .:....=;==+<; You should have received a copy of the GNU
+  -_. . .   )=.  = Library General Public License along with
+    --        :-=` this library; see the file COPYING.LIB.
If not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330,
@@ -31,8 +32,16 @@ _;:, .> :=|. This program is free software; you can
#define OGLOBAL_H
-#include <qpe/global.h>
-#include <qpe/timestring.h>
#include <opie2/oconfig.h>
+
+#ifndef private
+#define HACK_DEFINED
+#define private protected
+#endif
+#include <qpe/global.h>
+#ifdef HACK_DEFINED
+#undef private
+#endif
+
#include <sys/types.h>
@@ -44,4 +53,5 @@ _;:, .> :=|. This program is free software; you can
class QFile;
class QString;
+class DateFormat;
/**
*\brief OGlobal contains a list of generic functions
@@ -53,4 +63,6 @@ class QString;
*
* @todo ODP implement the things from Global which are good
+ * @author mickey,alwin,zecke
+ * @version 0.1
*/
class OGlobal : public Global
@@ -85,5 +97,5 @@ public:
*/
//@{
- static QByteArray encodeBase64(const QByteArray& );
+ static QByteArray encodeBase64(const QByteArray&, bool insertLF = false );
static QByteArray decodeBase64(const QByteArray& );
//@}
@@ -108,10 +120,16 @@ public:
* for now still use TimeString!
*/
- static DateFormat dateFormat();
#endif
+ static DateFormat dateFormat();
+ static void setDateFormat( const DateFormat& );
+
static void setWeekStartsOnMonday( bool );
static void setUseAMPM( bool );
- static void setDateFormat( const DateFormat& );
+ //@}
+
+ //@{
+ static Global::Command* builtinCommands();
+ static QGuardedPtr<QWidget>* builtinRunning();
//@}