summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/README19
-rw-r--r--libopie2/libopie2.pro9
-rw-r--r--libopie2/opiecore/oapplication.cpp12
-rw-r--r--libopie2/opiecore/oapplication.h10
-rw-r--r--libopie2/opiecore/opiecore.pro11
-rw-r--r--libopie2/opiedb/opiedb.pro8
-rw-r--r--libopie2/opiedb/osqlmanager.h2
-rw-r--r--libopie2/opiemm/opiemm.pro8
-rw-r--r--libopie2/opiemm/osoundsystem.cpp1
-rw-r--r--libopie2/opienet/opienet.pro8
-rw-r--r--libopie2/opiepim/opiepim.pro9
-rw-r--r--libopie2/opieui/opieui.pro20
-rw-r--r--libopie2/opieui/oversatileview.h2
13 files changed, 105 insertions, 14 deletions
diff --git a/libopie2/README b/libopie2/README
index 57172a7..daf6b27 100644
--- a/libopie2/README
+++ b/libopie2/README
@@ -1,37 +1,56 @@
1/******************************************************************** 1/********************************************************************
2/* This is an overview of the opielibs2 project 2/* This is an overview of the opielibs2 project
3/********************************************************************/ 3/********************************************************************/
4 4
5 Origin: opielibs is about creating classes to 5 Origin: opielibs is about creating classes to
6 * optimize Qt classes for the embedded environment 6 * optimize Qt classes for the embedded environment
7 * provide sophisticated abstractions for developers 7 * provide sophisticated abstractions for developers
8 * provide complete documentation and working examples 8 * provide complete documentation and working examples
9 * provide end users with a common look and feel 9 * provide end users with a common look and feel
10 * reduce memory footprint through sharing code 10 * reduce memory footprint through sharing code
11 * reduce possible bugs through reusing tested code 11 * reduce possible bugs through reusing tested code
12 12
13-------------------------------------------------------- 13--------------------------------------------------------
140. Building
15--------------------------------------------------------
16
17* for QPE run:
18 qmake libopie2.pro
19 make
20
21OR (even better)
22 cd $OPIEDIR
23 make menuconfig
24 make -k
25
26* for QT/X11 run:
27 qmake "platform=x11" libopie2.pro
28 make
29
30Make sure you have set $PLATFORM=x86-linux
31
32--------------------------------------------------------
141. General Overview 331. General Overview
15-------------------------------------------------------- 34--------------------------------------------------------
16 35
17libopie is functionally seperated into the following libraries: 36libopie is functionally seperated into the following libraries:
18 - libopiecore 37 - libopiecore
19 - libopieui 38 - libopieui
20 - libopiepim 39 - libopiepim
21 - libopiedb 40 - libopiedb
22 - libopienet 41 - libopienet
23 - libopiemm 42 - libopiemm
24 43
251.1 Contents of libopiecore [ opiecore ] 441.1 Contents of libopiecore [ opiecore ]
26-------------------------------------------------------- 45--------------------------------------------------------
27 46
28 - odbgstream 47 - odbgstream
29 - ondbgstream 48 - ondbgstream
30 49
31 - oprocctrl 50 - oprocctrl
32 - oprocess 51 - oprocess
33 - odevice 52 - odevice
34 - odevicebutton 53 - odevicebutton
35 54
36 - oconfig 55 - oconfig
37 - oconfiggroupsaver 56 - oconfiggroupsaver
diff --git a/libopie2/libopie2.pro b/libopie2/libopie2.pro
index 0bd1d06..e734654 100644
--- a/libopie2/libopie2.pro
+++ b/libopie2/libopie2.pro
@@ -1,4 +1,11 @@
1TEMPLATE = subdirs 1TEMPLATE = subdirs
2unix:SUBDIRS = opiecore opiedb opiepim opieui opienet opiemm examples 2unix:SUBDIRS = opiecore opiedb opiepim opieui opienet opiemm examples
3 3
4include ( $(OPIEDIR)/include.pro ) 4!contains( platform, x11 ) {
5 message( Configuring libopie2 for build on Opie )
6 include ( $(OPIEDIR)/include.pro )
7}
8
9contains( platform, x11 ) {
10 message( Configuring libopie2 for build on Qt/X11 )
11}
diff --git a/libopie2/opiecore/oapplication.cpp b/libopie2/opiecore/oapplication.cpp
index 06d8ba2..84cab48 100644
--- a/libopie2/opiecore/oapplication.cpp
+++ b/libopie2/opiecore/oapplication.cpp
@@ -9,72 +9,77 @@
9.> <`_,   >  .   <= redistribute it and/or modify it under 9.> <`_,   >  .   <= redistribute it and/or modify it under
10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public 10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
11.="- .-=="i,     .._ License as published by the Free Software 11.="- .-=="i,     .._ License as published by the Free Software
12 - .   .-<_>     .<> Foundation; either version 2 of the License, 12 - .   .-<_>     .<> Foundation; either version 2 of the License,
13     ._= =}       : or (at your option) any later version. 13     ._= =}       : or (at your option) any later version.
14    .%`+i>       _;_. 14    .%`+i>       _;_.
15    .i_,=:_.      -<s. This program is distributed in the hope that 15    .i_,=:_.      -<s. This program is distributed in the hope that
16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
17    : ..    .:,     . . . without even the implied warranty of 17    : ..    .:,     . . . without even the implied warranty of
18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20..}^=.=       =       ; Library General Public License for more 20..}^=.=       =       ; Library General Public License for more
21++=   -.     .`     .: details. 21++=   -.     .`     .: details.
22 :     =  ...= . :.=- 22 :     =  ...= . :.=-
23 -.   .:....=;==+<; You should have received a copy of the GNU 23 -.   .:....=;==+<; You should have received a copy of the GNU
24  -_. . .   )=.  = Library General Public License along with 24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB. 25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation, 26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330, 27 Inc., 59 Temple Place - Suite 330,
28 Boston, MA 02111-1307, USA. 28 Boston, MA 02111-1307, USA.
29*/ 29*/
30 30
31#include <opie2/oapplication.h> 31#include <opie2/oapplication.h>
32#include <opie2/oconfig.h> 32#include <opie2/oconfig.h>
33#include <opie2/odebug.h>
33 34
34#include <signal.h> 35#include <signal.h>
35#include <stdio.h> 36#include <stdio.h>
36 37
37OApplication* OApplication::_instance = 0; 38OApplication* OApplication::_instance = 0;
38 39
39/**************************************************************************************************/ 40/**************************************************************************************************/
40/* OApplicationPrivate 41/* OApplicationPrivate
41/**************************************************************************************************/ 42/**************************************************************************************************/
42 43
43class OApplicationPrivate 44class OApplicationPrivate
44{ 45{
45 public: 46 public:
46 OApplicationPrivate() {}; 47 OApplicationPrivate() {};
47 ~OApplicationPrivate() {}; 48 ~OApplicationPrivate() {};
48}; 49};
49 50
50/**************************************************************************************************/ 51/**************************************************************************************************/
51/* OApplication 52/* OApplication
52/**************************************************************************************************/ 53/**************************************************************************************************/
53 54
54 55
55OApplication::OApplication( int& argc, char** argv, const QCString& rAppName ) 56OApplication::OApplication( int& argc, char** argv, const QCString& rAppName )
57#ifdef QWS
56 :QPEApplication( argc, argv ), 58 :QPEApplication( argc, argv ),
59#else
60 :QApplication( argc, argv ),
61#endif
57 _appname( rAppName ), 62 _appname( rAppName ),
58 _config( 0 ) 63 _config( 0 )
59{ 64{
60 init(); 65 init();
61} 66}
62 67
63 68
64OApplication::~OApplication() 69OApplication::~OApplication()
65{ 70{
66 delete d; 71 delete d;
67 if ( _config ) 72 if ( _config )
68 delete _config; 73 delete _config;
69 OApplication::_instance = 0; 74 OApplication::_instance = 0;
70 // after deconstruction of the one-and-only application object, 75 // after deconstruction of the one-and-only application object,
71 // the construction of another object is allowed 76 // the construction of another object is allowed
72} 77}
73 78
74 79
75OConfig* OApplication::config() 80OConfig* OApplication::config()
76{ 81{
77 if ( !_config ) 82 if ( !_config )
78 { 83 {
79 _config = new OConfig( _appname ); 84 _config = new OConfig( _appname );
80 } 85 }
@@ -86,40 +91,47 @@ void OApplication::init()
86{ 91{
87 d = new OApplicationPrivate(); 92 d = new OApplicationPrivate();
88 if ( !OApplication::_instance ) 93 if ( !OApplication::_instance )
89 { 94 {
90 OApplication::_instance = this; 95 OApplication::_instance = this;
91 96
92 /* register SIGSEGV handler to give programs an option 97 /* register SIGSEGV handler to give programs an option
93 * to exit gracefully, e.g. save or close devices or files. 98 * to exit gracefully, e.g. save or close devices or files.
94 struct sigaction sa; 99 struct sigaction sa;
95 sa.sa_handler = ( void (*)(int) ) &segv_handler; 100 sa.sa_handler = ( void (*)(int) ) &segv_handler;
96 sa.sa_flags = SA_SIGINFO | SA_RESTART; 101 sa.sa_flags = SA_SIGINFO | SA_RESTART;
97 sigemptyset(&sa.sa_mask); 102 sigemptyset(&sa.sa_mask);
98 sigaction(SIGSEGV, &sa, NULL); 103 sigaction(SIGSEGV, &sa, NULL);
99 */ 104 */
100 } 105 }
101 else 106 else
102 { 107 {
103 qFatal( "OApplication: Can't create more than one OApplication object. Aborting." ); 108 qFatal( "OApplication: Can't create more than one OApplication object. Aborting." );
104 } 109 }
105} 110}
106 111
107 112
108void OApplication::showMainWidget( QWidget* widget, bool nomax ) 113void OApplication::showMainWidget( QWidget* widget, bool nomax )
109{ 114{
115#ifdef QWS
110 QPEApplication::showMainWidget( widget, nomax ); 116 QPEApplication::showMainWidget( widget, nomax );
117#else
118// tille: I am quit sure if this is the right way to do..
119 odDebug(nomax,7) << "ignoring nomax";
120 setMainWidget( widget );
121 widget->show();
122#endif
111 widget->setCaption( _appname ); 123 widget->setCaption( _appname );
112} 124}
113 125
114 126
115void OApplication::setTitle( const QString& title ) const 127void OApplication::setTitle( const QString& title ) const
116{ 128{
117 if ( mainWidget() ) 129 if ( mainWidget() )
118 { 130 {
119 if ( !title.isNull() ) 131 if ( !title.isNull() )
120 mainWidget()->setCaption( QString(_appname) + QString( " - " ) + title ); 132 mainWidget()->setCaption( QString(_appname) + QString( " - " ) + title );
121 else 133 else
122 mainWidget()->setCaption( _appname ); 134 mainWidget()->setCaption( _appname );
123 } 135 }
124} 136}
125 137
diff --git a/libopie2/opiecore/oapplication.h b/libopie2/opiecore/oapplication.h
index 6bc2b1c..3043910 100644
--- a/libopie2/opiecore/oapplication.h
+++ b/libopie2/opiecore/oapplication.h
@@ -12,54 +12,62 @@
12 - .   .-<_>     .<> Foundation; either version 2 of the License, 12 - .   .-<_>     .<> Foundation; either version 2 of the License,
13     ._= =}       : or (at your option) any later version. 13     ._= =}       : or (at your option) any later version.
14    .%`+i>       _;_. 14    .%`+i>       _;_.
15    .i_,=:_.      -<s. This program is distributed in the hope that 15    .i_,=:_.      -<s. This program is distributed in the hope that
16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
17    : ..    .:,     . . . without even the implied warranty of 17    : ..    .:,     . . . without even the implied warranty of
18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20..}^=.=       =       ; Library General Public License for more 20..}^=.=       =       ; Library General Public License for more
21++=   -.     .`     .: details. 21++=   -.     .`     .: details.
22 :     =  ...= . :.=- 22 :     =  ...= . :.=-
23 -.   .:....=;==+<; You should have received a copy of the GNU 23 -.   .:....=;==+<; You should have received a copy of the GNU
24  -_. . .   )=.  = Library General Public License along with 24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB. 25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation, 26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330, 27 Inc., 59 Temple Place - Suite 330,
28 Boston, MA 02111-1307, USA. 28 Boston, MA 02111-1307, USA.
29*/ 29*/
30 30
31#ifndef OAPPLICATION_H 31#ifndef OAPPLICATION_H
32#define OAPPLICATION_H 32#define OAPPLICATION_H
33 33
34#define oApp OApplication::oApplication() 34#define oApp OApplication::oApplication()
35 35
36#ifdef QWS
36#include <qpe/qpeapplication.h> 37#include <qpe/qpeapplication.h>
38#else
39#include <qapplication.h>
40#endif
37 41
38class OApplicationPrivate; 42class OApplicationPrivate;
39class OConfig; 43class OConfig;
40 44
41class OApplication: public QPEApplication 45#ifdef QWS
46class OApplication : public QPEApplication
47#else
48class OApplication : public QApplication
49#endif
42{ 50{
43 Q_OBJECT 51 Q_OBJECT
44 52
45 public: 53 public:
46 /** 54 /**
47 * Constructor. Parses command-line arguments and sets the window caption. 55 * Constructor. Parses command-line arguments and sets the window caption.
48 * 56 *
49 * @param rAppName application name. Will be used for finding the 57 * @param rAppName application name. Will be used for finding the
50 * associated message, icon and configuration files 58 * associated message, icon and configuration files
51 * 59 *
52 */ 60 */
53 OApplication( int& argc, char** argv, const QCString& rAppName ); 61 OApplication( int& argc, char** argv, const QCString& rAppName );
54 /** 62 /**
55 * Destructor. Destroys the application object and its children. 63 * Destructor. Destroys the application object and its children.
56 */ 64 */
57 virtual ~OApplication(); 65 virtual ~OApplication();
58 /** 66 /**
59 * @returns the process-wide application object 67 * @returns the process-wide application object
60 * 68 *
61 * This is similar to the global @ref QApplication pointer qApp. It 69 * This is similar to the global @ref QApplication pointer qApp. It
62 * allows access to the single global OApplication object, since 70 * allows access to the single global OApplication object, since
63 * more than one cannot be created in the same application. It 71 * more than one cannot be created in the same application. It
64 * saves you the trouble of having to pass the pointer explicitly 72 * saves you the trouble of having to pass the pointer explicitly
65 * to every function that may require it. 73 * to every function that may require it.
diff --git a/libopie2/opiecore/opiecore.pro b/libopie2/opiecore/opiecore.pro
index ed7d6d7..c8a291a 100644
--- a/libopie2/opiecore/opiecore.pro
+++ b/libopie2/opiecore/opiecore.pro
@@ -2,30 +2,37 @@ TEMPLATE = lib
2CONFIG += qt warn_on debug 2CONFIG += qt warn_on debug
3DESTDIR = $(OPIEDIR)/lib 3DESTDIR = $(OPIEDIR)/lib
4HEADERS = oapplication.h \ 4HEADERS = oapplication.h \
5 oconfig.h \ 5 oconfig.h \
6 ocompletionbase.h \ 6 ocompletionbase.h \
7 ocompletion.h \ 7 ocompletion.h \
8 odebug.h \ 8 odebug.h \
9 oglobal.h \ 9 oglobal.h \
10 oglobalsettings.h \ 10 oglobalsettings.h \
11 osortablevaluelist.h 11 osortablevaluelist.h
12 12
13SOURCES = oapplication.cpp \ 13SOURCES = oapplication.cpp \
14 oconfig.cpp \ 14 oconfig.cpp \
15 ocompletionbase.cpp \ 15 ocompletionbase.cpp \
16 ocompletion.cpp \ 16 ocompletion.cpp \
17 odebug.cpp \ 17 odebug.cpp \
18 oglobal.cpp \ 18 oglobal.cpp \
19 oglobalsettings.cpp 19 oglobalsettings.cpp
20 20
21INTERFACES = 21INTERFACES =
22TARGET = opiecore2 22TARGET = opiecore2
23VERSION = 1.8.1 23VERSION = 1.8.1
24INCLUDEPATH += $(OPIEDIR)/include 24INCLUDEPATH += $(OPIEDIR)/include
25DEPENDPATH += $(OPIEDIR)/include 25DEPENDPATH += $(OPIEDIR)/include
26LIBS = -lqpe
27MOC_DIR = moc 26MOC_DIR = moc
28OBJECTS_DIR = obj 27OBJECTS_DIR = obj
29 28
30include ( $(OPIEDIR)/include.pro ) 29
30!contains( platform, x11 ) {
31 LIBS = -lqpe
32 include ( $(OPIEDIR)/include.pro )
33}
34
35contains( platform, x11 ) {
36 LIBS = -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib
37}
31 38
diff --git a/libopie2/opiedb/opiedb.pro b/libopie2/opiedb/opiedb.pro
index 401646a..3612f0e 100644
--- a/libopie2/opiedb/opiedb.pro
+++ b/libopie2/opiedb/opiedb.pro
@@ -7,26 +7,32 @@ HEADERS = osqlbackend.h \
7 osqlmanager.h \ 7 osqlmanager.h \
8 osqlquery.h \ 8 osqlquery.h \
9 osqlresult.h \ 9 osqlresult.h \
10 osqltable.h \ 10 osqltable.h \
11 osqlbackendmanager.h \ 11 osqlbackendmanager.h \
12 osqlitedriver.h 12 osqlitedriver.h
13SOURCES = osqlbackend.cpp \ 13SOURCES = osqlbackend.cpp \
14 osqldriver.cpp \ 14 osqldriver.cpp \
15 osqlerror.cpp \ 15 osqlerror.cpp \
16 osqlmanager.cpp \ 16 osqlmanager.cpp \
17 osqlquery.cpp \ 17 osqlquery.cpp \
18 osqlresult.cpp \ 18 osqlresult.cpp \
19 osqltable.cpp \ 19 osqltable.cpp \
20 osqlbackendmanager.cpp \ 20 osqlbackendmanager.cpp \
21 osqlitedriver.cpp 21 osqlitedriver.cpp
22INTERFACES = 22INTERFACES =
23TARGET = opiedb2 23TARGET = opiedb2
24VERSION = 1.8.1 24VERSION = 1.8.1
25INCLUDEPATH += $(OPIEDIR)/include 25INCLUDEPATH += $(OPIEDIR)/include
26DEPENDPATH += $(OPIEDIR)/include 26DEPENDPATH += $(OPIEDIR)/include
27 27
28MOC_DIR = moc 28MOC_DIR = moc
29OBJECTS_DIR = obj 29OBJECTS_DIR = obj
30 30
31include ( $(OPIEDIR)/include.pro ) 31!contains( platform, x11 ) {
32 include ( $(OPIEDIR)/include.pro )
33}
34
35contains( platform, x11 ) {
36 LIBS = -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib
37}
32 38
diff --git a/libopie2/opiedb/osqlmanager.h b/libopie2/opiedb/osqlmanager.h
index b3d8d69..5323b14 100644
--- a/libopie2/opiedb/osqlmanager.h
+++ b/libopie2/opiedb/osqlmanager.h
@@ -1,32 +1,34 @@
1 1
2#ifndef OSQL_MANAGER_H 2#ifndef OSQL_MANAGER_H
3#define OSQL_MANAGER_H 3#define OSQL_MANAGER_H
4 4
5#include <qobject.h> 5#include <qobject.h>
6#include <qstringlist.h>
6 7
7#include "osqlbackend.h" 8#include "osqlbackend.h"
8 9
10
9/** 11/**
10 * OSQLManager is responsible for loading 12 * OSQLManager is responsible for loading
11 * and unloading, querying different OSQL 13 * and unloading, querying different OSQL
12 * services 14 * services
13 * Load a OSQLDriver and delete it yourself 15 * Load a OSQLDriver and delete it yourself
14 * 16 *
15 */ 17 */
16class OSQLDriver; 18class OSQLDriver;
17class OSQLManager : public QObject { 19class OSQLManager : public QObject {
18 Q_OBJECT 20 Q_OBJECT
19public: 21public:
20 /** 22 /**
21 * Empty c'tor 23 * Empty c'tor
22 */ 24 */
23 OSQLManager(); 25 OSQLManager();
24 26
25 /** 27 /**
26 * Query the Manager for different backends 28 * Query the Manager for different backends
27 */ 29 */
28 OSQLBackEnd::ValueList queryBackEnd(); 30 OSQLBackEnd::ValueList queryBackEnd();
29 31
30 /** 32 /**
31 * Load a backend with it's name from param name 33 * Load a backend with it's name from param name
32 */ 34 */
diff --git a/libopie2/opiemm/opiemm.pro b/libopie2/opiemm/opiemm.pro
index 8e5eeb4..d3ce8f7 100644
--- a/libopie2/opiemm/opiemm.pro
+++ b/libopie2/opiemm/opiemm.pro
@@ -1,16 +1,22 @@
1TEMPLATE = lib 1TEMPLATE = lib
2CONFIG += qt warn_on debug 2CONFIG += qt warn_on debug
3DESTDIR = $(OPIEDIR)/lib 3DESTDIR = $(OPIEDIR)/lib
4HEADERS = osoundsystem.h 4HEADERS = osoundsystem.h
5SOURCES = osoundsystem.cpp 5SOURCES = osoundsystem.cpp
6INTERFACES = 6INTERFACES =
7TARGET = opiemm2 7TARGET = opiemm2
8VERSION = 1.8.1 8VERSION = 1.8.1
9INCLUDEPATH += $(OPIEDIR)/include 9INCLUDEPATH += $(OPIEDIR)/include
10DEPENDPATH += $(OPIEDIR)/include 10DEPENDPATH += $(OPIEDIR)/include
11LIBS += 11LIBS +=
12MOC_DIR = moc 12MOC_DIR = moc
13OBJECTS_DIR = obj 13OBJECTS_DIR = obj
14 14
15include ( $(OPIEDIR)/include.pro )
16 15
16!contains( platform, x11 ) {
17 include ( $(OPIEDIR)/include.pro )
18}
19
20contains( platform, x11 ) {
21 LIBS = -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib
22}
diff --git a/libopie2/opiemm/osoundsystem.cpp b/libopie2/opiemm/osoundsystem.cpp
index fd23bea..d857659 100644
--- a/libopie2/opiemm/osoundsystem.cpp
+++ b/libopie2/opiemm/osoundsystem.cpp
@@ -18,48 +18,49 @@
18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20..}^=.=       =       ; Library General Public License for more 20..}^=.=       =       ; Library General Public License for more
21++=   -.     .`     .: details. 21++=   -.     .`     .: details.
22 :     =  ...= . :.=- 22 :     =  ...= . :.=-
23 -.   .:....=;==+<; You should have received a copy of the GNU 23 -.   .:....=;==+<; You should have received a copy of the GNU
24  -_. . .   )=.  = Library General Public License along with 24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB. 25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation, 26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330, 27 Inc., 59 Temple Place - Suite 330,
28 Boston, MA 02111-1307, USA. 28 Boston, MA 02111-1307, USA.
29 29
30*/ 30*/
31 31
32#include <opie2/osoundsystem.h> 32#include <opie2/osoundsystem.h>
33 33
34#include <errno.h> 34#include <errno.h>
35#include <fcntl.h> 35#include <fcntl.h>
36#include <string.h> 36#include <string.h>
37#include <sys/ioctl.h> 37#include <sys/ioctl.h>
38#include <sys/types.h> 38#include <sys/types.h>
39#include <sys/soundcard.h> 39#include <sys/soundcard.h>
40#include <sys/stat.h> 40#include <sys/stat.h>
41 41
42#include <qstringlist.h>
42 43
43/*====================================================================================== 44/*======================================================================================
44 * OSoundSystem 45 * OSoundSystem
45 *======================================================================================*/ 46 *======================================================================================*/
46 47
47OSoundSystem* OSoundSystem::_instance = 0; 48OSoundSystem* OSoundSystem::_instance = 0;
48 49
49OSoundSystem::OSoundSystem() 50OSoundSystem::OSoundSystem()
50{ 51{
51 qDebug( "OSoundSystem::OSoundSystem()" ); 52 qDebug( "OSoundSystem::OSoundSystem()" );
52 synchronize(); 53 synchronize();
53} 54}
54 55
55void OSoundSystem::synchronize() 56void OSoundSystem::synchronize()
56{ 57{
57 // gather available interfaces by inspecting /dev 58 // gather available interfaces by inspecting /dev
58 //FIXME: we could use SIOCGIFCONF here, but we aren't interested in virtual (e.g. eth0:0) devices 59 //FIXME: we could use SIOCGIFCONF here, but we aren't interested in virtual (e.g. eth0:0) devices
59 //FIXME: Use SIOCGIFCONF anway, because we can disable listing of aliased devices 60 //FIXME: Use SIOCGIFCONF anway, because we can disable listing of aliased devices
60 61
61 _interfaces.clear(); 62 _interfaces.clear();
62 _interfaces.insert( "soundcard", new OSoundCard( this, "soundcard" ) ); 63 _interfaces.insert( "soundcard", new OSoundCard( this, "soundcard" ) );
63 64
64 65
65 /* 66 /*
diff --git a/libopie2/opienet/opienet.pro b/libopie2/opienet/opienet.pro
index 3f9166a..93389db 100644
--- a/libopie2/opienet/opienet.pro
+++ b/libopie2/opienet/opienet.pro
@@ -1,22 +1,28 @@
1TEMPLATE = lib 1TEMPLATE = lib
2CONFIG += qt warn_on debug 2CONFIG += qt warn_on debug
3DESTDIR = $(OPIEDIR)/lib 3DESTDIR = $(OPIEDIR)/lib
4HEADERS = omanufacturerdb.cpp \ 4HEADERS = omanufacturerdb.cpp \
5 onetutils.cpp \ 5 onetutils.cpp \
6 onetwork.h \ 6 onetwork.h \
7 opcap.h 7 opcap.h
8SOURCES = omanufacturerdb.cpp \ 8SOURCES = omanufacturerdb.cpp \
9 onetutils.cpp \ 9 onetutils.cpp \
10 onetwork.cpp \ 10 onetwork.cpp \
11 opcap.cpp 11 opcap.cpp
12INTERFACES = 12INTERFACES =
13TARGET = opienet2 13TARGET = opienet2
14VERSION = 1.8.1 14VERSION = 1.8.1
15INCLUDEPATH += $(OPIEDIR)/include 15INCLUDEPATH += $(OPIEDIR)/include
16DEPENDPATH += $(OPIEDIR)/include 16DEPENDPATH += $(OPIEDIR)/include
17LIBS += -lpcap 17LIBS += -lpcap
18MOC_DIR = moc 18MOC_DIR = moc
19OBJECTS_DIR = obj 19OBJECTS_DIR = obj
20 20
21include ( $(OPIEDIR)/include.pro )
22 21
22!contains( platform, x11 ) {
23 include ( $(OPIEDIR)/include.pro )
24}
25
26contains( platform, x11 ) {
27 LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib
28}
diff --git a/libopie2/opiepim/opiepim.pro b/libopie2/opiepim/opiepim.pro
index 7fc7bb7..cc6ee90 100644
--- a/libopie2/opiepim/opiepim.pro
+++ b/libopie2/opiepim/opiepim.pro
@@ -1,17 +1,24 @@
1TEMPLATE = lib 1TEMPLATE = lib
2CONFIG += qt warn_on debug 2CONFIG += qt warn_on debug
3DESTDIR = $(OPIEDIR)/lib 3DESTDIR = $(OPIEDIR)/lib
4HEADERS = 4HEADERS =
5 5
6SOURCES = 6SOURCES =
7INTERFACES = 7INTERFACES =
8TARGET = opiepim2 8TARGET = opiepim2
9VERSION = 1.8.1 9VERSION = 1.8.1
10INCLUDEPATH += $(OPIEDIR)/include 10INCLUDEPATH += $(OPIEDIR)/include
11DEPENDPATH += $(OPIEDIR)/include 11DEPENDPATH += $(OPIEDIR)/include
12 12
13MOC_DIR = moc 13MOC_DIR = moc
14OBJECTS_DIR = obj 14OBJECTS_DIR = obj
15 15
16include ( $(OPIEDIR)/include.pro ) 16
17!contains( platform, x11 ) {
18 include ( $(OPIEDIR)/include.pro )
19}
20
21contains( platform, x11 ) {
22 LIBS = -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib
23}
17 24
diff --git a/libopie2/opieui/opieui.pro b/libopie2/opieui/opieui.pro
index aa85955..1b6ecdf 100644
--- a/libopie2/opieui/opieui.pro
+++ b/libopie2/opieui/opieui.pro
@@ -1,48 +1,58 @@
1TEMPLATE = lib 1TEMPLATE = lib
2CONFIG += qt warn_on debug 2CONFIG += qt warn_on debug
3DESTDIR = $(OPIEDIR)/lib 3DESTDIR = $(OPIEDIR)/lib
4HEADERS = ocompletionbox.h \ 4HEADERS = ocompletionbox.h \
5 ocombobox.h \ 5 ocombobox.h \
6 oeditlistbox.h \ 6 oeditlistbox.h \
7 olineedit.h \ 7 olineedit.h \
8 olistview.h \ 8 olistview.h \
9 oimageeffect.h \ 9 oimageeffect.h \
10 opixmapeffect.h \ 10 opixmapeffect.h \
11 opopupmenu.h \ 11 opopupmenu.h \
12 opixmapprovider.h \ 12 opixmapprovider.h \
13 oselector.h \ 13 oselector.h \
14 oversatileview.h \ 14 oversatileview.h \
15 oversatileviewitem.h \ 15 oversatileviewitem.h \
16 #ojanuswidget.h \ 16 #ojanuswidget.h \
17 odialog.h \ 17 odialog.h \
18 oseparator.h \ 18 oseparator.h
19 otaskbarapplet.h 19# otaskbarapplet.h
20 20
21SOURCES = ocompletionbox.cpp \ 21SOURCES = ocompletionbox.cpp \
22 ocombobox.cpp \ 22 ocombobox.cpp \
23 oeditlistbox.cpp \ 23 oeditlistbox.cpp \
24 olineedit.cpp \ 24 olineedit.cpp \
25 olistview.cpp \ 25 olistview.cpp \
26 oimageeffect.cpp \ 26 oimageeffect.cpp \
27 opixmapeffect.cpp \ 27 opixmapeffect.cpp \
28 opopupmenu.cpp \ 28 opopupmenu.cpp \
29 opixmapprovider.cpp \ 29 opixmapprovider.cpp \
30 oselector.cpp \ 30 oselector.cpp \
31 oversatileview.cpp \ 31 oversatileview.cpp \
32 oversatileviewitem.cpp \ 32 oversatileviewitem.cpp \
33 #ojanuswidget.cpp \ 33 #ojanuswidget.cpp \
34 odialog.cpp \ 34 odialog.cpp \
35 oseparator.cpp \ 35 oseparator.cpp #\
36 otaskbarapplet.cpp 36# otaskbarapplet.cpp
37 37
38INTERFACES = 38INTERFACES =
39TARGET = opieui2 39TARGET = opieui2
40VERSION = 1.8.1 40VERSION = 1.8.1
41INCLUDEPATH += $(OPIEDIR)/include 41INCLUDEPATH += $(OPIEDIR)/include
42DEPENDPATH += $(OPIEDIR)/include 42DEPENDPATH += $(OPIEDIR)/include
43LIBS += -lopiecore2 43LIBS += -lopiecore2
44MOC_DIR = moc 44MOC_DIR = moc
45OBJECTS_DIR = obj 45OBJECTS_DIR = obj
46 46
47include ( $(OPIEDIR)/include.pro ) 47
48!contains( platform, x11 ) {
49 include ( $(OPIEDIR)/include.pro )
50 HEADERS += otaskbarapplet.h
51 SOURCES += otaskbarapplet.cpp
52}
53
54contains( platform, x11 ) {
55 LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib
56 message( Warning: NO otaskbarapplet ATM )
57}
48 58
diff --git a/libopie2/opieui/oversatileview.h b/libopie2/opieui/oversatileview.h
index 1df8154..8af21dc 100644
--- a/libopie2/opieui/oversatileview.h
+++ b/libopie2/opieui/oversatileview.h
@@ -17,49 +17,49 @@
17    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 17    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
18  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 18  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
19..}^=.=       =       ; Library General Public License for more 19..}^=.=       =       ; Library General Public License for more
20++=   -.     .`     .: details. 20++=   -.     .`     .: details.
21 :     =  ...= . :.=- 21 :     =  ...= . :.=-
22 -.   .:....=;==+<; You should have received a copy of the GNU 22 -.   .:....=;==+<; You should have received a copy of the GNU
23  -_. . .   )=.  = Library General Public License along with 23  -_. . .   )=.  = Library General Public License along with
24    --        :-=` this library; see the file COPYING.LIB. 24    --        :-=` this library; see the file COPYING.LIB.
25 If not, write to the Free Software Foundation, 25 If not, write to the Free Software Foundation,
26 Inc., 59 Temple Place - Suite 330, 26 Inc., 59 Temple Place - Suite 330,
27 Boston, MA 02111-1307, USA. 27 Boston, MA 02111-1307, USA.
28 28
29*/ 29*/
30 30
31#ifndef OVERSATILEVIEW_H 31#ifndef OVERSATILEVIEW_H
32#define OVERSATILEVIEW_H 32#define OVERSATILEVIEW_H
33 33
34/* QT */ 34/* QT */
35 35
36#include <qwidgetstack.h> 36#include <qwidgetstack.h>
37#include <qiconview.h> 37#include <qiconview.h>
38 38
39/* OPIE */ 39/* OPIE */
40 40
41#include <qpe/qpeapplication.h> 41#include <opie2/oapplication.h>
42 42
43/* FORWARDS */ 43/* FORWARDS */
44 44
45class QHeader; 45class QHeader;
46class QIconSet; 46class QIconSet;
47class QIconViewItem; 47class QIconViewItem;
48class OListView; 48class OListView;
49class QListViewItem; 49class QListViewItem;
50class QPopupMenu; 50class QPopupMenu;
51class QString; 51class QString;
52 52
53#ifndef QT_NO_DRAGANDDROP 53#ifndef QT_NO_DRAGANDDROP
54class QIconDragItem; 54class QIconDragItem;
55#endif 55#endif
56 56
57class OVersatileView : public QWidgetStack 57class OVersatileView : public QWidgetStack
58{ 58{
59 Q_OBJECT 59 Q_OBJECT
60 60
61 friend class OVersatileViewItem; 61 friend class OVersatileViewItem;
62 62
63 //==============================================================================================// 63 //==============================================================================================//
64 // OVersatileView High Level API 64 // OVersatileView High Level API
65 //==============================================================================================// 65 //==============================================================================================//