From 974c01feac1a9749497bb1df50841e35cedb63b0 Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 20 Feb 2004 17:57:01 +0000 Subject: Fix the messed up header :) Mess up the header ( #define private protected for Global. Yeah ugly ) Add default parameter to encodeBase64 to obey RFC Handle DateFormat better --- 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 @@ /* - This file is part of the Opie Project - Copyright (C) 2003 Michael 'Mickey' Lauer +                 This file is part of the Opie Project +              Copyright (C) 2003 Michael 'Mickey' Lauer + Copyright (C) 2004 Holger 'zecke' Freyther =. .=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_,=:_. -`: 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_,=:_.      -`: 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, Boston, MA 02111-1307, USA. @@ -30,10 +31,18 @@ _;:, .> :=|. This program is free software; you can #ifndef OGLOBAL_H #define OGLOBAL_H -#include -#include #include + +#ifndef private +#define HACK_DEFINED +#define private protected +#endif +#include +#ifdef HACK_DEFINED +#undef private +#endif + #include //FIXME Is it wise or even necessary to inherit OGlobal from Global? @@ -43,6 +52,7 @@ _;:, .> :=|. This program is free software; you can class QFile; class QString; +class DateFormat; /** *\brief OGlobal contains a list of generic functions * @@ -52,6 +62,8 @@ class QString; * 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 { @@ -84,7 +96,7 @@ public: * Convert Content of a QByteArray */ //@{ - static QByteArray encodeBase64(const QByteArray& ); + static QByteArray encodeBase64(const QByteArray&, bool insertLF = false ); static QByteArray decodeBase64(const QByteArray& ); //@} @@ -107,14 +119,20 @@ public: * Anyway this is the future * 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* builtinRunning(); + //@} + private: static OConfig* _config; }; -- cgit v0.9.0.2