From 615d2ec911dd3eb2b5ed0290038bdb5e6fa0eab2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 22 Jun 2012 20:58:33 +0000 Subject: Added super handy readAllObjects slot. --- c++-qt/src/gatsstream.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'c++-qt/src/gatsstream.h') diff --git a/c++-qt/src/gatsstream.h b/c++-qt/src/gatsstream.h index f1c0625..90e0514 100644 --- a/c++-qt/src/gatsstream.h +++ b/c++-qt/src/gatsstream.h @@ -32,6 +32,14 @@ namespace Gats * non-null then hasReadBuffer should return false on it's next call. */ Gats::Object *readObject(); + + /** + * Works exactly like readObject, except it reads all pending objects + * and emits a objectRead signal for each one read. It doesn't return + * anything. This is perfect for connecting to a QIODevice's readRead + * signal. + */ + void readAllObjects(); public: /** -- cgit v1.2.3