author | mickeyl <mickeyl> | 2005-07-10 00:18:16 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-07-10 00:18:16 (UTC) |
commit | 031a4fd69392d064052f0da4236b4d44624343e3 (patch) (side-by-side diff) | |
tree | 8aa5aa5be9b59b0c3e2262da3511d683901d373d /examples | |
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 | 3 | ||||
-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, 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 @@ -12,6 +12,7 @@ SUBDIRS = applet \ opiecore \ 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 @@ -1,11 +1,16 @@ #include <opie2/opcmciasystem.h> #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; odebug << "number of populated sockets is = " << sys->cardCount() << oendl; @@ -19,8 +24,8 @@ int main( int argc, char** argv ) odebug << "card function is " << sock->function() << oendl; ++it; } - odebug << "end" << oendl; + odebug << "APP end" << oendl; return 0; } |