freebsd-ports/sysutils/k3b/files/patch-src-core-k3bprocess.h
Markus Brueffer 0c47e29329 - Update to 0.11.6
- remove trailing ^M in pkg-plist

PR:		ports/64201
Submitted by:	Heiner Eichmann <h.eichmann@gmx.de>
Approved by:	arved (mentor)
2004-03-18 17:41:41 +00:00

24 lines
852 B
C

--- src/core/k3bprocess.h.orig Tue Jan 27 09:19:13 2004
+++ src/core/k3bprocess.h Fri Feb 13 21:03:38 2004
@@ -194,4 +194,21 @@
KProcess* m_process;
};
+/** 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