Diffstat (limited to 'examples/opiecore/oprocessdemo') (more/less context) (ignore whitespace changes)
-rw-r--r-- | examples/opiecore/oprocessdemo/.cvsignore | 7 | ||||
-rw-r--r-- | examples/opiecore/oprocessdemo/oprocessdemo.cpp | 13 | ||||
-rw-r--r-- | examples/opiecore/oprocessdemo/oprocessdemo.pro | 12 |
3 files changed, 32 insertions, 0 deletions
diff --git a/examples/opiecore/oprocessdemo/.cvsignore b/examples/opiecore/oprocessdemo/.cvsignore new file mode 100644 index 0000000..ab9cb4d --- a/dev/null +++ b/examples/opiecore/oprocessdemo/.cvsignore @@ -0,0 +1,7 @@ +oprocessdemo +Makefile* +moc* +*moc +*.o +~* + diff --git a/examples/opiecore/oprocessdemo/oprocessdemo.cpp b/examples/opiecore/oprocessdemo/oprocessdemo.cpp new file mode 100644 index 0000000..c5fc328 --- a/dev/null +++ b/examples/opiecore/oprocessdemo/oprocessdemo.cpp @@ -0,0 +1,13 @@ +#include <opie2/oprocess.h> +#include <stdio.h> + +using namespace Opie::Core; + +int main( int argc, char** argv ) +{ + printf( "my own PID seems to be '%d'\n", OProcess::processPID( "oprocessdemo" ) ); + printf( "the PID of process 'Mickey' seems to be '%d'\n\n", OProcess::processPID( "Mickey" ) ); + + return 0; +} + diff --git a/examples/opiecore/oprocessdemo/oprocessdemo.pro b/examples/opiecore/oprocessdemo/oprocessdemo.pro new file mode 100644 index 0000000..7efc614 --- a/dev/null +++ b/examples/opiecore/oprocessdemo/oprocessdemo.pro @@ -0,0 +1,12 @@ +TEMPLATE = app +CONFIG = qt warn_on +HEADERS = +SOURCES = oprocessdemo.cpp +INCLUDEPATH += $(OPIEDIR)/include +DEPENDPATH += $(OPIEDIR)/include +LIBS += -lopiecore2 +TARGET = oprocessdemo + +include( $(OPIEDIR)/include.pro ) + + |