summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/procctl.h
authorzecke <zecke>2002-10-12 00:30:06 (UTC)
committer zecke <zecke>2002-10-12 00:30:06 (UTC)
commit0a3ffe7e5657bed4cb77d9bc23457755e2d02591 (patch) (unidiff)
treea1b83e61035433668ca5c9e3af31586880535c98 /noncore/apps/opie-console/procctl.h
parentffa7f45a2100b7c438a437fce2d3a47608bd36e3 (diff)
downloadopie-0a3ffe7e5657bed4cb77d9bc23457755e2d02591.zip
opie-0a3ffe7e5657bed4cb77d9bc23457755e2d02591.tar.gz
opie-0a3ffe7e5657bed4cb77d9bc23457755e2d02591.tar.bz2
This is targetted to the people telling
in computer science classes that I'm toolkit dependant This is a Process Controller which will be used to work around the limit of only beeing able to do one FileTransfer at a Time
Diffstat (limited to 'noncore/apps/opie-console/procctl.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/procctl.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/procctl.h b/noncore/apps/opie-console/procctl.h
new file mode 100644
index 0000000..e2161f3
--- a/dev/null
+++ b/noncore/apps/opie-console/procctl.h
@@ -0,0 +1,33 @@
1#ifndef OPIE_PROC_CTL_H
2#define OPIE_PROC_CTL_H
3
4#include <sys/types.h>
5#include <unistd.h>
6#include <fcntl.h>
7#include <signal.h>
8
9#include <qmap.h>
10
11
12struct ProcContainer {
13 pid_t pid;
14 int fd;
15 int status;
16 ProcContainer* prev;
17};
18
19class ProcCtl {
20public:
21 ProcCtl();
22 ~ProcCtl();
23
24 int status(pid_t)const;
25 void add( pid_t, int fd );
26 void remove( pid_t );
27 void remove( ProcContainer );
28private:
29 static void signal_handler(int);
30 static ProcContainer* m_last;
31};
32
33#endif