summaryrefslogtreecommitdiffstats
path: root/lskat/lskat/TDEProcessConnect.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 14:05:19 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 14:05:19 -0600
commitd6f3812c8d969a673b420beca2482804177704fb (patch)
tree0e6eb8fd0d9339013405e54c7159f13b28dcb46e /lskat/lskat/TDEProcessConnect.h
parentf3141fbf4b9ff6dd0f37e08aa552ab71e8f391c7 (diff)
downloadtdegames-d6f3812c8d969a673b420beca2482804177704fb.tar.gz
tdegames-d6f3812c8d969a673b420beca2482804177704fb.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'lskat/lskat/TDEProcessConnect.h')
-rw-r--r--lskat/lskat/TDEProcessConnect.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/lskat/lskat/TDEProcessConnect.h b/lskat/lskat/TDEProcessConnect.h
new file mode 100644
index 00000000..3a38e23b
--- /dev/null
+++ b/lskat/lskat/TDEProcessConnect.h
@@ -0,0 +1,58 @@
+/***************************************************************************
+ TDEProcessConnect.h - description
+ -------------------
+ 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"
+
+
+class TDEProcessConnect: public KChildConnect
+{
+ Q_OBJECT
+
+
+ private:
+ TDEProcess *process;
+ TQString processname;
+ bool running;
+
+ public:
+ TDEProcessConnect();
+ ~TDEProcessConnect();
+ bool Init(int id=0,KEMessage *msg=0);
+ bool Exit();
+ bool Next();
+ // bool SendMsg(KEMessage *msg);
+ virtual bool Send(TQString str);
+ // void Receive(TQString input);
+
+ public slots:
+ void slotReceivedStdout(TDEProcess *proc, char *buffer, int buflen);
+ void slotProcessExited(TDEProcess *p);
+ void slotWroteStdin(TDEProcess *p);
+
+
+ signals:
+ void signalPrepareMove(KEMessage *msg,KG_INPUTTYPE type);
+// void signalReceiveMsg(KEMessage *msg);
+};
+
+#endif