summaryrefslogtreecommitdiff
path: root/examples
authormickeyl <mickeyl>2005-07-10 00:18:16 (UTC)
committer mickeyl <mickeyl>2005-07-10 00:18:16 (UTC)
commit031a4fd69392d064052f0da4236b4d44624343e3 (patch) (unidiff)
tree8aa5aa5be9b59b0c3e2262da3511d683901d373d /examples
parent6beec504619fec654e06c4242892a9f858636ffe (diff)
downloadopie-031a4fd69392d064052f0da4236b4d44624343e3.zip
opie-031a4fd69392d064052f0da4236b4d44624343e3.tar.gz
opie-031a4fd69392d064052f0da4236b4d44624343e3.tar.bz2
Add skeleton for opieshower examples
Diffstat (limited to 'examples') (more/less context) (ignore whitespace changes)
-rw-r--r--examples/examples.pro7
-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, 81 insertions, 5 deletions
diff --git a/examples/examples.pro b/examples/examples.pro
index 88b244a..fd83a9b 100644
--- a/examples/examples.pro
+++ b/examples/examples.pro
@@ -1,17 +1,18 @@
1TEMPLATE = subdirs 1TEMPLATE = subdirs
2SUBDIRS = applet \ 2SUBDIRS = applet \
3 inputmethod \ 3 inputmethod \
4 main-tab \ 4 main-tab \
5 menuapplet \ 5 menuapplet \
6 networksettings \ 6 networksettings \
7 simple \ 7 simple \
8 simple-icon \ 8 simple-icon \
9 simple-main \ 9 simple-main \
10 simple-pim \ 10 simple-pim \
11 todayplugin \ 11 todayplugin \
12 opiecore \ 12 opiecore \
13 opiedb \ 13 opiedb \
14 opiemm \ 14 opiemm \
15 opienet \ 15 opienet \
16 opieui 16 opieui \
17 opieshower
17 18
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 @@
1Makefile*
2moc*
3*moc
4*.o
5~*
6
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 @@
1 config EXAMPLE_LIBOPIE2SHOWER
2 boolean "libopieshower2 examples"
3 depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2SHOWER
4
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 @@
1Makefile*
2moc*
3*moc
4*.o
5~*
6
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 @@
1#include "main.h"
2
3int main( int argc, char* argv )
4{
5 return 0;
6}
7
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 @@
1TEMPLATE = app
2CONFIG = qt warn_on
3HEADERS = main.h
4SOURCES = main.cpp
5INCLUDEPATH += $(OPIEDIR)/include
6DEPENDPATH += $(OPIEDIR)/include
7LIBS += -lopiecore2 -lopieshower2
8TARGET = oshowerdemo
9
10!contains( platform, x11 ) {
11 include( $(OPIEDIR)/include.pro )
12}
13
14contains( platform, x11 ) {
15 LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib
16}
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 @@
1Makefile*
2moc*
3*moc
4*.o
5~*
6
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 @@
1int main( int argc, char** argv )
2{
3 return 0;
4}
5
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 @@
1TEMPLATE = app
2CONFIG = qt warn_on
3HEADERS = main.h
4SOURCES = main.cpp
5INCLUDEPATH += $(OPIEDIR)/include
6DEPENDPATH += $(OPIEDIR)/include
7LIBS += -lopiecore2 -lopieshower2
8TARGET = oshowertest
9
10!contains( platform, x11 ) {
11 include( $(OPIEDIR)/include.pro )
12}
13
14contains( platform, x11 ) {
15 LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib
16}
17
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 @@
1TEMPLATE = subdirs
2SUBDIRS = oshowerdemo oshowertest
3
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
@@ -1,26 +1,31 @@
1#include <opie2/opcmciasystem.h> 1#include <opie2/opcmciasystem.h>
2#include <opie2/odebug.h> 2#include <opie2/odebug.h>
3using namespace Opie::Core; 3using namespace Opie::Core;
4 4
5#include <qmap.h>
6#include <qtextstream.h>
7#include <qdir.h>
8#include <qfile.h>
9
5int main( int argc, char** argv ) 10int main( int argc, char** argv )
6{ 11{
7 odebug << "start" << oendl; 12 odebug << "APP start" << oendl;
8 OPcmciaSystem* sys = OPcmciaSystem::instance(); 13 OPcmciaSystem* sys = OPcmciaSystem::instance();
9 14
10 odebug << "number of detected sockets is = " << sys->count() << oendl; 15 odebug << "number of detected sockets is = " << sys->count() << oendl;
11 odebug << "number of populated sockets is = " << sys->cardCount() << oendl; 16 odebug << "number of populated sockets is = " << sys->cardCount() << oendl;
12 17
13 OPcmciaSystem::CardIterator it = sys->iterator(); 18 OPcmciaSystem::CardIterator it = sys->iterator();
14 OPcmciaSocket* sock = 0; 19 OPcmciaSocket* sock = 0;
15 while ( sock = it.current() ) 20 while ( sock = it.current() )
16 { 21 {
17 odebug << "card in socket # " << sock->number() << " is '" << sock->identity() << "'" << oendl; 22 odebug << "card in socket # " << sock->number() << " is '" << sock->identity() << "'" << oendl;
18 odebug << "card status is " << sock->status() << oendl; 23 odebug << "card status is " << sock->status() << oendl;
19 odebug << "card function is " << sock->function() << oendl; 24 odebug << "card function is " << sock->function() << oendl;
20 ++it; 25 ++it;
21 } 26 }
22 27
23 odebug << "end" << oendl; 28 odebug << "APP end" << oendl;
24 return 0; 29 return 0;
25} 30}
26 31