Update of /cvsroot/pclasses/pclasses2/include/pclasses/IO
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14473/include/pclasses/IO
Modified Files:
IODevice.h
Log Message:
- Added virtual IODevice::setBlocking(), IODevice::isBlocking(), IODevice::wait()
Index: IODevice.h
===================================================================
RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/IO/IODevice.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- IODevice.h 3 Jun 2005 09:55:44 -0000 1.9
+++ IODevice.h 3 Jul 2005 23:42:32 -0000 1.10
@@ -193,6 +193,18 @@
//! Returns if the device has reached EOF
bool eof() const throw();
+ virtual void setBlocking(bool enable) throw(IOError);
+
+ virtual bool isBlocking() const throw();
+
+ //! IODevice wait flags
+ enum WaitFlag {
+ WaitInput = 0x01,
+ WaitOutput = 0x02
+ };
+
+ virtual int wait(int wait, unsigned int timeout) throw(IOError);
+
void setFilter(IOFilter* filter) throw(LogicError);
IOFilter* filter() const throw();
|