-rw-r--r-- | libopie2/opiecore/libopiecore2.control | 2 | ||||
-rw-r--r-- | libopie2/opiecore/oconfig.cpp | 4 | ||||
-rw-r--r-- | libopie2/opiecore/oconfig.h | 6 | ||||
-rw-r--r-- | libopie2/opiecore/odebug.cpp | 3 | ||||
-rw-r--r-- | libopie2/opiecore/oglobal.cpp | 9 | ||||
-rw-r--r-- | libopie2/opiecore/oglobal.h | 18 | ||||
-rw-r--r-- | libopie2/opiecore/oglobalsettings.cpp | 1 | ||||
-rw-r--r-- | libopie2/opiecore/opiecore.pro | 2 |
8 files changed, 27 insertions, 18 deletions
diff --git a/libopie2/opiecore/libopiecore2.control b/libopie2/opiecore/libopiecore2.control index 7dec1b9..956d24f 100644 --- a/libopie2/opiecore/libopiecore2.control +++ b/libopie2/opiecore/libopiecore2.control | |||
@@ -6,3 +6,3 @@ Maintainer: Opie Team <opie@handhelds.org> | |||
6 | Architecture: arm | 6 | Architecture: arm |
7 | Version: 1.8.1-$SUB_VERSION.2 | 7 | Version: 1.8.2-$SUB_VERSION.2 |
8 | Depends: libqpe1 | 8 | Depends: libqpe1 |
diff --git a/libopie2/opiecore/oconfig.cpp b/libopie2/opiecore/oconfig.cpp index dc4d0b3..fb5eabb 100644 --- a/libopie2/opiecore/oconfig.cpp +++ b/libopie2/opiecore/oconfig.cpp | |||
@@ -41,4 +41,5 @@ | |||
41 | OConfig::OConfig( const QString &name, Domain domain ) | 41 | OConfig::OConfig( const QString &name, Domain domain ) |
42 | :OpieConfig( name, domain ) | 42 | :Config( name, domain ) |
43 | { | 43 | { |
44 | qDebug( "OConfig::OConfig()" ); | ||
44 | } | 45 | } |
@@ -47,2 +48,3 @@ OConfig::~OConfig() | |||
47 | { | 48 | { |
49 | qDebug( "OConfig::~OConfig()" ); | ||
48 | } | 50 | } |
diff --git a/libopie2/opiecore/oconfig.h b/libopie2/opiecore/oconfig.h index 75aa170..444d280 100644 --- a/libopie2/opiecore/oconfig.h +++ b/libopie2/opiecore/oconfig.h | |||
@@ -37,3 +37,3 @@ | |||
37 | 37 | ||
38 | #include "opieconfig.h" | 38 | #include <qpe/config.h> |
39 | 39 | ||
@@ -47,3 +47,3 @@ class QFont; | |||
47 | 47 | ||
48 | class OConfig : public OpieConfig | 48 | class OConfig : public Config |
49 | { | 49 | { |
@@ -65,3 +65,3 @@ class OConfig : public OpieConfig | |||
65 | */ | 65 | */ |
66 | const QString& group() { return OpieConfig::group(); }; | 66 | const QString& group() { return git.key(); }; |
67 | /** | 67 | /** |
diff --git a/libopie2/opiecore/odebug.cpp b/libopie2/opiecore/odebug.cpp index b2a37bc..4505ce7 100644 --- a/libopie2/opiecore/odebug.cpp +++ b/libopie2/opiecore/odebug.cpp | |||
@@ -3,5 +3,4 @@ | |||
3 | (C) 2003 Michael 'Mickey' Lauer (mickey@tm.informatik.uni-frankfurt.de) | 3 | (C) 2003 Michael 'Mickey' Lauer (mickey@tm.informatik.uni-frankfurt.de) |
4 | Inspired by the KDE debug classes, which are | ||
5 | (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org) | ||
6 | (C) 2002 Holger Freyther (freyther@kde.org) | 4 | (C) 2002 Holger Freyther (freyther@kde.org) |
5 | (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org) | ||
7 | =. | 6 | =. |
diff --git a/libopie2/opiecore/oglobal.cpp b/libopie2/opiecore/oglobal.cpp index f6071be..ae2fcb6 100644 --- a/libopie2/opiecore/oglobal.cpp +++ b/libopie2/opiecore/oglobal.cpp | |||
@@ -32,5 +32,12 @@ | |||
32 | 32 | ||
33 | OConfig* OGlobal::_config = 0; | ||
34 | |||
33 | OConfig* OGlobal::config() | 35 | OConfig* OGlobal::config() |
34 | { | 36 | { |
35 | return globalconfig; | 37 | if ( !OGlobal::_config ) |
38 | { | ||
39 | qDebug( "OGlobal::creating global configuration instance." ); | ||
40 | OGlobal::_config = new OConfig( "global" ); | ||
41 | } | ||
42 | return OGlobal::_config; | ||
36 | } | 43 | } |
diff --git a/libopie2/opiecore/oglobal.h b/libopie2/opiecore/oglobal.h index 23cedde..2dc4f9e 100644 --- a/libopie2/opiecore/oglobal.h +++ b/libopie2/opiecore/oglobal.h | |||
@@ -2,4 +2,3 @@ | |||
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | 3 | Copyright (C) 2003 Michael 'Mickey' Lauer <mickey@Vanille.de> | |
4 | Copyright (C) 2003 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> | ||
5 | =. | 4 | =. |
@@ -33,15 +32,16 @@ | |||
33 | 32 | ||
34 | #include <qpe/global.h> | ||
35 | #include <opie2/oconfig.h> | 33 | #include <opie2/oconfig.h> |
36 | 34 | ||
37 | static OConfig *globalconfig = new OConfig( "global" ); | 35 | //FIXME Is it wise or even necessary to inherit OGlobal from Global? |
38 | 36 | // once we totally skip libqpe it should ideally swallow Global -zecke | |
39 | //FIXME: Is it wise or even necessary to inherit OGlobal from Global? | 37 | // You're right. I deleted global as the base class. -mickeyl |
40 | // once we totally skip libqpe it should ideally swallow Global -zecke | ||
41 | 38 | ||
42 | class OGlobal : public Global | 39 | class OGlobal |
43 | { | 40 | { |
44 | public: | 41 | public: |
45 | // do we want to put that into OApplication as in KApplication -zecke | 42 | //FIXME Do we want to put that into OApplication as in KApplication? -zecke |
43 | // We already have a per-application config in OApplication | ||
44 | // ( accessed through oApp->config() ), but this one is the global one! -mickeyl | ||
46 | static OConfig* config(); | 45 | static OConfig* config(); |
46 | static OConfig* _config; | ||
47 | }; | 47 | }; |
diff --git a/libopie2/opiecore/oglobalsettings.cpp b/libopie2/opiecore/oglobalsettings.cpp index 1799529..66adbd0 100644 --- a/libopie2/opiecore/oglobalsettings.cpp +++ b/libopie2/opiecore/oglobalsettings.cpp | |||
@@ -40,2 +40,3 @@ | |||
40 | 40 | ||
41 | #include <qobject.h> | ||
41 | #include <qdir.h> | 42 | #include <qdir.h> |
diff --git a/libopie2/opiecore/opiecore.pro b/libopie2/opiecore/opiecore.pro index fe5800e..5d630ea 100644 --- a/libopie2/opiecore/opiecore.pro +++ b/libopie2/opiecore/opiecore.pro | |||
@@ -27,3 +27,3 @@ INTERFACES = | |||
27 | TARGET = opiecore2 | 27 | TARGET = opiecore2 |
28 | VERSION = 1.8.1 | 28 | VERSION = 1.8.2 |
29 | INCLUDEPATH += $(OPIEDIR)/include | 29 | INCLUDEPATH += $(OPIEDIR)/include |