author | mickeyl <mickeyl> | 2005-07-10 00:18:16 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-07-10 00:18:16 (UTC) |
commit | 031a4fd69392d064052f0da4236b4d44624343e3 (patch) (unidiff) | |
tree | 8aa5aa5be9b59b0c3e2262da3511d683901d373d | |
parent | 6beec504619fec654e06c4242892a9f858636ffe (diff) | |
download | opie-031a4fd69392d064052f0da4236b4d44624343e3.zip opie-031a4fd69392d064052f0da4236b4d44624343e3.tar.gz opie-031a4fd69392d064052f0da4236b4d44624343e3.tar.bz2 |
Add skeleton for opieshower examples
-rw-r--r-- | examples/examples.pro | 7 | ||||
-rw-r--r-- | examples/opiebluez/.cvsignore | 6 | ||||
-rw-r--r-- | examples/opiebluez/config.in | 4 | ||||
-rw-r--r-- | examples/opiebluez/obluezdemo/.cvsignore | 6 | ||||
-rw-r--r-- | examples/opiebluez/obluezdemo/main.cpp | 7 | ||||
-rw-r--r-- | examples/opiebluez/obluezdemo/main.h | 0 | ||||
-rw-r--r-- | examples/opiebluez/obluezdemo/obluezdemo.pro | 16 | ||||
-rw-r--r-- | examples/opiebluez/oblueztest/.cvsignore | 6 | ||||
-rw-r--r-- | examples/opiebluez/oblueztest/main.cpp | 5 | ||||
-rw-r--r-- | examples/opiebluez/oblueztest/main.h | 0 | ||||
-rw-r--r-- | examples/opiebluez/oblueztest/oblueztest.pro | 17 | ||||
-rw-r--r-- | examples/opiebluez/opiebluez.pro | 3 | ||||
-rw-r--r-- | examples/opiecore/opcmciademo/main.cpp | 9 |
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 @@ | |||
1 | TEMPLATE = subdirs | 1 | TEMPLATE = subdirs |
2 | SUBDIRS = applet \ | 2 | SUBDIRS = 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 @@ | |||
1 | Makefile* | ||
2 | moc* | ||
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 @@ | |||
1 | Makefile* | ||
2 | moc* | ||
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 | |||
3 | int 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 @@ | |||
1 | TEMPLATE = app | ||
2 | CONFIG = qt warn_on | ||
3 | HEADERS = main.h | ||
4 | SOURCES = main.cpp | ||
5 | INCLUDEPATH += $(OPIEDIR)/include | ||
6 | DEPENDPATH += $(OPIEDIR)/include | ||
7 | LIBS += -lopiecore2 -lopieshower2 | ||
8 | TARGET = oshowerdemo | ||
9 | |||
10 | !contains( platform, x11 ) { | ||
11 | include( $(OPIEDIR)/include.pro ) | ||
12 | } | ||
13 | |||
14 | contains( 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 @@ | |||
1 | Makefile* | ||
2 | moc* | ||
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 @@ | |||
1 | int 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 @@ | |||
1 | TEMPLATE = app | ||
2 | CONFIG = qt warn_on | ||
3 | HEADERS = main.h | ||
4 | SOURCES = main.cpp | ||
5 | INCLUDEPATH += $(OPIEDIR)/include | ||
6 | DEPENDPATH += $(OPIEDIR)/include | ||
7 | LIBS += -lopiecore2 -lopieshower2 | ||
8 | TARGET = oshowertest | ||
9 | |||
10 | !contains( platform, x11 ) { | ||
11 | include( $(OPIEDIR)/include.pro ) | ||
12 | } | ||
13 | |||
14 | contains( 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 @@ | |||
1 | TEMPLATE = subdirs | ||
2 | SUBDIRS = 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> |
3 | using namespace Opie::Core; | 3 | using namespace Opie::Core; |
4 | 4 | ||
5 | #include <qmap.h> | ||
6 | #include <qtextstream.h> | ||
7 | #include <qdir.h> | ||
8 | #include <qfile.h> | ||
9 | |||
5 | int main( int argc, char** argv ) | 10 | int 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 | ||