freebsd-ports/sysutils/k3b-kde4/files/patch-src-core-k3bprocess.h
Will Andrews 2a59b4a154 Add k3b 0.10.2, a CD/DVD recording GUI for KDE.
PR:		59287
Submitted by:	Heiner Eichmann <h.eichmann@gmx.de>
2003-11-20 13:03:02 +00:00

25 lines
860 B
C

--- src/core/k3bprocess.h.orig Fri Aug 29 17:32:44 2003
+++ src/core/k3bprocess.h Fri Nov 7 12:35:44 2003
@@ -126,5 +126,22 @@
bool m_suppressEmptyLines;
};
+/** This is a KProcess fake class. It uses system() to call the process
+ * and waits for its return. It redirects all output into a file and
+ * reads this file after the system() call. The redirected output
+ * (out and err!) is sent to the receivedStdout signal. This eliminates
+ * the problem reported as bug
+ * http://www.FreeBSD.org/cgi/query-pr.cgi?pr=ports/51651
+ */
+class MyKProcess : public KProcess
+{
+ Q_OBJECT
+ QString m_args;
+public:
+ MyKProcess &operator<<(const QString& arg);
+ MyKProcess &operator<<(const char * arg);
+ MyKProcess &operator<<(const QCString & arg);
+ bool start(RunMode runmode = NotifyOnExit, Communication comm = NoCommunication);
+};
#endif