author | mickeyl <mickeyl> | 2005-01-29 14:18:51 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-01-29 14:18:51 (UTC) |
commit | 555b999359a5aad999eaaf48632ce85f25125b85 (patch) (unidiff) | |
tree | 7414362241e49e06f49486e93a8f504113961b1c /examples/opiecore/oprocessdemo | |
parent | 7b06e36fe27adc6a4fde2004eac13aaf8c0f0f02 (diff) | |
download | opie-555b999359a5aad999eaaf48632ce85f25125b85.zip opie-555b999359a5aad999eaaf48632ce85f25125b85.tar.gz opie-555b999359a5aad999eaaf48632ce85f25125b85.tar.bz2 |
examples appear here
Diffstat (limited to 'examples/opiecore/oprocessdemo') (more/less context) (show 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 @@ | |||
1 | oprocessdemo | ||
2 | Makefile* | ||
3 | moc* | ||
4 | *moc | ||
5 | *.o | ||
6 | ~* | ||
7 | |||
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 @@ | |||
1 | #include <opie2/oprocess.h> | ||
2 | #include <stdio.h> | ||
3 | |||
4 | using namespace Opie::Core; | ||
5 | |||
6 | int main( int argc, char** argv ) | ||
7 | { | ||
8 | printf( "my own PID seems to be '%d'\n", OProcess::processPID( "oprocessdemo" ) ); | ||
9 | printf( "the PID of process 'Mickey' seems to be '%d'\n\n", OProcess::processPID( "Mickey" ) ); | ||
10 | |||
11 | return 0; | ||
12 | } | ||
13 | |||
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 @@ | |||
1 | TEMPLATE = app | ||
2 | CONFIG = qt warn_on | ||
3 | HEADERS = | ||
4 | SOURCES = oprocessdemo.cpp | ||
5 | INCLUDEPATH += $(OPIEDIR)/include | ||
6 | DEPENDPATH += $(OPIEDIR)/include | ||
7 | LIBS += -lopiecore2 | ||
8 | TARGET = oprocessdemo | ||
9 | |||
10 | include( $(OPIEDIR)/include.pro ) | ||
11 | |||
12 | |||