author | wimpie <wimpie> | 2004-04-07 01:06:27 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2004-04-07 01:06:27 (UTC) |
commit | 453109d9dafc25fdaf82197ef8a3f4e34c9272af (patch) (unidiff) | |
tree | bc8fe8e54f52425e6b478be69b979f0a8ab910f5 | |
parent | 88b862c2356a7e75136282524b6856f1fcd10066 (diff) | |
download | opie-453109d9dafc25fdaf82197ef8a3f4e34c9272af.zip opie-453109d9dafc25fdaf82197ef8a3f4e34c9272af.tar.gz opie-453109d9dafc25fdaf82197ef8a3f4e34c9272af.tar.bz2 |
Added some odebug includes and namespaces refs
opiepim links with opiedb2 -> needs depend in config.in
qlibrary_unix -> print dlopen errors ALWAYS not only indebug
BTmanager.pro needs opieui2
19 files changed, 34 insertions, 6 deletions
diff --git a/libopie2/opiepim/config.in b/libopie2/opiepim/config.in index 33ef9b2..8ac8ad6 100644 --- a/libopie2/opiepim/config.in +++ b/libopie2/opiepim/config.in | |||
@@ -1,10 +1,10 @@ | |||
1 | config LIBOPIE2PIM | 1 | config LIBOPIE2PIM |
2 | boolean "libopie2pim (pim related classes)" | 2 | boolean "libopie2pim (pim related classes)" |
3 | default "y" | 3 | default "y" |
4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE | 4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && LIBOPIEDB2 |
5 | comment "libopie2pim needs a libqpe and libopie2core" | 5 | comment "libopie2pim needs a libqpe and libopie2core" |
6 | depends !(( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE ) | 6 | depends !(( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE ) |
7 | 7 | ||
8 | config SQL_PIM_BACKEND | 8 | config SQL_PIM_BACKEND |
9 | boolean "Enable SQL Backend for libopie2pim" | 9 | boolean "Enable SQL Backend for libopie2pim" |
10 | default n | 10 | default n |
diff --git a/library/qlibrary_unix.cpp b/library/qlibrary_unix.cpp index ff69286..2181153 100644 --- a/library/qlibrary_unix.cpp +++ b/library/qlibrary_unix.cpp | |||
@@ -196,16 +196,16 @@ bool QLibraryPrivate::loadLibrary() | |||
196 | if ( pHnd ) | 196 | if ( pHnd ) |
197 | return TRUE; | 197 | return TRUE; |
198 | 198 | ||
199 | QString filename = library->library(); | 199 | QString filename = library->library(); |
200 | 200 | ||
201 | pHnd = dlopen( filename.latin1() , RTLD_LAZY ); | 201 | pHnd = dlopen( filename.latin1() , RTLD_LAZY ); |
202 | #if defined(QT_DEBUG) || defined(QT_DEBUG_COMPONENT) | 202 | // #if defined(QT_DEBUG) || defined(QT_DEBUG_COMPONENT) |
203 | if ( !pHnd ) | 203 | if ( !pHnd ) |
204 | qWarning( "%s", dlerror() ); | 204 | qWarning( "%s", dlerror() ); |
205 | #endif | 205 | // #endif |
206 | return pHnd != 0; | 206 | return pHnd != 0; |
207 | } | 207 | } |
208 | 208 | ||
209 | bool QLibraryPrivate::freeLibrary() | 209 | bool QLibraryPrivate::freeLibrary() |
210 | { | 210 | { |
211 | if ( !pHnd ) | 211 | if ( !pHnd ) |
diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp index 1d93f5c..66e8f01 100644 --- a/noncore/net/opietooth/applet/bluezapplet.cpp +++ b/noncore/net/opietooth/applet/bluezapplet.cpp | |||
@@ -32,12 +32,13 @@ | |||
32 | 32 | ||
33 | #include <qpe/qcopenvelope_qws.h> | 33 | #include <qpe/qcopenvelope_qws.h> |
34 | #include <qpe/config.h> | 34 | #include <qpe/config.h> |
35 | #include <qpe/resource.h> | 35 | #include <qpe/resource.h> |
36 | 36 | ||
37 | #include <opie2/odevice.h> | 37 | #include <opie2/odevice.h> |
38 | #include <opie2/odebug.h> | ||
38 | 39 | ||
39 | #include <qpoint.h> | 40 | #include <qpoint.h> |
40 | #include <qpainter.h> | 41 | #include <qpainter.h> |
41 | #include <qlayout.h> | 42 | #include <qlayout.h> |
42 | #include <qframe.h> | 43 | #include <qframe.h> |
43 | #include <qpixmap.h> | 44 | #include <qpixmap.h> |
diff --git a/noncore/net/opietooth/lib/startdunconnection.cpp b/noncore/net/opietooth/lib/startdunconnection.cpp index 37f2ae7..2d23b3a 100644 --- a/noncore/net/opietooth/lib/startdunconnection.cpp +++ b/noncore/net/opietooth/lib/startdunconnection.cpp | |||
@@ -1,6 +1,7 @@ | |||
1 | #include <opie2/odebug.h> | ||
1 | 2 | ||
2 | #include "startdunconnection.h" | 3 | #include "startdunconnection.h" |
3 | 4 | ||
4 | using namespace OpieTooth; | 5 | using namespace OpieTooth; |
5 | 6 | ||
6 | 7 | ||
diff --git a/noncore/net/opietooth/lib/startpanconnection.cpp b/noncore/net/opietooth/lib/startpanconnection.cpp index 50afc9f..29b95e9 100644 --- a/noncore/net/opietooth/lib/startpanconnection.cpp +++ b/noncore/net/opietooth/lib/startpanconnection.cpp | |||
@@ -1,7 +1,7 @@ | |||
1 | 1 | #include <opie2/odebug.h> | |
2 | #include "startpanconnection.h" | 2 | #include "startpanconnection.h" |
3 | 3 | ||
4 | using namespace OpieTooth; | 4 | using namespace OpieTooth; |
5 | 5 | ||
6 | 6 | ||
7 | using namespace Opie::Core; | 7 | using namespace Opie::Core; |
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index b1cddd2..ee01b61 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp | |||
@@ -23,12 +23,14 @@ | |||
23 | #include "rfcommassigndialogimpl.h" | 23 | #include "rfcommassigndialogimpl.h" |
24 | 24 | ||
25 | /* OPIE */ | 25 | /* OPIE */ |
26 | #include <qpe/qpeapplication.h> | 26 | #include <qpe/qpeapplication.h> |
27 | #include <qpe/resource.h> | 27 | #include <qpe/resource.h> |
28 | #include <qpe/config.h> | 28 | #include <qpe/config.h> |
29 | #include <opie2/odebug.h> | ||
30 | using namespace Opie::Core; | ||
29 | 31 | ||
30 | /* QT */ | 32 | /* QT */ |
31 | #include <qframe.h> | 33 | #include <qframe.h> |
32 | #include <qlabel.h> | 34 | #include <qlabel.h> |
33 | #include <qpushbutton.h> | 35 | #include <qpushbutton.h> |
34 | #include <qlayout.h> | 36 | #include <qlayout.h> |
diff --git a/noncore/net/opietooth/manager/config.in b/noncore/net/opietooth/manager/config.in index ecebb9b..56d8b78 100644 --- a/noncore/net/opietooth/manager/config.in +++ b/noncore/net/opietooth/manager/config.in | |||
@@ -1,4 +1,4 @@ | |||
1 | config OPIETOOTH-MANAGER | 1 | config OPIETOOTH-MANAGER |
2 | boolean "opie-bluetoothmanager (Bluetooth manager)" | 2 | boolean "opie-bluetoothmanager (Bluetooth manager)" |
3 | default "y" | 3 | default "y" |
4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && OPIETOOTH && LIBOPIETOOTH | 4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && OPIETOOTH && LIBOPIETOOTH && LIBOPIE2UI |
diff --git a/noncore/net/opietooth/manager/devicehandler.cpp b/noncore/net/opietooth/manager/devicehandler.cpp index bd34351..320ad44 100644 --- a/noncore/net/opietooth/manager/devicehandler.cpp +++ b/noncore/net/opietooth/manager/devicehandler.cpp | |||
@@ -1,11 +1,13 @@ | |||
1 | 1 | ||
2 | #include <stdlib.h> | 2 | #include <stdlib.h> |
3 | 3 | ||
4 | #include <qdir.h> | 4 | #include <qdir.h> |
5 | #include <qpe/config.h> | 5 | #include <qpe/config.h> |
6 | #include <opie2/odebug.h> | ||
7 | using namespace Opie::Core; | ||
6 | 8 | ||
7 | #include "devicehandler.h" | 9 | #include "devicehandler.h" |
8 | 10 | ||
9 | using namespace OpieTooth; | 11 | using namespace OpieTooth; |
10 | 12 | ||
11 | DeviceHandler::DeviceHandler() { | 13 | DeviceHandler::DeviceHandler() { |
diff --git a/noncore/net/opietooth/manager/dunpopup.cpp b/noncore/net/opietooth/manager/dunpopup.cpp index 5b01d2f..10505a9 100644 --- a/noncore/net/opietooth/manager/dunpopup.cpp +++ b/noncore/net/opietooth/manager/dunpopup.cpp | |||
@@ -1,9 +1,11 @@ | |||
1 | #include <qpe/qcopenvelope_qws.h> | 1 | #include <qpe/qcopenvelope_qws.h> |
2 | 2 | ||
3 | #include <qtimer.h> | 3 | #include <qtimer.h> |
4 | #include <opie2/odebug.h> | ||
5 | using namespace Opie::Core; | ||
4 | 6 | ||
5 | #include "dunpopup.h" | 7 | #include "dunpopup.h" |
6 | 8 | ||
7 | using namespace OpieTooth; | 9 | using namespace OpieTooth; |
8 | 10 | ||
9 | /* | 11 | /* |
diff --git a/noncore/net/opietooth/manager/hciconfwrapper.cpp b/noncore/net/opietooth/manager/hciconfwrapper.cpp index 71c935c..ca2e7bd 100644 --- a/noncore/net/opietooth/manager/hciconfwrapper.cpp +++ b/noncore/net/opietooth/manager/hciconfwrapper.cpp | |||
@@ -1,12 +1,15 @@ | |||
1 | #include "hciconfwrapper.h" | 1 | #include "hciconfwrapper.h" |
2 | 2 | ||
3 | #include <qfile.h> | 3 | #include <qfile.h> |
4 | #include <qtextstream.h> | 4 | #include <qtextstream.h> |
5 | #include <qregexp.h> | 5 | #include <qregexp.h> |
6 | 6 | ||
7 | #include <opie2/odebug.h> | ||
8 | using namespace Opie::Core; | ||
9 | |||
7 | namespace OpieTooth { | 10 | namespace OpieTooth { |
8 | 11 | ||
9 | 12 | ||
10 | HciConfWrapper::HciConfWrapper( const QString &fileName) { | 13 | HciConfWrapper::HciConfWrapper( const QString &fileName) { |
11 | m_fileName = fileName; | 14 | m_fileName = fileName; |
12 | } | 15 | } |
diff --git a/noncore/net/opietooth/manager/manager.pro b/noncore/net/opietooth/manager/manager.pro index 238acb3..5c05b4d 100644 --- a/noncore/net/opietooth/manager/manager.pro +++ b/noncore/net/opietooth/manager/manager.pro | |||
@@ -19,12 +19,12 @@ SOURCES = btconnectionitem.cpp btdeviceitem.cpp \ | |||
19 | obexdialog.cpp devicehandler.cpp \ | 19 | obexdialog.cpp devicehandler.cpp \ |
20 | rfcpopup.cpp obexpopup.cpp \ | 20 | rfcpopup.cpp obexpopup.cpp \ |
21 | rfcommhelper.cpp panpopup.cpp dunpopup.cpp rfcommconfhandler.cpp | 21 | rfcommhelper.cpp panpopup.cpp dunpopup.cpp rfcommconfhandler.cpp |
22 | INCLUDEPATH += $(OPIEDIR)/include | 22 | INCLUDEPATH += $(OPIEDIR)/include |
23 | INCLUDEPATH += $(OPIEDIR)/noncore/net/opietooth/lib | 23 | INCLUDEPATH += $(OPIEDIR)/noncore/net/opietooth/lib |
24 | DEPENDPATH += $(OPIEDIR)/include | 24 | DEPENDPATH += $(OPIEDIR)/include |
25 | LIBS += -lqpe -lopietooth -lopiecore2 | 25 | LIBS += -lqpe -lopietooth -lopiecore2 -lopieui2 |
26 | INTERFACES = bluetoothbase.ui devicedialog.ui rfcommassigndialogbase.ui rfcommdialogitembase.ui | 26 | INTERFACES = bluetoothbase.ui devicedialog.ui rfcommassigndialogbase.ui rfcommdialogitembase.ui |
27 | 27 | ||
28 | TARGET = bluetooth-manager | 28 | TARGET = bluetooth-manager |
29 | 29 | ||
30 | include ( $(OPIEDIR)/include.pro ) | 30 | include ( $(OPIEDIR)/include.pro ) |
diff --git a/noncore/net/opietooth/manager/obexdialog.cpp b/noncore/net/opietooth/manager/obexdialog.cpp index 3a3dbb0..951d87a 100644 --- a/noncore/net/opietooth/manager/obexdialog.cpp +++ b/noncore/net/opietooth/manager/obexdialog.cpp | |||
@@ -8,12 +8,14 @@ | |||
8 | #include <qfileinfo.h> | 8 | #include <qfileinfo.h> |
9 | 9 | ||
10 | #include <qpe/resource.h> | 10 | #include <qpe/resource.h> |
11 | 11 | ||
12 | #include <opie2/oprocess.h> | 12 | #include <opie2/oprocess.h> |
13 | #include <opie2/ofiledialog.h> | 13 | #include <opie2/ofiledialog.h> |
14 | #include <opie2/odebug.h> | ||
15 | using namespace Opie::Core; | ||
14 | 16 | ||
15 | using namespace OpieTooth; | 17 | using namespace OpieTooth; |
16 | 18 | ||
17 | using namespace Opie::Core; | 19 | using namespace Opie::Core; |
18 | using namespace Opie::Ui; | 20 | using namespace Opie::Ui; |
19 | using namespace Opie::Core; | 21 | using namespace Opie::Core; |
diff --git a/noncore/net/opietooth/manager/obexpopup.cpp b/noncore/net/opietooth/manager/obexpopup.cpp index 9a50199..010f7de 100644 --- a/noncore/net/opietooth/manager/obexpopup.cpp +++ b/noncore/net/opietooth/manager/obexpopup.cpp | |||
@@ -1,12 +1,14 @@ | |||
1 | 1 | ||
2 | #include "obexdialog.h" | 2 | #include "obexdialog.h" |
3 | #include "obexpopup.h" | 3 | #include "obexpopup.h" |
4 | 4 | ||
5 | /* OPIE */ | 5 | /* OPIE */ |
6 | #include <qpe/qpeapplication.h> | 6 | #include <qpe/qpeapplication.h> |
7 | #include <opie2/odebug.h> | ||
8 | using namespace Opie::Core; | ||
7 | 9 | ||
8 | /* QT */ | 10 | /* QT */ |
9 | #include <qtimer.h> | 11 | #include <qtimer.h> |
10 | 12 | ||
11 | using namespace OpieTooth; | 13 | using namespace OpieTooth; |
12 | 14 | ||
diff --git a/noncore/net/opietooth/manager/panpopup.cpp b/noncore/net/opietooth/manager/panpopup.cpp index 43c2777..f02a58c 100644 --- a/noncore/net/opietooth/manager/panpopup.cpp +++ b/noncore/net/opietooth/manager/panpopup.cpp | |||
@@ -1,7 +1,9 @@ | |||
1 | #include <qpe/qcopenvelope_qws.h> | 1 | #include <qpe/qcopenvelope_qws.h> |
2 | #include <opie2/odebug.h> | ||
3 | using namespace Opie::Core; | ||
2 | 4 | ||
3 | #include <qtimer.h> | 5 | #include <qtimer.h> |
4 | 6 | ||
5 | #include "panpopup.h" | 7 | #include "panpopup.h" |
6 | 8 | ||
7 | using namespace OpieTooth; | 9 | using namespace OpieTooth; |
diff --git a/noncore/net/opietooth/manager/pppdialog.cpp b/noncore/net/opietooth/manager/pppdialog.cpp index 989bf45..ef007f5 100644 --- a/noncore/net/opietooth/manager/pppdialog.cpp +++ b/noncore/net/opietooth/manager/pppdialog.cpp | |||
@@ -3,12 +3,14 @@ | |||
3 | #include <qpushbutton.h> | 3 | #include <qpushbutton.h> |
4 | #include <qmultilineedit.h> | 4 | #include <qmultilineedit.h> |
5 | #include <qlineedit.h> | 5 | #include <qlineedit.h> |
6 | #include <qlayout.h> | 6 | #include <qlayout.h> |
7 | #include <qlabel.h> | 7 | #include <qlabel.h> |
8 | #include <opie2/oprocess.h> | 8 | #include <opie2/oprocess.h> |
9 | #include <opie2/odebug.h> | ||
10 | using namespace Opie::Core; | ||
9 | 11 | ||
10 | using namespace OpieTooth; | 12 | using namespace OpieTooth; |
11 | 13 | ||
12 | using namespace Opie::Core; | 14 | using namespace Opie::Core; |
13 | PPPDialog::PPPDialog( QWidget* parent, const char* name, bool modal, WFlags fl, const QString& device ) | 15 | PPPDialog::PPPDialog( QWidget* parent, const char* name, bool modal, WFlags fl, const QString& device ) |
14 | : QDialog( parent, name, modal, fl ) { | 16 | : QDialog( parent, name, modal, fl ) { |
diff --git a/noncore/net/opietooth/manager/rfcommassigndialogimpl.cpp b/noncore/net/opietooth/manager/rfcommassigndialogimpl.cpp index 4469129..3fe2ea6 100644 --- a/noncore/net/opietooth/manager/rfcommassigndialogimpl.cpp +++ b/noncore/net/opietooth/manager/rfcommassigndialogimpl.cpp | |||
@@ -3,12 +3,14 @@ | |||
3 | #include "rfcommassigndialogitem.h" | 3 | #include "rfcommassigndialogitem.h" |
4 | #include "rfcommconfhandler.h" | 4 | #include "rfcommconfhandler.h" |
5 | 5 | ||
6 | /* OPIE */ | 6 | /* OPIE */ |
7 | #include <qpe/config.h> | 7 | #include <qpe/config.h> |
8 | #include <qpe/qpeapplication.h> | 8 | #include <qpe/qpeapplication.h> |
9 | #include <opie2/odebug.h> | ||
10 | using namespace Opie::Core; | ||
9 | 11 | ||
10 | /* QT */ | 12 | /* QT */ |
11 | #include <qlayout.h> | 13 | #include <qlayout.h> |
12 | 14 | ||
13 | using namespace OpieTooth; | 15 | using namespace OpieTooth; |
14 | 16 | ||
diff --git a/noncore/net/opietooth/manager/rfcommconfhandler.cpp b/noncore/net/opietooth/manager/rfcommconfhandler.cpp index 2ef95ff..1f7ba65 100644 --- a/noncore/net/opietooth/manager/rfcommconfhandler.cpp +++ b/noncore/net/opietooth/manager/rfcommconfhandler.cpp | |||
@@ -1,8 +1,10 @@ | |||
1 | 1 | ||
2 | #include <qtextstream.h> | 2 | #include <qtextstream.h> |
3 | #include <opie2/odebug.h> | ||
4 | using namespace Opie::Core; | ||
3 | 5 | ||
4 | #include "rfcommconfhandler.h" | 6 | #include "rfcommconfhandler.h" |
5 | 7 | ||
6 | 8 | ||
7 | using namespace OpieTooth; | 9 | using namespace OpieTooth; |
8 | 10 | ||
diff --git a/noncore/net/opietooth/manager/rfcpopup.cpp b/noncore/net/opietooth/manager/rfcpopup.cpp index 01ad616..54f1eb7 100644 --- a/noncore/net/opietooth/manager/rfcpopup.cpp +++ b/noncore/net/opietooth/manager/rfcpopup.cpp | |||
@@ -2,12 +2,14 @@ | |||
2 | #include "pppdialog.h" | 2 | #include "pppdialog.h" |
3 | #include "rfcpopup.h" | 3 | #include "rfcpopup.h" |
4 | #include "rfcommassigndialogimpl.h" | 4 | #include "rfcommassigndialogimpl.h" |
5 | 5 | ||
6 | /* OPIE */ | 6 | /* OPIE */ |
7 | #include <qpe/qpeapplication.h> | 7 | #include <qpe/qpeapplication.h> |
8 | #include <opie2/odebug.h> | ||
9 | using namespace Opie::Core; | ||
8 | 10 | ||
9 | /* QT */ | 11 | /* QT */ |
10 | #include <qtimer.h> | 12 | #include <qtimer.h> |
11 | 13 | ||
12 | using namespace OpieTooth; | 14 | using namespace OpieTooth; |
13 | 15 | ||
diff --git a/noncore/net/opietooth/manager/scandialog.cpp b/noncore/net/opietooth/manager/scandialog.cpp index 3b005c4..bccc6c2 100644 --- a/noncore/net/opietooth/manager/scandialog.cpp +++ b/noncore/net/opietooth/manager/scandialog.cpp | |||
@@ -28,12 +28,15 @@ | |||
28 | #include <qprogressbar.h> | 28 | #include <qprogressbar.h> |
29 | #include <qlist.h> | 29 | #include <qlist.h> |
30 | 30 | ||
31 | #include <manager.h> | 31 | #include <manager.h> |
32 | #include <device.h> | 32 | #include <device.h> |
33 | 33 | ||
34 | #include <opie2/odebug.h> | ||
35 | using namespace Opie::Core; | ||
36 | |||
34 | 37 | ||
35 | namespace OpieTooth { | 38 | namespace OpieTooth { |
36 | 39 | ||
37 | #include <remotedevice.h> | 40 | #include <remotedevice.h> |
38 | 41 | ||
39 | /** | 42 | /** |