summaryrefslogtreecommitdiff
path: root/examples
Side-by-side diff
Diffstat (limited to 'examples') (more/less context) (show whitespace changes)
-rw-r--r--examples/examples.pro3
-rw-r--r--examples/opiebluez/.cvsignore6
-rw-r--r--examples/opiebluez/config.in4
-rw-r--r--examples/opiebluez/obluezdemo/.cvsignore6
-rw-r--r--examples/opiebluez/obluezdemo/main.cpp7
-rw-r--r--examples/opiebluez/obluezdemo/main.h0
-rw-r--r--examples/opiebluez/obluezdemo/obluezdemo.pro16
-rw-r--r--examples/opiebluez/oblueztest/.cvsignore6
-rw-r--r--examples/opiebluez/oblueztest/main.cpp5
-rw-r--r--examples/opiebluez/oblueztest/main.h0
-rw-r--r--examples/opiebluez/oblueztest/oblueztest.pro17
-rw-r--r--examples/opiebluez/opiebluez.pro3
-rw-r--r--examples/opiecore/opcmciademo/main.cpp9
13 files changed, 79 insertions, 3 deletions
diff --git a/examples/examples.pro b/examples/examples.pro
index 88b244a..fd83a9b 100644
--- a/examples/examples.pro
+++ b/examples/examples.pro
@@ -13,5 +13,6 @@ SUBDIRS = applet \
opiedb \
opiemm \
opienet \
- opieui
+ opieui \
+ opieshower
diff --git a/examples/opiebluez/.cvsignore b/examples/opiebluez/.cvsignore
new file mode 100644
index 0000000..8f7300c
--- a/dev/null
+++ b/examples/opiebluez/.cvsignore
@@ -0,0 +1,6 @@
+Makefile*
+moc*
+*moc
+*.o
+~*
+
diff --git a/examples/opiebluez/config.in b/examples/opiebluez/config.in
new file mode 100644
index 0000000..f733be9
--- a/dev/null
+++ b/examples/opiebluez/config.in
@@ -0,0 +1,4 @@
+ config EXAMPLE_LIBOPIE2SHOWER
+ boolean "libopieshower2 examples"
+ depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2SHOWER
+
diff --git a/examples/opiebluez/obluezdemo/.cvsignore b/examples/opiebluez/obluezdemo/.cvsignore
new file mode 100644
index 0000000..8f7300c
--- a/dev/null
+++ b/examples/opiebluez/obluezdemo/.cvsignore
@@ -0,0 +1,6 @@
+Makefile*
+moc*
+*moc
+*.o
+~*
+
diff --git a/examples/opiebluez/obluezdemo/main.cpp b/examples/opiebluez/obluezdemo/main.cpp
new file mode 100644
index 0000000..5e514dc
--- a/dev/null
+++ b/examples/opiebluez/obluezdemo/main.cpp
@@ -0,0 +1,7 @@
+#include "main.h"
+
+int main( int argc, char* argv )
+{
+ return 0;
+}
+
diff --git a/examples/opiebluez/obluezdemo/main.h b/examples/opiebluez/obluezdemo/main.h
new file mode 100644
index 0000000..e69de29
--- a/dev/null
+++ b/examples/opiebluez/obluezdemo/main.h
diff --git a/examples/opiebluez/obluezdemo/obluezdemo.pro b/examples/opiebluez/obluezdemo/obluezdemo.pro
new file mode 100644
index 0000000..cea0fcc
--- a/dev/null
+++ b/examples/opiebluez/obluezdemo/obluezdemo.pro
@@ -0,0 +1,16 @@
+TEMPLATE = app
+CONFIG = qt warn_on
+HEADERS = main.h
+SOURCES = main.cpp
+INCLUDEPATH += $(OPIEDIR)/include
+DEPENDPATH += $(OPIEDIR)/include
+LIBS += -lopiecore2 -lopieshower2
+TARGET = oshowerdemo
+
+!contains( platform, x11 ) {
+ include( $(OPIEDIR)/include.pro )
+}
+
+contains( platform, x11 ) {
+ LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib
+}
diff --git a/examples/opiebluez/oblueztest/.cvsignore b/examples/opiebluez/oblueztest/.cvsignore
new file mode 100644
index 0000000..8f7300c
--- a/dev/null
+++ b/examples/opiebluez/oblueztest/.cvsignore
@@ -0,0 +1,6 @@
+Makefile*
+moc*
+*moc
+*.o
+~*
+
diff --git a/examples/opiebluez/oblueztest/main.cpp b/examples/opiebluez/oblueztest/main.cpp
new file mode 100644
index 0000000..f50847e
--- a/dev/null
+++ b/examples/opiebluez/oblueztest/main.cpp
@@ -0,0 +1,5 @@
+int main( int argc, char** argv )
+{
+ return 0;
+}
+
diff --git a/examples/opiebluez/oblueztest/main.h b/examples/opiebluez/oblueztest/main.h
new file mode 100644
index 0000000..e69de29
--- a/dev/null
+++ b/examples/opiebluez/oblueztest/main.h
diff --git a/examples/opiebluez/oblueztest/oblueztest.pro b/examples/opiebluez/oblueztest/oblueztest.pro
new file mode 100644
index 0000000..4439949
--- a/dev/null
+++ b/examples/opiebluez/oblueztest/oblueztest.pro
@@ -0,0 +1,17 @@
+TEMPLATE = app
+CONFIG = qt warn_on
+HEADERS = main.h
+SOURCES = main.cpp
+INCLUDEPATH += $(OPIEDIR)/include
+DEPENDPATH += $(OPIEDIR)/include
+LIBS += -lopiecore2 -lopieshower2
+TARGET = oshowertest
+
+!contains( platform, x11 ) {
+ include( $(OPIEDIR)/include.pro )
+}
+
+contains( platform, x11 ) {
+ LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib
+}
+
diff --git a/examples/opiebluez/opiebluez.pro b/examples/opiebluez/opiebluez.pro
new file mode 100644
index 0000000..7e9fa8f
--- a/dev/null
+++ b/examples/opiebluez/opiebluez.pro
@@ -0,0 +1,3 @@
+TEMPLATE = subdirs
+SUBDIRS = oshowerdemo oshowertest
+
diff --git a/examples/opiecore/opcmciademo/main.cpp b/examples/opiecore/opcmciademo/main.cpp
index dfc4287..a10c862 100644
--- a/examples/opiecore/opcmciademo/main.cpp
+++ b/examples/opiecore/opcmciademo/main.cpp
@@ -2,9 +2,14 @@
#include <opie2/odebug.h>
using namespace Opie::Core;
+#include <qmap.h>
+#include <qtextstream.h>
+#include <qdir.h>
+#include <qfile.h>
+
int main( int argc, char** argv )
{
- odebug << "start" << oendl;
+ odebug << "APP start" << oendl;
OPcmciaSystem* sys = OPcmciaSystem::instance();
odebug << "number of detected sockets is = " << sys->count() << oendl;
@@ -20,7 +25,7 @@ int main( int argc, char** argv )
++it;
}
- odebug << "end" << oendl;
+ odebug << "APP end" << oendl;
return 0;
}