You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.8 KiB
59 lines
1.8 KiB
15 years ago
|
/***************************************************************************
|
||
12 years ago
|
TDEProcessConnect.h - description
|
||
15 years ago
|
-------------------
|
||
|
begin : Tue May 2 2000
|
||
|
copyright : (C) 2000 by Martin Heni
|
||
|
email : martin@heni-online.de
|
||
|
***************************************************************************/
|
||
|
|
||
|
/***************************************************************************
|
||
|
* *
|
||
|
* This program is free software; you can redistribute it and/or modify *
|
||
|
* it under the terms of the GNU General Public License as published by *
|
||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||
|
* (at your option) any later version. *
|
||
|
* *
|
||
|
***************************************************************************/
|
||
|
#ifndef _KPROCESSCONNECT_H_
|
||
|
#define _KPROCESSCONNECT_H_
|
||
|
|
||
|
#include <kprocess.h>
|
||
|
//#include <ksock.h>
|
||
|
// #include "KEInput.h"
|
||
|
#include "KEMessage.h"
|
||
|
#include "KChildConnect.h"
|
||
|
|
||
|
|
||
12 years ago
|
class TDEProcessConnect: public KChildConnect
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
|
||
|
private:
|
||
12 years ago
|
TDEProcess *process;
|
||
14 years ago
|
TQString processname;
|
||
15 years ago
|
bool running;
|
||
|
|
||
|
public:
|
||
12 years ago
|
TDEProcessConnect();
|
||
|
~TDEProcessConnect();
|
||
15 years ago
|
bool Init(int id=0,KEMessage *msg=0);
|
||
|
bool Exit();
|
||
|
bool Next();
|
||
|
// bool SendMsg(KEMessage *msg);
|
||
14 years ago
|
virtual bool Send(TQString str);
|
||
|
// void Receive(TQString input);
|
||
15 years ago
|
|
||
|
public slots:
|
||
12 years ago
|
void slotReceivedStdout(TDEProcess *proc, char *buffer, int buflen);
|
||
|
void slotProcessExited(TDEProcess *p);
|
||
|
void slotWroteStdin(TDEProcess *p);
|
||
15 years ago
|
|
||
|
|
||
|
signals:
|
||
|
void signalPrepareMove(KEMessage *msg,KG_INPUTTYPE type);
|
||
|
// void signalReceiveMsg(KEMessage *msg);
|
||
|
};
|
||
|
|
||
|
#endif
|