diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2003-10-17 15:35:43 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2003-10-17 15:35:43 +0000 |
| commit | fc2f5b2cd655f1391f2abda1b39e37cdec98a951 (patch) | |
| tree | 312efcea86a319de407a7c314fb981fb1c71019a /lib/base/console.h | |
| download | enigma2-fc2f5b2cd655f1391f2abda1b39e37cdec98a951.tar.gz enigma2-fc2f5b2cd655f1391f2abda1b39e37cdec98a951.zip | |
Initial revision
Diffstat (limited to 'lib/base/console.h')
| -rw-r--r-- | lib/base/console.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/base/console.h b/lib/base/console.h new file mode 100644 index 00000000..cdc6033d --- /dev/null +++ b/lib/base/console.h @@ -0,0 +1,30 @@ +#ifndef __LIB_BASE_CONSOLE_H__ +#define __LIB_BASE_CONSOLE_H__ + +#include <lib/base/ebase.h> + +class eString; + +class eConsoleAppContainer: public Object +{ + int fd[3]; + int pid; + int killstate; + char *outbuf; + eSocketNotifier *in, *out, *err; + void readyRead(int what); + void readyErrRead(int what); + void readyWrite(int what); + void closePipes(); +public: + eConsoleAppContainer( const eString &str ); + ~eConsoleAppContainer(); + void kill(); + void write( const eString &s ); + bool running() { return fd[0] && fd[1]; } + Signal1<void, eString> dataAvail; + Signal1<void,int> dataSent; + Signal1<void,int> appClosed; +}; + +#endif // __LIB_BASE_CONSOLE_H__ |
