summaryrefslogtreecommitdiff
path: root/libopie2/opiecore
authorzecke <zecke>2004-04-04 21:27:42 (UTC)
committer zecke <zecke>2004-04-04 21:27:42 (UTC)
commitf664b509b5e622ab74560fb74093175e50b2790c (patch) (side-by-side diff)
treed46acaa8dd49ab2de70aebcdcf57bce1276c6fd1 /libopie2/opiecore
parenteb2831b5c94c4c27b8282842c9709234f5365e01 (diff)
downloadopie-f664b509b5e622ab74560fb74093175e50b2790c.zip
opie-f664b509b5e622ab74560fb74093175e50b2790c.tar.gz
opie-f664b509b5e622ab74560fb74093175e50b2790c.tar.bz2
Opie::XYZ::Private -> Opie::XYZ::Internal
Diffstat (limited to 'libopie2/opiecore') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice.cpp10
-rw-r--r--libopie2/opiecore/device/odevice_ipaq.cpp2
-rw-r--r--libopie2/opiecore/device/odevice_ipaq.h2
-rw-r--r--libopie2/opiecore/device/odevice_jornada.cpp2
-rw-r--r--libopie2/opiecore/device/odevice_jornada.h2
-rw-r--r--libopie2/opiecore/device/odevice_ramses.cpp2
-rw-r--r--libopie2/opiecore/device/odevice_ramses.h2
-rw-r--r--libopie2/opiecore/device/odevice_simpad.cpp2
-rw-r--r--libopie2/opiecore/device/odevice_simpad.h2
-rw-r--r--libopie2/opiecore/device/odevice_yopy.cpp2
-rw-r--r--libopie2/opiecore/device/odevice_yopy.h2
-rw-r--r--libopie2/opiecore/device/odevice_zaurus.cpp10
-rw-r--r--libopie2/opiecore/device/odevice_zaurus.h2
-rw-r--r--libopie2/opiecore/device/odevicebutton.cpp8
-rw-r--r--libopie2/opiecore/device/odevicebutton.h4
-rw-r--r--libopie2/opiecore/oapplication.cpp4
-rw-r--r--libopie2/opiecore/oapplication.h4
-rw-r--r--libopie2/opiecore/oconfig.h6
-rw-r--r--libopie2/opiecore/odebug.cpp11
-rw-r--r--libopie2/opiecore/oprocctrl.cpp8
-rw-r--r--libopie2/opiecore/oprocctrl.h8
-rw-r--r--libopie2/opiecore/oprocess.cpp4
-rw-r--r--libopie2/opiecore/oprocess.h6
23 files changed, 57 insertions, 48 deletions
diff --git a/libopie2/opiecore/device/odevice.cpp b/libopie2/opiecore/device/odevice.cpp
index 1ad0327..ee66d95 100644
--- a/libopie2/opiecore/device/odevice.cpp
+++ b/libopie2/opiecore/device/odevice.cpp
@@ -81,11 +81,11 @@ ODevice *ODevice::inst()
if ( line.startsWith( "Hardware" ) )
{
qDebug( "ODevice() - found '%s'", (const char*) line );
- if ( line.contains( "sharp", false ) ) dev = new Private::Zaurus();
- else if ( line.contains( "ipaq", false ) ) dev = new Private::iPAQ();
- else if ( line.contains( "simpad", false ) ) dev = new Private::SIMpad();
- else if ( line.contains( "jornada", false ) ) dev = new Private::Jornada();
- else if ( line.contains( "ramses", false ) ) dev = new Private::Ramses();
+ if ( line.contains( "sharp", false ) ) dev = new Internal::Zaurus();
+ else if ( line.contains( "ipaq", false ) ) dev = new Internal::iPAQ();
+ else if ( line.contains( "simpad", false ) ) dev = new Internal::SIMpad();
+ else if ( line.contains( "jornada", false ) ) dev = new Internal::Jornada();
+ else if ( line.contains( "ramses", false ) ) dev = new Internal::Ramses();
else qWarning( "ODevice() - unknown hardware - using default." );
break;
}
diff --git a/libopie2/opiecore/device/odevice_ipaq.cpp b/libopie2/opiecore/device/odevice_ipaq.cpp
index 177fd4c..2efcd3a 100644
--- a/libopie2/opiecore/device/odevice_ipaq.cpp
+++ b/libopie2/opiecore/device/odevice_ipaq.cpp
@@ -55,7 +55,7 @@
using namespace Opie::Core;
-using namespace Opie::Core::Private;
+using namespace Opie::Core::Internal;
/* KERNEL */
#define OD_IOC(dir,type,number,size) (( dir << 30 ) | ( type << 8 ) | ( number ) | ( size << 16 ))
diff --git a/libopie2/opiecore/device/odevice_ipaq.h b/libopie2/opiecore/device/odevice_ipaq.h
index 4f4af46..968f715 100644
--- a/libopie2/opiecore/device/odevice_ipaq.h
+++ b/libopie2/opiecore/device/odevice_ipaq.h
@@ -37,7 +37,7 @@
namespace Opie {
namespace Core {
-namespace Private {
+namespace Internal {
class iPAQ : public ODevice, public QWSServer::KeyboardFilter
{
diff --git a/libopie2/opiecore/device/odevice_jornada.cpp b/libopie2/opiecore/device/odevice_jornada.cpp
index b79b0b5..eaa93ca 100644
--- a/libopie2/opiecore/device/odevice_jornada.cpp
+++ b/libopie2/opiecore/device/odevice_jornada.cpp
@@ -77,7 +77,7 @@ typedef struct {
#define LED_ON OD_IOW( 'f', 5, LED_IN )
#define FLITE_ON OD_IOW( 'f', 7, FLITE_IN )
-using namespace Opie::Core::Private;
+using namespace Opie::Core::Internal;
void Jornada::init()
{
diff --git a/libopie2/opiecore/device/odevice_jornada.h b/libopie2/opiecore/device/odevice_jornada.h
index c37d75e..e2e67af 100644
--- a/libopie2/opiecore/device/odevice_jornada.h
+++ b/libopie2/opiecore/device/odevice_jornada.h
@@ -34,7 +34,7 @@
namespace Opie {
namespace Core {
-namespace Private {
+namespace Internal {
class Jornada : public ODevice
{
diff --git a/libopie2/opiecore/device/odevice_ramses.cpp b/libopie2/opiecore/device/odevice_ramses.cpp
index 77de8c5..10b7b61 100644
--- a/libopie2/opiecore/device/odevice_ramses.cpp
+++ b/libopie2/opiecore/device/odevice_ramses.cpp
@@ -54,7 +54,7 @@
#endif
using namespace Opie::Core;
-using namespace Opie::Core::Private;
+using namespace Opie::Core::Internal;
struct r_button ramses_buttons [] = {
{ Model_Ramses_MNCI,
diff --git a/libopie2/opiecore/device/odevice_ramses.h b/libopie2/opiecore/device/odevice_ramses.h
index e673b1a..aea9e2a 100644
--- a/libopie2/opiecore/device/odevice_ramses.h
+++ b/libopie2/opiecore/device/odevice_ramses.h
@@ -36,7 +36,7 @@
namespace Opie {
namespace Core {
-namespace Private {
+namespace Internal {
class Ramses : public ODevice, public QWSServer::KeyboardFilter
{
diff --git a/libopie2/opiecore/device/odevice_simpad.cpp b/libopie2/opiecore/device/odevice_simpad.cpp
index 80d40a3..7d79ef5 100644
--- a/libopie2/opiecore/device/odevice_simpad.cpp
+++ b/libopie2/opiecore/device/odevice_simpad.cpp
@@ -54,7 +54,7 @@ _;:, .> :=|. This program is free software; you can
#endif
using namespace Opie::Core;
-using namespace Opie::Core::Private;
+using namespace Opie::Core::Internal;
struct s_button simpad_buttons [] = {
{ Model_SIMpad_CL4 | Model_SIMpad_SL4 | Model_SIMpad_SLC | Model_SIMpad_TSinus,
diff --git a/libopie2/opiecore/device/odevice_simpad.h b/libopie2/opiecore/device/odevice_simpad.h
index 1848151..3d5acb5 100644
--- a/libopie2/opiecore/device/odevice_simpad.h
+++ b/libopie2/opiecore/device/odevice_simpad.h
@@ -37,7 +37,7 @@
namespace Opie {
namespace Core {
-namespace Private {
+namespace Internal {
class SIMpad : public ODevice, public QWSServer::KeyboardFilter
{
diff --git a/libopie2/opiecore/device/odevice_yopy.cpp b/libopie2/opiecore/device/odevice_yopy.cpp
index f7a4025..4e9f227 100644
--- a/libopie2/opiecore/device/odevice_yopy.cpp
+++ b/libopie2/opiecore/device/odevice_yopy.cpp
@@ -54,7 +54,7 @@ _;:,     .>    :=|. This program is free software; you can
#endif
using namespace Opie::Core;
-using namespace Opie::Core::Private;
+using namespace Opie::Core::Internal;
struct yopy_button yopy_buttons [] = {
{ Qt::Key_F10, QT_TRANSLATE_NOOP( "Button", "Action Button" ),
diff --git a/libopie2/opiecore/device/odevice_yopy.h b/libopie2/opiecore/device/odevice_yopy.h
index 7d85479..6e1db88 100644
--- a/libopie2/opiecore/device/odevice_yopy.h
+++ b/libopie2/opiecore/device/odevice_yopy.h
@@ -34,7 +34,7 @@ _;:,     .>    :=|. This program is free software; you can
namespace Opie {
namespace Core {
-namespace Private {
+namespace Internal {
class Yopy : public ODevice
{
protected:
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp
index 0d21f26..000d29c 100644
--- a/libopie2/opiecore/device/odevice_zaurus.cpp
+++ b/libopie2/opiecore/device/odevice_zaurus.cpp
@@ -54,7 +54,7 @@ _;:, .> :=|. This program is free software; you can
#endif
using namespace Opie::Core;
-using namespace Opie::Core::Private;
+using namespace Opie::Core::Internal;
struct z_button z_buttons [] = {
{ Qt::Key_F9, QT_TRANSLATE_NOOP("Button", "Calendar Button"),
@@ -387,7 +387,7 @@ void Zaurus::buzzer ( int sound )
::ioctl ( fd, MIXER_WRITE( 0 ), &vol );
::close ( fd );
}
- } else {
+ } else {
int fd = ::open ( "/dev/sharp_buz", O_WRONLY|O_NONBLOCK );
if ( fd >= 0 ) {
@@ -395,7 +395,7 @@ void Zaurus::buzzer ( int sound )
::close ( fd );
}
- }
+ }
#endif
}
@@ -606,9 +606,9 @@ Transformation Zaurus::rotation() const
retval = ::ioctl(handle, SHARP_IOCTL_GET_ROTATION);
::close (handle);
- if (retval == 2 )
+ if (retval == 2 )
rot = Rot0;
- else
+ else
rot = Rot270;
}
break;
diff --git a/libopie2/opiecore/device/odevice_zaurus.h b/libopie2/opiecore/device/odevice_zaurus.h
index ffb648f..a0b1787 100644
--- a/libopie2/opiecore/device/odevice_zaurus.h
+++ b/libopie2/opiecore/device/odevice_zaurus.h
@@ -48,7 +48,7 @@
namespace Opie {
namespace Core {
-namespace Private {
+namespace Internal {
class Zaurus : public ODevice
{
diff --git a/libopie2/opiecore/device/odevicebutton.cpp b/libopie2/opiecore/device/odevicebutton.cpp
index a081b7f..6974b30 100644
--- a/libopie2/opiecore/device/odevicebutton.cpp
+++ b/libopie2/opiecore/device/odevicebutton.cpp
@@ -36,7 +36,7 @@
namespace Opie {
namespace Core {
-namespace Private {
+namespace Internal {
class OQCopMessageData
{
@@ -48,7 +48,7 @@ class OQCopMessageData
}
using namespace Opie::Core;
-using namespace Opie::Core::Private;
+using Opie::Core::Internal::OQCopMessageData;
OQCopMessage::OQCopMessage()
: d ( 0 )
@@ -132,13 +132,13 @@ void OQCopMessage::setData ( const QByteArray &data )
/*! \class Opie::Core::ODeviceButton
\brief The Opie::Core::ODeviceButton class represents a physical user mappable button on a Qtopia device.
-
+
This class represents a physical button on a Qtopia device. A
device may have "user programmable" buttons.
The location and number of buttons will vary from device to
device. userText() and pixmap() may be used to describe this button
to the user in help documentation.
-
+
\ingroup qtopiaemb
\internal
*/
diff --git a/libopie2/opiecore/device/odevicebutton.h b/libopie2/opiecore/device/odevicebutton.h
index 4000144..e3f9ba9 100644
--- a/libopie2/opiecore/device/odevicebutton.h
+++ b/libopie2/opiecore/device/odevicebutton.h
@@ -26,7 +26,7 @@
namespace Opie{
namespace Core{
-namespace Private {
+namespace Internal {
class OQCopMessageData;
}
@@ -54,7 +54,7 @@ public:
private:
void init ( const QCString &m_channel, const QCString &message, const QByteArray &args );
- Private::OQCopMessageData *d;
+ Internal::OQCopMessageData *d;
class Private;
Private* m_data;
};
diff --git a/libopie2/opiecore/oapplication.cpp b/libopie2/opiecore/oapplication.cpp
index e2f6e82..ac7cd5a 100644
--- a/libopie2/opiecore/oapplication.cpp
+++ b/libopie2/opiecore/oapplication.cpp
@@ -45,7 +45,7 @@ OApplication* OApplication::_instance = 0;
namespace Opie {
namespace Core {
-namespace Private {
+namespace Internal {
class OApplicationPrivate
{
public:
@@ -91,7 +91,7 @@ OConfig* OApplication::config()
void OApplication::init()
{
- d = new Private::OApplicationPrivate();
+ d = new Internal::OApplicationPrivate();
if ( !OApplication::_instance )
{
OApplication::_instance = this;
diff --git a/libopie2/opiecore/oapplication.h b/libopie2/opiecore/oapplication.h
index c1e32a6..337fe5e 100644
--- a/libopie2/opiecore/oapplication.h
+++ b/libopie2/opiecore/oapplication.h
@@ -37,7 +37,7 @@
namespace Opie {
namespace Core {
-namespace Private {
+namespace Internal {
class OApplicationPrivate;
} // private class
@@ -102,7 +102,7 @@ class OApplication : public QPEApplication
const QCString _appname;
static OApplication* _instance;
OConfig* _config;
- Private::OApplicationPrivate* d;
+ Internal::OApplicationPrivate* d;
};
} // Core
diff --git a/libopie2/opiecore/oconfig.h b/libopie2/opiecore/oconfig.h
index 29c1f86..8c3060c 100644
--- a/libopie2/opiecore/oconfig.h
+++ b/libopie2/opiecore/oconfig.h
@@ -67,7 +67,7 @@ class OConfig : public Config
* The current group is used for searching keys and accessing entries.
* @todo make const
*/
- const QString& group() { return git.key(); };
+ const QString& group()const { return git.key(); };
/**
* @returns a @ref QColor entry or a @a default value if the key is not found.
*/
@@ -76,7 +76,7 @@ class OConfig : public Config
* @returns a @ref QFont value or a @a default value if the key is not found.
*/
QFont readFontEntry( const QString& key, const QFont* pDefault ) const;
-
+
private:
class Private;
Private *d;
@@ -144,7 +144,7 @@ class OConfigGroupSaver
OConfigGroupSaver( const OConfigGroupSaver& );
OConfigGroupSaver& operator=( const OConfigGroupSaver& );
-
+
class Private;
Private *d;
};
diff --git a/libopie2/opiecore/odebug.cpp b/libopie2/opiecore/odebug.cpp
index cac985b..f258faa 100644
--- a/libopie2/opiecore/odebug.cpp
+++ b/libopie2/opiecore/odebug.cpp
@@ -67,6 +67,15 @@
namespace Opie {
namespace Core {
+namespace Internal {
+class DebugBackend {
+};
+
+static DebugBackend *backEnd = 0;
+}
+static void clean_up_routine() {
+ delete Internal::backEnd;
+}
/*======================================================================================
* debug levels
*======================================================================================*/
@@ -622,4 +631,4 @@ void odClearDebugConfig()
#endif
}
-} \ No newline at end of file
+}
diff --git a/libopie2/opiecore/oprocctrl.cpp b/libopie2/opiecore/oprocctrl.cpp
index 46708ba..404e0b3 100644
--- a/libopie2/opiecore/oprocctrl.cpp
+++ b/libopie2/opiecore/oprocctrl.cpp
@@ -1,16 +1,16 @@
/* This file is part of the KDE libraries
Copyright (C) 1997 Christian Czezakte (e9025461@student.tuwien.ac.at)
-
+
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
-
+
This library 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,
@@ -41,7 +41,7 @@
#include <qsocketnotifier.h>
#include "oprocctrl.h"
-using namespace Opie::Core::Private;
+using namespace Opie::Core::Internal;
OProcessController *OProcessController::theOProcessController = 0;
diff --git a/libopie2/opiecore/oprocctrl.h b/libopie2/opiecore/oprocctrl.h
index 4922ba2..ea00859 100644
--- a/libopie2/opiecore/oprocctrl.h
+++ b/libopie2/opiecore/oprocctrl.h
@@ -1,16 +1,16 @@
/* This file is part of the KDE libraries
Copyright (C) 1997 Christian Czezakte (e9025461@student.tuwien.ac.at)
-
+
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
-
+
This library 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,
@@ -39,7 +39,7 @@ class QSocketNotifier;
namespace Opie {
namespace Core {
-namespace Private {
+namespace Internal {
class OProcessControllerPrivate;
/**
diff --git a/libopie2/opiecore/oprocess.cpp b/libopie2/opiecore/oprocess.cpp
index dfde74a..b3f9724 100644
--- a/libopie2/opiecore/oprocess.cpp
+++ b/libopie2/opiecore/oprocess.cpp
@@ -61,11 +61,11 @@ _;:,     .>    :=|. This program is free software; you can
#include <grp.h>
#endif
-using namespace Opie::Core::Private;
+using namespace Opie::Core::Internal;
namespace Opie {
namespace Core {
-namespace Private {
+namespace Internal {
class OProcessPrivate
{
public:
diff --git a/libopie2/opiecore/oprocess.h b/libopie2/opiecore/oprocess.h
index e23f98c..be1436c 100644
--- a/libopie2/opiecore/oprocess.h
+++ b/libopie2/opiecore/oprocess.h
@@ -46,7 +46,7 @@ class QSocketNotifier;
namespace Opie {
namespace Core {
-namespace Private {
+namespace Internal {
class OProcessController;
class OProcessPrivate;
}
@@ -723,7 +723,7 @@ protected:
* @ref OProcessController is a friend of OProcess because it has to have
* access to various data members.
*/
- friend class Private::OProcessController;
+ friend class Internal::OProcessController;
private:
/**
@@ -752,7 +752,7 @@ private:
private:
void init ( );
- Private::OProcessPrivate *d;
+ Internal::OProcessPrivate *d;
};
}
}